Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!usc!sdd.hp.com!uakari.primate.wisc.edu!aplcen!wb3ffv!ka3ovk!irscscm!mlake From: mlake@irscscm.UUCP (Marshall Lake) Newsgroups: comp.unix.questions Subject: Curses and the arrow keys Message-ID: <1990Aug24.175453.4310@irscscm.UUCP> Date: 24 Aug 90 17:54:53 GMT Reply-To: mlake@irscscm.UUCP (Marshall Lake) Organization: Internal Revenue Service, Washington, DC Lines: 26 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@irscscm.UUCP ...!uunet!media!ka3ovk!irscscm!mlake