home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Turbo Toolbox
/
Turbo_Toolbox.iso
/
1991
/
06
/
praxis
/
listing1.pas
< prev
next >
Wrap
Pascal/Delphi Source File
|
1991-03-12
|
2KB
|
54 lines
(* ------------------------------------------------------ *)
(* LISTING.1 *)
(* (c) 1991 Borland International *)
(* ------------------------------------------------------ *)
UNIT WinCrt;
{$S-}
INTERFACE
USES WinTypes, WinProcs, WinDos;
CONST
WindowOrg: TPoint = { CRT window origin }
(X: cw_UseDefault; Y: cw_UseDefault);
WindowSize: TPoint = { CRT window size }
(X: cw_UseDefault; Y: cw_UseDefault);
ScreenSize: TPoint = (X: 80; Y: 25); { Screen buffer dimensions }
Cursor: TPoint = (X: 0; Y: 0); { Cursor location }
Origin: TPoint = (X: 0; Y: 0); { Client area origin }
InactiveTitle: PChar = '(Inactive %s)'; { Inactive window title }
AutoTracking: BOOLEAN = TRUE; { Track cursor on Write? }
CheckEoF: BOOLEAN = FALSE; { Allow Ctrl-Z for EOF? }
CheckBreak: BOOLEAN = TRUE; { Allow Ctrl-C for break? }
VAR
WindowTitle: ARRAY[0..79] OF CHAR; { CRT window title }
PROCEDURE InitWinCrt;
PROCEDURE DoneWinCrt;
PROCEDURE WriteBuf(Buffer: PChar; Count: WORD);
PROCEDURE WriteChar(CH: CHAR);
FUNCTION KeyPressed: BOOLEAN;
FUNCTION ReadKey: CHAR;
FUNCTION ReadBuf(Buffer: PChar; Count: WORD): WORD;
PROCEDURE GotoXY(X, Y: INTEGER);
FUNCTION WhereX: INTEGER;
FUNCTION WhereY: INTEGER;
PROCEDURE ClrScr;
PROCEDURE ClrEol;
PROCEDURE CursorTo(X, Y: INTEGER);
PROCEDURE ScrollTo(X, Y: INTEGER);
PROCEDURE TrackCursor;
PROCEDURE AssignCrt(VAR F: Text);
(* ------------------------------------------------------ *)
(* Ende von LISTING.1 *)