Originally posted by: dwl10@amdahl.UUCP (Dave Lowrey)
Message-ID: <898@amdahl.UUCP>
Date: Wed, 9-Jan-85 09:41:49 EST
Article-I.D.: amdahl.898
Posted: Wed Jan 9 09:41:49 1985
Date-Received: Sat, 12-Jan-85 00:45:31 EST
References: <570@sdcsvax.UUCP>
Organization: Amdahl Corporation, Columbia MD
Lines: 27
>
> rs232 - input - open
> screen -output - open
>
> ---------------------
> keyboard - input - open
> rs232 -output - open
>
>
> To keep switching my input and output files do I have to close the rs232
> and then reopen it or can I just keep switching which channel is now the
> input/output channel without closing the other one?
There is no need to CLOSE and OPEN the files to switch back and forth. Use
CHKIN to switch input files, and CHKOUT to switch output files. Just load
the X register with the file number (not device number) of the desired
input/output file then call the routine.
--
-----------------------------------------------------------------------
Dave Lowrey
"GORT...Klatu borada niktow"
...!{nsc,sun,hplabs,ihnp4}!amdahl!dwl10
[ The opinions expressed be those of the author and not necessarily
those of his most eminent employer. ]