[9842] in Athena Bugs

home help back first fref pref prev next nref lref last post

decmips 7.4G: xterm & xmodmap together

daemon@ATHENA.MIT.EDU (JH:TNG)
Mon Aug 31 02:36:56 1992

To: bugs@Athena.MIT.EDU
Date: Mon, 31 Aug 92 02:36:41 EDT
From: JH:TNG <genoa@Athena.MIT.EDU>

System name:		central
Type and version:	KN02ca 7.4G
Display type:		PMAG-DV 

What were you trying to do?
	I want to use xmodmap to make the "compose character" keys on
the Maxine and 5000/133 keyboards act as control keys, and the 
"alt <stupid symbol> function" keys act as meta keys, in a vain attempt
to make DEC "keyboards" usable.  I use the following xmodmaprc file:

/afs/athena.mit.edu/user/g/e/genoa/conf/@sys>cat xmodmaprc.maxine
! 4 meta keys
add mod1 = Alt_L
add mod1 = Alt_R
clear mod2
remove mod1 = Meta_L
remove mod1 = Meta_R
add control = Meta_L
add control = Meta_R
/afs/athena.mit.edu/user/g/e/genoa/conf/@sys>

What's wrong:
	In xterm, ^D does not work as EOF.  I cannot use it successfully
to terminate input to zwrite, or to "cat >file".  When I try, I get ^[^D
instead of ^D, and the cursor rests on the caret of the ^D.  On suggestion
from jfc, I looked at output from xev, and the state entry for the keypress
and key release was 0x4, which I'm told is The Right Thing(tm).  I use
tcsh from the consult locker, so I tried different shells (/bin/sh,/bin/csh)
and had the same problem.  In emacs, ^D did the right thing.  Also, it doesn't
matter whether I use the real Ctrl key, or the "Compose Character" keys to 
try to generate the ^D.  So, it seems it is xterm which is losing.
Furthermore, when using ^Z to suspend processes, ^[^Z is printed, but the 
process does suspend.

What should have happened:
	Specifically, ^D should be able to be used to terminate input
from stdin in an xterm window.  This should occur not matter which
keysyms are in the modifier map for Control.

Please describe any relevant documentation references:
	XMODMAP(1)


home help back first fref pref prev next nref lref last post