This chapter describes the CRT unit for Free Pascal, both under DOS LINUX and WINDOWS. The
unit was first written for DOS by Florian klämpfl. The unit was ported to LINUX by Mark
May1,
and enhanced by Michaël Van Canneyt and Peter Vreman. It works on the LINUX console, and in
xterm and rxvt windows under X-Windows. The functionality for both is the same, except that
under LINUX 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 LINUX 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.