curses X/Open problem with keypad().

Scott Gregory gregory at csczar.ncsu.edu
Mon Nov 13 09:54:57 AEST 1989


I'm working on a Vaxstation running ULTRIX-32 V3.1.  I'm writing an
application using the X/Open version of curses (cursesX) and am
having a problem with reading function keys, (keys that transmit
more than one character).  I call keypad() but it returns a number
other than ERR (-1) or OK (0), generally somewhere in the 5000's
depending on the term type.  Anyway, getch(3cur) does not look
for those extra characters after Esc, etc. like its supposed to.

Now my question is, has anyone else had this problem.  If so what 
was done to get it to work?  If not, what in the world do those
return values from keypad mean?  I'd appreciate any help with this.

BTW:  I've tried this with more than a few terminal types.

Thanks in advance.

--Scott Gregory
gregory at csczar.ncsu.edu



More information about the Comp.lang.c mailing list