Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!cs.utexas.edu!uunet!virtech!cpcahil From: cpcahil@virtech.uucp (Conor P. Cahill) Newsgroups: comp.unix.i386 Subject: Re: Problem reading in function keys with curses Message-ID: <1990Jul14.031036.16988@virtech.uucp> Date: 14 Jul 90 03:10:36 GMT References: <1990Jul13.095337.8429@unx.sas.com> Reply-To: cpcahil@virtech.UUCP (Conor P. Cahill) Organization: Virtual Technologies Inc., Sterling VA Lines: 13 In article <1990Jul13.095337.8429@unx.sas.com> jwd@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