From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,d2f56c581413a1d5 X-Google-Attributes: gid1164f8,public From: amartin@denton.zko.dec.com (Alan H. Martin) Subject: Re: A newbie question - 'C' and terminal access Date: 1996/03/24 Message-ID: <4j3vsn$7ku@zk2nws.zko.dec.com>#1/1 X-Deja-AN: 144225121 references: <826299121.12188@steves.scg.co.uk> organization: DEC newsgroups: comp.sys.dec In article <826299121.12188@steves.scg.co.uk> steves@scg.co.uk (Steve Smith) writes: >I'm porting some software from Unix to VMS and need to open the stdin >device in a mode so that echo is switched off and each character >can be got without waiting for a CR/LF. Using functions from the curses library: 1. Call noecho to turn off the echo. 2. Call crmode to allow single characters to be snarfed. 3. Call getch to snarf a character. $ HELP CC Run function $ HELP CC/VAXC Run function -or hopefully- $ HELP CC/DECC Run function describes each function. However, crmode (at least) is referred to as ``[no]crmode''. Also, if you're using VAX C (compiler version 3.2 or lower), you'll have to explicitly link against the curses library. See the documentation for details. /AHM -- Alan Howard Martin AMartin@TLE.ENet.DEC.Com