Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!swrinde!cs.utexas.edu!helios!mtecv2!jgabriel From: jgabriel@mtecv2.mty.itesm.mx (Juan Gabriel Ruiz Pinto) Newsgroups: comp.unix.programmer Subject: Re: CURSES Message-ID: <3298@mtecv2.mty.itesm.mx> Date: 3 May 91 17:36:11 GMT References: <1991May1.192004.25227@msuinfo.cl.msu.edu> <1991May3.011507.14093@NCoast.ORG> Organization: ITESM. Campus Monterrey Lines: 16 allbery@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@mtecv2.mty.itesm.mx I.T.E.S.M. Campus Monterrey