Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!dali.cs.montana.edu!milton!gibdo!slh From: slh@gibdo.engr.washington.edu Newsgroups: comp.unix.aix Subject: Re: curses attr*() and KEY_* Summary: solved: #define NLS Keywords: curses attr*() KEY_* NLS Message-ID: <1991Apr24.160340.8419@gibdo.engr.washington.edu> Date: 24 Apr 91 16:13:11 GMT References: <1991Apr23.073202.18324@gibdo.engr.washington.edu> <1345@nlsun1.oracle.nl> Sender: news@milton.u.washington.edu (News) Reply-To: slh@gibdo.engr.washington.edu (PUT YOUR NAME HERE) Organization: zippity Lines: 14 In article <1345@nlsun1.oracle.nl> hbergh@oracle.nl (Herbert van den Bergh) writes: |In article <1991Apr23.073202.18324@gibdo.engr.washington.edu> slh@gibdo.engr.washington.edu () writes: [stuff] |I suggest you define NLS before including curses.h, because it seems |that the getch() routine returns NLS codes. The return type of getch |isn't int, but chtype, which is typedef'ed in curses.h, and different |when compiled with or without NLS defined. | (also suggested by Ed Spire to someone else's query) This worked; it got both the video attributes and KEY_* code working. As best I can tell from the include, the return type is int, although I did see the chtype stuff. I think it's bullshit I should have to define NLS to get this to work. Thanks.