Problem reading in function keys with curses
Conor P. Cahill
cpcahil at virtech.uucp
Sat Jul 14 13:10:36 AEST 1990
In article <1990Jul13.095337.8429 at unx.sas.com> jwd at unx.sas.com (John W. DeBoskey) writes:
> mwin = newwin(LINES-3,COLS-2,1,1);
>
> rc = -2; rc = keypad(stdscr,TRUE); /* returns a garbage value */
^^^^^^
> cmd = wgetch(mwin); /* Never returns a function key def */
If you want to do a wgetch(mwin) you need to do a keypad(mwin)
--
Conor P. Cahill (703)430-9247 Virtual Technologies, Inc.,
uunet!virtech!cpcahil 46030 Manekin Plaza, Suite 160
Sterling, VA 22170
More information about the Comp.unix.i386
mailing list