[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference bulova::decw_jan-89_to_nov-90

Title:DECWINDOWS 26-JAN-89 to 29-NOV-90
Notice:See 1639.0 for VMS V5.3 kit; 2043.0 for 5.4 IFT kit
Moderator:STAR::VATNE
Created:Mon Oct 30 1989
Last Modified:Mon Dec 31 1990
Last Successful Update:Fri Jun 06 1997
Number of topics:3726
Total number of notes:19516

227.0. "Customize root window terminal attributes?" by ULTRA::ELLIS (David Ellis) Thu Feb 16 1989 11:31

In Ultrix V2.2, UWS V1.1, under Version 10 of X windows, there was a ".Xkeymap"
file that controlled the translation of keys pressed on the keyboard.

Is there anything analogous that runs under DECwindows?  My specific interest
is being able to set the _root_ window for application keypad instead of
numeric keypad.  The xemacs program inherits its window's terminal attributes
from the root window rather than from the terminal window from which it is
invoked.  Can terminal attributes (including keyboard setting and mapping)
for the root window be customized from the .Xdefaults file?

T.RTitleUserPersonal
Name
DateLines
227.1Try xmodmap or emacs' keymapsFLUME::dikeThu Feb 16 1989 12:185
You can probably get the effect of .Xkeymap with a suitable application of
xmodmap.  If you're only interested in xemacs, then with a little playing
around with its keymaps.
				Jeff

227.2xmodmap?ULTRA::ELLISDavid EllisThu Feb 16 1989 12:3610
I don't see xmodmap in the UWS V2.0 documentation.  The Xlib guide does
have several functions dealing with an XModifierKeymap structure, and
to use these requires the writing of application code.

Using the xemacs keymaps seems to be like changing the barn door lock after
the horses have escaped:  by the time xemacs gets something to translate,
the keypad key has already been translated into its numeric key equivalent.

What am I missing here?

227.3try *Text.translations:RAVINE::jeanneJeanne --DTN 381-1604Thu Feb 16 1989 16:279
>Can terminal attributes (including keyboard setting and mapping)
>for the root window be customized from the .Xdefaults file?


Yes.  Check the .Xdefaults file in /usr/skel for sample
resource specifications that change key mapping.  
	
		-j

227.4I don't think translations are the questionFLUME::dikeThu Feb 16 1989 17:0510
As near as I can remember, the .Xkeymap file was used for what X11 calls KeyCode
to KeySym translation.  The toolkit translations translate from KeySym to
toolkit actions.  In any case, it is irrelevant because emacs is not a toolkit
application.

As for the keypad, I don't know.  The server is returning distinct KeyCodes for
the keypad.  It just doesn't appear to let you treat them as different from
the normal numbers.
				Jeff

227.5xmodmap in /usr/binSMURF::HOFFMANanywhere in the universeFri Feb 24 1989 17:136
    re .2
    xmodmap is among the unsupported MIT X applications which
    shipped with UWS V2.0.
    
    John