Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!sdd.hp.com!decwrl!ogicse!milton!gibdo.engr.washington.edu!slh From: slh@gibdo.engr.washington.edu Newsgroups: comp.unix.aix Subject: curses attr*() and KEY_* Keywords: curses attr*() KEY_* Message-ID: <1991Apr23.073202.18324@gibdo.engr.washington.edu> Date: 23 Apr 91 07:42:03 GMT Article-I.D.: gibdo.1991Apr23.073202.18324 Sender: news@milton.u.washington.edu (News) Reply-To: slh@gibdo.engr.washington.edu () Organization: Labyrinth 7 Lines: 16 Has any one used curses and specifically the attr*() attribute functions and the KEY_* code from getch()? Using attron with anything but A_STANDOUT screws up cursor position and doesn't produce the desired/expected effect. The KEY_*'s codes never get returned from getch(), even with keypad(stdscr,TRUE) set. I either get nothing or at most what look like it might be the char from the escape code. I've tried almost all the KEY_* values and yes the receiving variable is defined as an int. I tried these things on the console, in an aixterm and on a vt100 (emulator), and they suck everywhere. Do I need to do something tricky? Do they plain not work? Thanks.