Modula-2 || Compiler & Tools || Library || Search Engine


Ulm's Modula-2 Library:
Terminal


NAME

Terminal - simple i/o

SYNOPSIS

VAR Done: BOOLEAN;


PROCEDURE Read(VAR ch: CHAR); PROCEDURE ReadAgain; PROCEDURE Write(ch: CHAR); PROCEDURE WriteLn; PROCEDURE WriteString(s: ARRAY OF CHAR);

DESCRIPTION

Terminal bases on the StdIO module and reads from stdin and writes to stdout.

Read reads a character and stores it in ch.

ReadAgain causes the last read character to be read again. This may be used after calling ReadCard, from InOut or ReadReal from RealInOut for rereading the terminating character.

Write writes ch to stdout.

WriteLn writes a newline character to stdout.

WriteString writes the string s to stdout.

DIAGNOSTICS

Done is TRUE on successful calls, otherwise FALSE.

SEE ALSO

StdIO, InOut

HISTORY

A similar module was written by Sven Erik Knudsen for the Lilith system. Just BusyRead was omitted. Windows should be used instead. The current implementation is due to Andreas Borchert.
Edited by: borchert, last change: 1997/02/25, revision: 1.2, converted to HTML: 1997/04/28

Modula-2 || Compiler & Tools || Library || Search Engine