xmodmap keystrings (2)

Thomas Dickey dickey at his.com
Tue Apr 26 13:30:49 PDT 2011


On Tue, 26 Apr 2011, Thomas Dickey wrote:

> On Tue, 26 Apr 2011, Marty Jack wrote:
>
>> On 04/26/2011 11:35 AM, Alan Coopersmith wrote:
>>> On 04/26/11 08:19 AM, frank wrote:
>>>> 
>>>> Hello Alan,
>>>> 
>>>> Thanks for replying. It seems I didn't make myself clear.
>>>> 
>>>> Please go to a graphic terminal, press ^V then F1 or F2 or Home or
>>>> Left or any of the functional keys. You are inserting the keystring
>>>> associated with those keys. Home for instance has "^[OH" (not same
>>>> as in text console).
>>>> 
>>>> Where are these strings listed? Surely there must be a header file
>>>> somewhere? How it is called? Where is it?
>>> 
>>> Those are defined in the terminal emulator you are using, not X itself,
>>> and have nothing to do with xmodmap.
>>> 
>>> Check the source code of xterm, gnome-terminal, etc.  (Sorry, I don't
>>> know the exact .c or .h file there.) They should be  referenced in the
>>> matching termcap/terminfo entries as well.
>
> Not exactly (gnome-terminal as such is a wrapper around vte, which provides 
> all of the terminal emulation part).

vte uses strings, and has a partial implementation of code to read a 
termcap entry and interpret the function-keys defined there.  xterm 
doesn't use strings (except for a more-complete feature to interpret 
terminfo/termcap entries, likewise for the function-keys).  Reading both 
sources might be educational.

-- 
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net



More information about the xorg mailing list