DiabloStreams.mesa
Copyright © 1985 by Xerox Corporation. All rights reserved.
Last Edited: Rumph, May 21, 1984 12:21:08 pm PDT
Tim Diebert: September 25, 1985 5:57:28 pm PDT
DIRECTORY
IO USING [STREAM];
DiabloStreams: CEDAR DEFINITIONS ~ BEGIN
STREAM: TYPE ~ IO.STREAM;
StreamOpen: PROC RETURNS [stream: IO.STREAM];
Busy: ERROR;
StreamOpen opens a stream on the printer port. It is writable only. As such, only the following procedures are available from IO.mesa. Others will raise IO.Error with an ErrorCode of "NotImplementedForThisStream". This will raise IO.Error on hardware related errors such as not ready.
PutChar: PROC [self: STREAM, char: CHAR]
PutBlock: PROC [self: STREAM, block: REF READONLY TEXT, startIndex: NAT ← 0, count: NATNAT.LAST]
Reset: PROC [self: STREAM]
Sends the reset sequence to the printer
Flush: PROC [self: STREAM]
Close: PROC [self: STREAM, abort: BOOLFALSE]
END.