[comp.sys.dec] Curses -- accessing keypad codes, Ultrix bugs

doug@wiley.UUCP (Doug Rudoff) (11/10/89)

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