Updated README to reflect color codes
This commit is contained in:
parent
4096db005d
commit
9eebe4ffbb
34
README.md
34
README.md
|
@ -101,4 +101,36 @@ 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`
|
||||
|
||||
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.
|
Loading…
Reference in New Issue