[comp.lang.c] 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

peirce@gumby.cc.wmich.edu (Leonard J. Peirce) (11/11/89)

In article <7500@wiley.UUCP> doug@wiley.UUCP (Doug Rudoff) writes:
>
>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.)
>

The keypad() routine is broken in VAX Ultrix 3.0, too.  I received a patched
copy from DEC that lets the arrow keys work ok but I have yet to make the
VT220 keys such as Next Screen and Prev Screen work.

I was told that keypad() was going to be fixed in 3.1.  I haven't installed
it yet so I can't be sure if it is.  If it isn't, I know that I'm going
to complain; maybe if enough of us do, DEC will *finally* fix it.
--
Leonard J. Peirce               Internet:  peirce@gumby.cc.wmich.edu
Western Michigan University                peirce@gw.wmich.edu
Academic Computer Center        UUCP:      ...!uunet!sharkey!wmichgw!peirce
Kalamazoo, MI  49008            Phone:     (616) 387-5469

This is STILL the Al Franken Decade.....