bug-ncurses
[Top][All Lists]
Advanced

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

Re: shift-up, shift-down (KEY_SUP KEY_SDOWN ?)


From: Don Mahurin
Subject: Re: shift-up, shift-down (KEY_SUP KEY_SDOWN ?)
Date: Tue, 15 Aug 2006 20:39:18 -0700
User-agent: Thunderbird 1.5.0.5 (X11/20060808)

Thanks Thomas,

This information helped and is very much appreciated.

-Don

Thomas Dickey wrote:
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






reply via email to

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