From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f7344,e7de5a75dc698f7c,start X-Google-Attributes: gidf7344,public X-Google-Thread: 10b612,e7de5a75dc698f7c,start X-Google-Attributes: gid10b612,public X-Google-Thread: 1164f8,e7de5a75dc698f7c,start X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1991-04-20 08:06:40 PST Path: gmdzi!unido!mcsun!cernvax!chx400!chx400!urz.unibas.ch!doelz From: doelz@urz.unibas.ch Newsgroups: comp.os.vms,comp.sys.dec,comp.unix.ultrix Subject: Cursor key input in curses ? Message-ID: <1991Apr20.160134.1514@urz.unibas.ch> Date: 20 Apr 91 15:01:34 GMT Organization: University of Basel, Switzerland Xref: gmdzi comp.os.vms:125248 comp.sys.dec:24179 comp.unix.ultrix:45699 Problem: 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. Please: I would be grateful if someone in netland could explain me what goes wrong on the vt100 emulation side or even get me a piece of code which reads in a cursor key correctly. Regards Reinhard +-----------------------------------------------------------------------------+ |Dr. Reinhard Doelz | X.400: S=doelz,OU=urz,O=unibas,P=switch,A=arcom,C=ch | | Universitaets- | RFC : doelz@urz.unibas.ch | | rechenzentrum | X.25 : psi%022846211142::embnet | | Klingelbergstr.70 | Tel. : +41 61 267 2076 +----------------------------+ | CH 4056 Basel | Fax. : +41 61 261 6760 | S W I T Z E R L A N D +------------------------------------------------+