Path: utzoo!attcan!uunet!snorkelwacker!usc!zaphod.mps.ohio-state.edu!ncar!bierstat.scd.ucar.edu!morreale From: morreale@bierstadt.scd.ucar.edu (Peter Morreale) Newsgroups: comp.lang.c Subject: curses question.. Keywords: fledgling C programmer Message-ID: <8017@ncar.ucar.edu> Date: 18 Jul 90 14:37:48 GMT Sender: news@ncar.ucar.edu Reply-To: morreale@bierstadt.scd.ucar.edu (Peter Morreale) Organization: Scientific Computing Division / NCAR, Boulder CO Lines: 27 I hope this question is posted to the correct place.... I'm a fledgling C programmer who is attempting (;-) to write a small curses application. The app. will be used by a small number of folks locally. (This is mostly a learning exercise...) What I'd like is some info on how to deal with cursor motion when the user hits a cursor key. I intend to obtain input using getchar and need to know how to detect when a cursor key is pressed for a couple of different terminals. (vt100 and xterm) This is on Sun OS...( > 4.0) Did I miss sumpthin in the Sun manuals? (I have read the "Using Curses" part several times.) A code fragment would be wonderful... Thanks for any insights... -PWM ------------------------------------------------------------------ Peter W. Morreale email: morreale@ncar.ucar.edu Nat'l Center for Atmos Research voice: (303) 497-1293 Scientific Computing Division Consulting Office ------------------------------------------------------------------