Curses: problem with getch while keypad is set

Henk Fictorie fictorie at freyr.pttrnl.nl
Tue May 21 20:28:30 AEST 1991


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 at pttrnl.nl
P.O. box 421,                              ...!hp4nl!dnlunx!henkf
2260 AK Leidschendam, The Netherlands      Phone    : +31 70 3326356 

--
Henk Fictorie, PTT Research Neher Labs,    H_Fictorie at pttrnl.nl
P.O. box 421,                              ...!hp4nl!dnlunx!henkf
2260 AK Leidschendam, The Netherlands      Phone    : +31 70 3326356 



More information about the Comp.unix.programmer mailing list