[comp.windows.x] .Xdefaults key redefinition

yates@eniac.seas.upenn.edu (John Yates) (01/07/91)

I am running SGI's X with an HDS XTerminal (telnetted to the SGI). I often
telnet from there to a VAX and would like to map the special VT keyboard
keys to the F1 - Fn keys so I can use TPU. I've gotten close, but now am
stuck. By putting in the .Xdefaults file:

XTerm*VT100.Translations: #override \
	<Key>F4: string(0xffc1) string("<ESC>[29~") \n\

I get the sequence in "'s delivered to the VAX editor when I hit F4, 
but haven't figured out how to get the actual escape in the string.(I
tried the hex sequence, both inside and preceding the quotes, but no go).
(I verified that typing the sequence directly actually does the DO in the
editor).

The F4 key is 0xffc1 and the VT200 manual shows that the DO key is
ESC [ 2 9 ~   If I get this gem to work, I can map the rest of the
keys I need, as I want.

Please e-mail directly to me.

Thanks, John
yates@c.chem.upenn.edu

gildea@expo.lcs.mit.EDU (Stephen Gildea) (01/07/91)

As of R4 you can represent an Escape in a translation string as "\033".

 < Stephen