[comp.windows.x] function key def in xterm

mckie@nas.nasa.gov (William McKie) (01/29/91)

Can someone send an example of what to include in one's .Xdefaults file
so that a given string is sent when a function key is pressed?   Using
the example on p 28 of the xterm man page, we've tried the following.
It activates the function keys as expected, but all the other keys are
then disabled.

XTerm.VT100.translations:	<Key>F4: string("ls") string(0x0d) \n\
				<Key>F5: string("who") string(0x0d)

Bill McKie
mckie@sky.arc.nasa.gov
NASA Ames Research Center

converse@expo.lcs.mit.EDU (01/31/91)

> Using
> the example on p 28 of the xterm man page,  we've tried the following.
> It activates the function keys as expected, but all the other keys are
> then disabled.

There's no page 28 in my xterm man page.  Well, can't type anymore, huh?

> XTerm.VT100.translations:	<Key>F4: string("ls") string(0x0d) \n\
> 				<Key>F5: string("who") string(0x0d)

If no directive is specified, "#replace" is assumed.
Do you have a copy of the Xt specification?  See the end of section
10.3, "Translation Table Management", and see Appendix B, 
"Translation Table Syntax".