[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freedesktop-xorg
Subject:    Re: xmodmap keystrings (2)
From:       Thomas Dickey <dickey () his ! com>
Date:       2011-04-26 20:30:49
Message-ID: 20110426162558.F17950 () mail101 ! his ! com
[Download RAW message or body]

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
_______________________________________________
xorg@lists.freedesktop.org: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: http://lists.freedesktop.org/mailman/listinfo/xorg
Your subscription address: freedesktop-xorg@progressive-comp.com
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic