Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
* A newbie question - 'C' and terminal access
@ 1996-03-08  5:00 Steve Smith
  1996-03-24  5:00 ` Alan H. Martin
  0 siblings, 1 reply; 2+ messages in thread
From: Steve Smith @ 1996-03-08  5:00 UTC (permalink / raw)


This may be an easy one.........


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.

On Unix I do this via ioctl calls but I can't seem to find a way
to do it on VMS.  

I seem to remember from the dim and distant past
that I did this on RSTS/E with BASIC+ by using a certain mode
on the open.

Can anybody help....



---- Steve (steves@scgrad.demon.co.uk)






^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: A newbie question - 'C' and terminal access
  1996-03-08  5:00 A newbie question - 'C' and terminal access Steve Smith
@ 1996-03-24  5:00 ` Alan H. Martin
  0 siblings, 0 replies; 2+ messages in thread
From: Alan H. Martin @ 1996-03-24  5:00 UTC (permalink / raw)


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



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1996-03-24  5:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-03-08  5:00 A newbie question - 'C' and terminal access Steve Smith
1996-03-24  5:00 ` Alan H. Martin

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