Modula-2 ||
Compiler & Tools ||
Library ||
Search Engine
Ulm's Modula-2 Library:
MainWin
NAME
MainWin, SetPos, GetPos, Clear, Flush, WriteString, Write, WriteLn,
Read, ReadString, ReadInt,
WriteInt, ReadCard, WriteCard - simple screen operations
SYNOPSIS
VAR mainwin: Window;
VAR lines, columns: CARDINAL;
VAR Done: BOOLEAN;
PROCEDURE SetPos(line, column: CARDINAL);
PROCEDURE GetPos(VAR line, column: CARDINAL);
PROCEDURE Clear;
PROCEDURE Flush;
PROCEDURE WriteString(s: ARRAY OF CHAR);
PROCEDURE Write(ch: CHAR);
PROCEDURE WriteLn;
PROCEDURE Read(VAR ch: CHAR);
PROCEDURE ReadString(VAR s: ARRAY OF CHAR);
PROCEDURE WriteInt(i: INTEGER; w: CARDINAL);
PROCEDURE ReadInt(VAR i: INTEGER);
PROCEDURE WriteCard(c: CARDINAL; w: CARDINAL);
PROCEDURE ReadCard(VAR c: CARDINAL);
DESCRIPTION
MainWin
bases on
Windows
and
FtdWin
and offers some less sophisticated procedures.
All procedures affect
mainwin
which is created during initialization.
The attributes
flushoninput,
echo,
and
movecursor
(see Windows) are initially set.
The number of lines and columns are stored in
lines
and
columns.
Cleanup and terminal resetting is done automatically on program termination.
See Windows and FtdWin for more detailed explanations.
Note that
OpenDevice
must not called if
MainWin
is imported.
Further windows must be created using
mainwin.
DIAGNOSTICS
Done
is set to
FALSE
on failure.
SEE ALSO
Windows, FtdWin
Edited by: martin, last change: 1996/12/04, revision: 1.1, converted to HTML: 1996/12/11
Modula-2 ||
Compiler & Tools ||
Library ||
Search Engine