TTYStream.mesa
Copyright © 1986 by Xerox Corporation. All rights reserved.
Tim Diebert: December 9, 1986 11:17:05 am PST
~
BEGIN
Types
SubSequenceType: TYPE = [0..256);
Operations
CreateStream:
PROC []
RETURNS [stream:
IO.
STREAM];
Creates a simple IO stream on top of a dumb terminal. Raises TTY.OutOfInstances if there are no more.
SetSST: PROC [self: IO.STREAM, sst: SubSequenceType];
SendAttention: PROCEDURE [self: IO.STREAM, byte: BYTE];
WaitAttention: PROCEDURE [self: IO.STREAM] RETURNS [BYTE];
Signals and errors
Attention: SIGNAL [nextIndex: CARDINAL];
SSTChange: SIGNAL [sst: SubSequenceType, nextIndex: CARDINAL];