|
From: | Thomas Dickey |
Subject: | Re: shift-up, shift-down (KEY_SUP KEY_SDOWN ?) |
Date: | Sun, 13 Aug 2006 11:14:50 -0400 (EDT) |
On Sun, 13 Aug 2006, Don Mahurin wrote:
Hi, I wrote the NCurses front end to the fte editor. See nfte.sourceforge.net. In updating that for Ncurses 5.5, ( as shipped with Fedora Core 5 ), I noticed that Shift-Up returns 01007 to getch and Shift-Down returns 01000. These are both undefined in the header and greater than KEY_MAX.Is this expected, known behavior? konsole and xterm settings are set up to send "^[[1;2A" and "^[[1;2B" for these.My hack defines KEY_SUP and KEY_SDOWN 01007 and 01000, but this is probably the wrong solution.
The keyname() function can be used here. For instance, here's the end of the output from test/keynames running for $TERM set to screen-bce: 410( 632):KEY_RESIZE 513( 1001):kDN5 514( 1002):kDN6 515( 1003):kLFT5 516( 1004):kLFT6 517( 1005):kRIT5 518( 1006):kRIT6 520( 1010):kUP5 521( 1011):kUP6 -- Thomas E. Dickey http://invisible-island.net ftp://invisible-island.net
[Prev in Thread] | Current Thread | [Next in Thread] |