how do I trap a single keystroke in VMS C?

andersen at vaxr.llnl.gov andersen at vaxr.llnl.gov
Thu Jul 26 01:55:26 AEST 1990


Does anybody have code written to trap a single keystroke in VMS C?  I know I
need to use a QIO, and with enough dinking I could figure it out, but if I
can steal somebody elses solution I'd much rather.  I need my code to respond
to a keystroke without having to also hit RETURN.  (In OS-9 C, a 
read( 0, &ch, 1) does the trick, but not in VMS.)

-- Roger Andersen
	LLNL



More information about the Comp.lang.c mailing list