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


Ulm's Modula-2 Library:
FtdWin


NAME

FtdWin - formatted window i/o

SYNOPSIS

VAR Done: BOOLEAN;
VAR termCH: CHAR;


PROCEDURE WinReadInt(win: Window; VAR int: INTEGER); PROCEDURE WinWriteInt(win: Window; int: INTEGER; w: CARDINAL); PROCEDURE WinReadCard(win: Window; VAR card: CARDINAL); PROCEDURE WinWriteCard(win: Window; card: CARDINAL; w: CARDINAL); PROCEDURE WinReadString(win: Window; VAR str: ARRAY OF CHAR); PROCEDURE WinReadLine(win: Window; VAR str: ARRAY OF CHAR); PROCEDURE WinWriteString(win: Window; str: ARRAY OF CHAR); PROCEDURE WinWriteLn(win: Window);

DESCRIPTION

FtdWin is based on Windows and provides a set of i/o-procedures like InOut. The input routines support backspace editing. For conventional behavior echo and flushoninput or flushalways should be set (see Windows).

WinReadString, WinReadInt, and WinReadCard skip white space which cannot be edited using back spaces. WinReadLine reads a complete line (terminated by newline) without skipping. Reading is stopped if the given character array is filled (WinReadString and WinReadLine) or a delimiting character is typed (returned in termCH).

DIAGNOSTICS

Done is set to FALSE if anything fails. Exceptions are the reading procedures which do not set Done to FALSE if errors result from echoing.

SEE ALSO

InOut, MainWin, Screen, TermInfo, 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