curses attr*() and KEY_*
slh at gibdo.engr.washington.edu
slh at gibdo.engr.washington.edu
Thu Apr 25 02:13:11 AEST 1991
In article <1345 at nlsun1.oracle.nl> hbergh at oracle.nl (Herbert van den Bergh) writes:
|In article <1991Apr23.073202.18324 at gibdo.engr.washington.edu> slh at 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.
More information about the Comp.unix.aix
mailing list