home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power-Programmierung
/
CD1.mdf
/
pascal
/
library
/
dos
/
sampler
/
01
/
diverse
/
crt.hdr
< prev
next >
Wrap
Text File
|
1987-08-18
|
2KB
|
76 lines
UNIT Crt;
INTERFACE
CONST
{ CRT modes }
BW40 = 0; { 40x25 B/W on Color Adapter }
C40 = 1; { 40x25 Color on Color Adapter }
BW80 = 2; { 80x25 B/W on Color Adapter }
C80 = 3; { 80x25 Color on Color Adapter }
Mono = 7; { 80x25 B/W on Monochrome Adapter }
Last = -1; { Last active text mode }
{ Foreground and background color constants }
Black = 0;
Blue = 1;
Green = 2;
Cyan = 3;
Red = 4;
Magenta = 5;
Brown = 6;
LightGray = 7;
{ Foreground color constants }
DarkGray = 8;
LightBlue = 9;
LightGreen = 10;
LightCyan = 11;
LightRed = 12;
LightMagenta = 13;
Yellow = 14;
White = 15;
{ Add-in for blinking }
Blink = 128;
VAR
{ Interface variables }
CheckBreak: Boolean; { Enable Ctrl-Break }
CheckEOF: Boolean; { Enable Ctrl-Z }
DirectVideo: Boolean; { Enable direct video addressing }
CheckSnow: Boolean; { Enable snow filtering }
TextAttr: Byte; { Current text attribute }
WindMin: Word; { Window upper left coordinates }
WindMax: Word; { Window lower right coordinates }
{ Interface PROCEDUREs }
PROCEDURE AssignCrt(var F: Text);
FUNCTION KeyPressed: Boolean;
FUNCTION ReadKey: Char;
PROCEDURE TextMode(Mode: Integer);
PROCEDURE Window(X1,Y1,X2,Y2: Integer);
PROCEDURE GotoXY(X,Y: Integer);
FUNCTION WhereX: Integer;
FUNCTION WhereY: Integer;
PROCEDURE ClrScr;
PROCEDURE ClrEol;
PROCEDURE InsLine;
PROCEDURE DelLine;
PROCEDURE TextColor(Color: Integer);
PROCEDURE TextBackground(Color: Integer);
PROCEDURE LowVideo;
PROCEDURE HighVideo;
PROCEDURE NormVideo;
PROCEDURE Delay(MS: Integer);
PROCEDURE Sound(Hz: Integer);
PROCEDURE NoSound;