# unit CRT

### Mad Pascal screen and keyboard handling units

author: Tomasz Biela (Tebe)

http://www.freepascal.org/docs-html/rtl/crt/index-5.html

## Constants:

name: | value: | description:
--- | --- | ---
CN_START_SELECT_OPTION | 0 | Consol values
CN_SELECT_OPTION | 1 |
CN_START_OPTION | 2 |
CN_OPTION | 3 |
CN_START_SELECT | 4 |
CN_SELECT | 5 |
CN_START | 6 |
CN_NONE | 7 |
BW40 | 0 | 40x25 B/W on Color Adapter
CO40 | 1 | 40x25 Color on Color Adapter
BW80 | 2 | 80x25 B/W on Color Adapter
CO80 | 3 | 80x25 Color on Color Adapter
Mono | 7 | 80x25 on Monochrome Adapter
C40 | CO40 |
C80 | CO80 |
BLACK | $0 |
WHITE | $1 |
RED | $2 |
CYAN | $3 |
PURPLE | $4 |
GREEN | $5 |
BLUE | $6 |
YELLOW | $7 |
ORANGE | $8 |
BROWN | $9 |
LIGHT_RED | $A |
DARK_GREY | $B |
GREY | $C |
LIGHT_GREEN | $D |
LIGHT_BLUE | $E |
LIGHT_GREY | $F |
BLACK | $0 |
WHITE | $1 |
RED | $2 |
CYAN | $3 |
PURPLE | $4 |
GREEN | $5 |
BLUE | $6 |
YELLOW | $7 |
ORANGE | $8 |
BROWN | $9 |
YELLOW_GREEN | $A |
PINK | $B |
BLUE_GREEN | $C |
LIGHT_BLUE | $D |
DARK_BLUE | $E |
LIGHT_GREEN | $F |
BLACK | $00 |
WHITE | $0F |
RED | $26 |
CYAN | $AC |
PURPLE | $48 |
GREEN | $B6 |
BLUE | $86 |
YELLOW | $DC |
ORANGE | $18 |
BROWN | $F4 |
LIGHT_RED | $2A |
DARK_GREY | $04 |
GREY | $08 |
LIGHT_GREEN | $BC |
LIGHT_BLUE | $9A |
LIGHT_GREY | $0C |
Blink | 128 |

## Register Variables:

name: | address: | type: | description:
--- | --- | --- | ---
Consol | $d01f | byte | CONSOL register

## Global Variables:

name: | type: | description:
--- | --- | ---
TextAttr | byte = 0 | Text Attribute