home *** CD-ROM | disk | FTP | other *** search
- PROGRAM TestVid;
-
- {
- Source: "Programming Quickies", TUG Lines Volume I Issue 1
- Author: Paul Klarreich
- Application: Turbo Pascal 1.0 on IBM PC and true compatibles
-
- Demonstrates the use of the screen Attribute byte located at
- $0145 in the code segment.
-
- }
-
- VAR Attribute : BYTE ABSOLUTE CSEG:$0145;
-
- BEGIN
- Attribute := $70; { reverse video }
- WRITELN('This is in reverse video.');
- Attribute := $07; { normal video }
- WRITELN('This is normal printing.');
- Attribute := Attribute OR $80; { turn on blinking }
- WRITELN('This will blink on and off.');
- Attribute := Attribute AND $7F; { turn it off }
- WRITELN('Not blinking any more.');
- END.
-