[next] [prev] [prev-tail] [tail] [up]

## Chapter 1
The CRT unit.

This chapter describes the CRT unit for Free Pascal, both under D O S L I N U X and WI N D O W S. The unit was first written for D O S by Florian klämpfl. The unit was ported to L I N U X by Mark May1, and enhanced by Michaël Van Canneyt and Peter Vreman. It works on the L I N U X console, and in xterm and rxvt windows under X-Windows. The functionality for both is the same, except that under L I N U X the use of an early implementation (versions 0.9.1 and earlier of the compiler) the crt unit automatically cleared the screen at program startup.

There are some caveats when using the CRT unit:

- Programs using the CRT unit will not be usable when input/output is being redirected on the command-line.
- For similar reasons they are not usable as CGI-scripts for use with a webserver.
- The use of the CRT unit and the graph unit may not always be supported.
- On L I N U X or other unix OSes , executing other programs that expect special terminal behaviour (using one of the special functions in the linux unit) will not work. The terminal is set in RAW mode, which will destroy most terminal emulation settings.

This chapter is divided in two sections.

- The first section lists the pre-defined constants, types and variables.
- The second section describes the functions which appear in the interface part of the CRT unit.

1.1 Types, Variables, Constants
1.2 Procedures and Functions
AssignCrt
CursorBig
ClrEol
ClrScr
CursorOff
CursorOn
Delay
DelLine
GotoXY
HighVideo
InsLine
KeyPressed
LowVideo
NormVideo
NoSound
ReadKey
Sound
TextBackground
TextColor
TextMode
WhereX
WhereY
Window

[next] [prev] [prev-tail] [front] [up]