bug-ncurses
[Top][All Lists]
Advanced

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

Re: F-keys weirdness under Wide version


From: Thomas Dickey
Subject: Re: F-keys weirdness under Wide version
Date: Fri, 28 Nov 2008 21:02:50 -0500
User-agent: Mutt/1.5.18 (2008-05-17)

On Mon, Nov 24, 2008 at 11:26:04AM -0700, Ricardo Cantu wrote:
> Somewhere between version 5.6 patched to 20080621-patch and 5.7, F-keys are 
> not working right in the wide character version. 

Checking further - the _library_ is correct, but the test-program is
incorrect.  It's not apparent in the 20070612 NEWS item, but the rewrite
of key_name() fixed a case where it was not returning the value as
specified in

        http://www.opengroup.org/onlinepubs/007908799/xcurses/key_name.html
 
keyname() parameter can be a key (0-255) or key-code (the KEY_xxx stuff).
key_name() parameter is only a wide-character - no key-codes.

So the fix for test/ncurses.c would be to use the keyname() function where
it's using key_name().

-- 
Thomas E. Dickey <address@hidden>
http://invisible-island.net
ftp://invisible-island.net

Attachment: signature.asc
Description: Digital signature


reply via email to

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