Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!know!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!aplcen!wb3ffv!ka3ovk!irscscm!mlake From: mlake@irscscm.UUCP (Marshall Lake) Newsgroups: comp.unix.questions Subject: Re: Curses and the arrow keys Message-ID: <1990Aug27.152420.328@irscscm.UUCP> Date: 27 Aug 90 15:24:20 GMT References: <1990Aug24.175453.4310@irscscm.UUCP> <773@studsys.mu.edu> Reply-To: mlake@irscscm.UUCP (Marshall Lake) Organization: Internal Revenue Service, Washington, DC Lines: 25 In article <773@studsys.mu.edu> jetzer@studsys.UUCP (Mike Jetzer) writes: >In article <1990Aug24.175453.4310@irscscm.UUCP> mlake@irscscm.UUCP (Marshall Lake) writes: >>[questions about using the arrow keys with curses] >Your naivete could be corrected by reading the manpage on curses. > >Performing a keypad() will enable the keypad on most terminals, and when >the user presses an arrow key, the return value will be KEY_DOWN, KEY_UP, >etc. You can then take the proper action based on the key that the >user actually pressed. > > >-- >Mike Jetzer >"And we'll have fun, fun, fun until Daddy takes the keyboard awa-ay..." I failed to mention that I'm using ucb curses. I believe keypad() is a function of att curses. Is there some way of simulating att keypad() in the ucb environment? -- Marshall Lake mlake@irscscm.UUCP ...!uunet!media!ka3ovk!irscscm!mlake