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


Ulm's Modula-2 Library:
MainWin


NAME

MainWin - 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 failures.

SEE ALSO

FtdWin, Windows
Edited by: borchert, last change: 1997/02/25, revision: 1.2, converted to HTML: 1997/04/28

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