Curses and the arrow keys

Marshall Lake mlake at irscscm.UUCP
Tue Aug 28 01:24:20 AEST 1990


In article <773 at studsys.mu.edu> jetzer at studsys.UUCP (Mike Jetzer) writes:
>In article <1990Aug24.175453.4310 at irscscm.UUCP> mlake at 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 at irscscm.UUCP
...!uunet!media!ka3ovk!irscscm!mlake



More information about the Comp.unix.questions mailing list