Curses -- accessing keypad codes, Ultrix bugs
Doug Rudoff
doug at wiley.UUCP
Fri Nov 10 16:24:59 AEST 1989
I'm using curses on a DECstation 3100. The keypad() function does not
work; it doesn't cause function keys to be tokenized at all. (Has
anyone else found that problem? DEC says it has no plans to fix it.)
(BTW the curses I'm using is cursesX for the POSIX standard, pretty
much the same as Systerm V curses).
So, I wrote my own routine to tokenize function keys. But, how do I
access the function key codes which are stored internally in the
terminal information structure?
In term.h is struct term which is the structure that stores
the key codes. What structure includes struct term? I assume it's the
SCREEN structure, but that structure is forward referenced, so I can't
get to it. In addition, struct term only has room defined for 10
function keys, yet the curses definition allows 64 function keys.
Needless to say, I'm confused. Any hints would be greatly appreciated.
Thanks.
Send e-mail to:
uunet!nwnexus!mdisea!rudoff (nwnexus must be in the path)
or if that fails:
{uunet,cit-vax}!wiley!doug
Doug Rudoff
More information about the Comp.lang.c
mailing list