Thread View: comp.windows.misc
1 messages
1 total messages
Started by Henk Fictorie
Mon, 20 May 1991 14:09
Curses: problem with getch while keypad is set
Author: Henk Fictorie
Date: Mon, 20 May 1991 14:09
Date: Mon, 20 May 1991 14:09
28 lines
1254 bytes
1254 bytes
I'm using the xopen version of curses in Ultrix 4.0.
I want to use the cursor keys to move through an itemlist,
some normal keys are used to execute commands.
So I did basically this:
keypad(stdscr, TRUE);
for (;;)
{
key = getch();
switch key
{
}
}
I do have several other windows and pads which are part of the
screen.
The problem is that getch sometimes doesn't respond or returns the
wrong value on normal keys. It seems to depend on whats actually on
the screen. Did anyone see this problem before and did you solve
it?
If enough interest, I will summarize the responses to the net.
--
Henk Fictorie, PTT Research Neher Labs, H_Fictorie@pttrnl.nl
P.O. box 421, ...!hp4nl!dnlunx!henkf
2260 AK Leidschendam, The Netherlands Phone : +31 70 3326356
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads