Updated README to reflect color codes

This commit is contained in:
Andreas Schneider 2015-09-22 13:58:14 +02:00
parent 4096db005d
commit 9eebe4ffbb
1 changed files with 33 additions and 1 deletions

View File

@ -102,3 +102,35 @@ You need at least FreePascal 3.0 and it is recommended to use Lazarus as IDE.
Compiling from commandline is as easy as: `fpc -XX -CX -Xs -Fujtemplate restemplate.pas` Compiling from commandline is as easy as: `fpc -XX -CX -Xs -Fujtemplate restemplate.pas`
If you use Lazarus, you can simply open the project file `restemplate.pas`. If you use Lazarus, you can simply open the project file `restemplate.pas`.
# Appendix A: Color Codes
Taken from the FPC source:
```Pascal
{ 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;
```
Blink can be added by setting the appropriate bit.