[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: function keys do not work
From: |
Ricardo Cantu |
Subject: |
Re: function keys do not work |
Date: |
Mon, 26 Mar 2007 12:40:34 -0600 |
User-agent: |
KMail/1.9.5 |
From a prompt type:
echo $TERM
Does this match the TERM in putty?
On Monday 26 March 2007 12:34 pm, Folkert van Heusden wrote:
> 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
--
Ricardo Cantu
Computer Services
3506 Buchanan St Suite C
Wichita Falls, TX 76308
(940) 696-3010