From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f7344,e7de5a75dc698f7c X-Google-Attributes: gidf7344,public X-Google-Thread: 1164f8,e7de5a75dc698f7c X-Google-Attributes: gid1164f8,public X-Google-Thread: 10b612,e7de5a75dc698f7c X-Google-Attributes: gid10b612,public X-Google-ArrivalTime: 1991-04-24 22:37:11 PST Path: gmdzi!unido!mcsun!uunet!ukma!rex!wuarchive!gumby!peirce From: peirce@gumby.cc.wmich.edu (Leonard Peirce) Newsgroups: comp.os.vms,comp.sys.dec,comp.unix.ultrix Subject: Re: Cursor key input in curses ? Message-ID: <1991Apr24.140134.26133@gumby.cc.wmich.edu> Date: 24 Apr 91 14:01:34 GMT References: <1991Apr20.160134.1514@urz.unibas.ch> Organization: Western Michigan University Academic Computing Services Xref: gmdzi comp.os.vms:125322 comp.sys.dec:24203 comp.unix.ultrix:45745 In article <1991Apr20.160134.1514@urz.unibas.ch> doelz@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., [ 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@gumby.cc.wmich.edu Western Michigan University peirce@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"