emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Modified keypad keys


From: Andreas Schwab
Subject: Re: Modified keypad keys
Date: Fri, 05 Oct 2012 16:41:34 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux)

Andreas Schwab <address@hidden> writes:

> Juri Linkov <address@hidden> writes:
>
>> But one key `S-up' fails and displays in the echo area:
>>
>>   <select> is undefined
>>
>> `C-q S-up' inserts to the buffer "^[[1;2A" and there exist
>> a keybinding for this sequence in lisp/term/xterm.el:
>>
>>     (define-key map "\e[1;2A" [S-up])
>>
>> I don't understand why it has no effect.
>
> ELISP> (lookup-key input-decode-map "\e[1;2A")
> [select]
>
> $ infocmp xterm | grep '1;2A'
>       kpp=\E[5~, kri=\E[1;2A, kslt=\E[4~, mc0=\E[i, mc4=\E[4i,
>
> I think that's a tgetstr bug, it returns the sequence for the S-up key
> when looking for the kU capability (the termcap name for kri is actually
> kR).

>From tgetstr(3):

       Only  the first two characters of the id parameter of tgetflag, tgetnum
       and tgetstr are compared in lookups.

$ infocmp -a xterm | grep '1;2A'
        kpp=\E[5~, kri=\E[1;2A, kslt=\E[4~, mc0=\E[i, mc4=\E[4i,
        kRIT6=\E[1;6C, kRIT7=\E[1;7C, kUP=\E[1;2A, kUP3=\E[1;3A,

Andreas.

-- 
Andreas Schwab, address@hidden
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."



reply via email to

[Prev in Thread] Current Thread [Next in Thread]