(*
    Title: 	TermIO - Definitions
    LastEdit:	Tue May 22 15:40:34 1984
    Author: 	Mick Jordan
		Cambridge University Computer Laboratory
*)

DEFINITION MODULE TermIO;

FROM Streams IMPORT STREAM;

EXPORT QUALIFIED  FindInOutput, FindErrOutput;

PROCEDURE FindInOutput(): STREAM;
(*  Returns an InOut stream to the terminal.
    Input is buffered at the level defined by the underlying
    operating systemm usually a line at a time.
    Output is buffered until a NewLineCh, a call to Streams.FlushOut
    or an input request on the stream.
*)
PROCEDURE FindErrOutput(): STREAM;
(*  Returns an unbuffered stream on which to output error messages.
    Whether this has the same destination as the output portion
    of the stream above depends on the underlying operating system.
*)

END TermIO .
