[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
alt-arrow keys
From: |
Pierre Abbat |
Subject: |
alt-arrow keys |
Date: |
Wed, 12 Jul 2006 12:19:48 -0400 |
User-agent: |
KMail/1.9.1 |
I wrote a routine that returns an alt-key as a single code, equal to
0x00400000 plus the key, and returns a function key as a code equal to
0x00200000 plus whatever is returned with KEY_CODE_YES. (These are the next
bits available after all Unicode planes are encoded.) So alt-A is 0x00400041,
alt-Ы is 0x0040042b, and with keypad on, PgUp is 0x00200153 and up arrow is
0x00200103. However, Ctrl-uparrow, Alt-uparrow, and Ctrl-Alt-uparrow produce
the following:
0040005b
00000031
0000003b
00000035
00000041
0040005b
00000031
0000003b
00000033
00000041
0040005b
00000031
0000003b
00000037
00000041
That is, the program is getting the sequence Esc[1;5A and ncurses apparently
does not recognize that as a single keystroke. Can you fix it so that it
does? Or is there some flag that I can set to enable these keys?
phma
- alt-arrow keys,
Pierre Abbat <=
- Re: alt-arrow keys, Thomas Dickey, 2006/07/12
- Re: alt-arrow keys, Pierre Abbat, 2006/07/13
- Re: alt-arrow keys, Thomas Dickey, 2006/07/13
- Re: alt-arrow keys, Pierre Abbat, 2006/07/13
- Re: alt-arrow keys, Thomas Dickey, 2006/07/13
- Re: alt-arrow keys, Pierre Abbat, 2006/07/14
- Re: alt-arrow keys, Thomas Dickey, 2006/07/15