This may answer your question:
The xterm program is a terminal emulation program, and as such has many of the properties of the terminal emulator described above.
The xterm program takes keysyms from the X11 server and generates escape sequences, which are defined in the xterm entry in the
Termcap/ Terminfo database.
One of the features of xterm is the ability to alter the standard keysym to escape sequence translation. Surprisingly this is via a feature
called translations . Not only do these translations enable the user to specify a different escape sequences to be generated, but internal
xterm commands can also be assigned. These are beyond the scope of this description. An example of an xterm translation follows:
This specification is typically part of your own $HOME/.Xdefaults file. This file is usually read dynamically by the xterm program on
startup. On some systems, the .Xdefaults file is ignored. To ensure the entries are incorporated into the X server resource database, run the
command:
xrdb -merge .Xdefaults
The above example will generate the escape sequence ESC [ 1 9 2 z when the F1 key is pressed. The trailing "\" is a continuation
character.
So, if you had the above translation in effect, and were running THE in an xterm, and ran the SHOWKEY command, pressing the F1 key
would result in THE responding with F11.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.