Curses and the arrow keys
Marshall Lake
mlake at irscscm.UUCP
Sat Aug 25 03:54:53 AEST 1990
I am writing a program which will be taking advantage of curses. I am
trying to utilize the arrow keys and am confused (actually all of
curses confuses me). I am doing a getch () and if I get an ESCAPE I do
another getch (). If I addch () for each character I get (the ESCAPE
and the next character) then the cursor moves around properly on the
screen but the x/y coordinates in the window structure do not follow
suit. Curses is recognizing the arrow keys simply as regular
characters. Am I naive in thinking that curses is smart enough to
handle the arrow keys specially? Should I be moving the cursor
manually via the move function?
I'm really not sure I know what I'm talking about when it comes to
curses so any help is appreciated.
Thanks.
--
Marshall Lake
mlake at irscscm.UUCP
...!uunet!media!ka3ovk!irscscm!mlake
More information about the Comp.unix.questions
mailing list