From 9eebe4ffbbf16c11c5fe75d7eebe333c98395b9b Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Tue, 22 Sep 2015 13:58:14 +0200 Subject: [PATCH] Updated README to reflect color codes --- README.md | 34 +++++++++++++++++++++++++++++++++- 1 file changed, 33 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index e8fecf9..75ed1c0 100644 --- a/README.md +++ b/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`. \ No newline at end of file +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. \ No newline at end of file