Cursor key input in curses ?

Leonard Peirce peirce at gumby.cc.wmich.edu
Thu Apr 25 00:01:34 AEST 1991


In article <1991Apr20.160134.1514 at urz.unibas.ch> doelz at urz.unibas.ch writes:
>How do you input cursor keys in curses ? 
>
>Background:
>I want to show a menu on the screen which is similar to the one you get from 
>SMG$ on VAX/VMS. The curses package available in C gives the problem 
>that the cursor key is read either as terminator or as a sequence of three 
>characters (e.g.,  <ESC> [ A ) in vt100 emulation instead of a cursor key. 

This was fixed in 4.0 although not completely.  I complained to DEC on
numerous occasions when I was running 3.x and they finally sent me a patch
but it only fixed the cursor keys.  Keys like Prev Screen, Next Screen,
Find, etc., were still broken.  I was hoping everything would be fixed in
4.x.  Sigh.....

Sometime ago, someone posted here what the problem was.  It was something
like a parameter being passed to a subroutine incorrectly.  I looked for it
in what seems like an endless archive of stuff that I save but I couldn't
find it.

I would SPR this myself but I'm too busy trying to fix LAT printing.  Maybe
sometime this week or early next week I'll have something to post about it.
Grrr.....

--
Leonard Peirce                  Internet:  peirce at gumby.cc.wmich.edu
Western Michigan University                peirce at gw.wmich.edu
Academic Computing Services     UUCP:      ...!uunet!sharkey!wmichgw!peirce
Kalamazoo, MI  49008            Phone:     (616) 387-5469

"Answer that, it may be the phone." -- Anthony Wachs, "Tony In RH20 Land"



More information about the Comp.unix.ultrix mailing list