Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: amartin@denton.zko.dec.com (Alan H. Martin)
Subject: Re: A newbie question - 'C' and terminal access
Date: 1996/03/24	[thread overview]
Message-ID: <4j3vsn$7ku@zk2nws.zko.dec.com> (raw)
In-Reply-To: 826299121.12188@steves.scg.co.uk

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



      reply	other threads:[~1996-03-24  5:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-03-08  5:00 A newbie question - 'C' and terminal access Steve Smith
1996-03-24  5:00 ` Alan H. Martin [this message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox