CURSES

Juan Gabriel Ruiz Pinto jgabriel at mtecv2.mty.itesm.mx
Sat May 4 03:36:11 AEST 1991


allbery at NCoast.ORG (Brandon S. Allbery KB8JRR/AA) writes:

>Dumb question:  how did you declare "c"?  It should be declared as type
>"chtype" (declared by curses.h) --- "char" and "unsigned char" are too short,
>as the special keys are given values greater than 256.

    I try this in a VAX-6310 running Ultrix 3.0 and I get an strange
  result. First of all I need to add the keypad(stdscr,TRUE) option,
  and when I compile the program with the 'cc' compiler, it doesn't
  return the correct KEY_* number, but if I compile the same program
  with the 'vcc' (Vax CC) compiler it works fine.
    Somebody could explain this?
-- 
Juan Gabriel Ruiz Pinto                   Internet:
Ing. Sistemas Electronicos                jgabriel at mtecv2.mty.itesm.mx
I.T.E.S.M. Campus Monterrey



More information about the Comp.unix.programmer mailing list