bug-ncurses
[Top][All Lists]
Advanced

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

function keys do not work


From: Folkert van Heusden
Subject: function keys do not work
Date: Mon, 26 Mar 2007 20:34:24 +0200
User-agent: Mutt/1.5.13 (2006-08-11)

Hi,

I do:

        keypad(stdscr, TRUE);

<...>

        int c = getch();

        if (c == KEY_F(1))
        {
                /* do something */
        }

now it seems c never is KEY_F(1) when I press F1!
This problem occurs under macos x and linux, on solaris it works fine
(linux and solaris tested from a putty window).

Linux (does not work):
 - /lib/libncurses.so.5.5
 - debian package: 5.5-5

MacOS X (does not work):
 - /usr/lib/libncurses.5.4.dylib

Solaris 10 (DOES work):
 - /usr/local/lib/libncurses.so.5.4


Folkert van Heusden

-- 
MultiTail er et flexible tool for å kontrolere Logfiles og commandoer.
Med filtrer, farger, sammenføringer, forskeliger ansikter etc.
http://www.vanheusden.com/multitail/
----------------------------------------------------------------------
Phone: +31-6-41278122, PGP-key: 1F28D8AE, www.vanheusden.com




reply via email to

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