Differences
This shows you the differences between two versions of the page.
ppl:color-codes [2019/04/12 14:30] – external edit 127.0.0.1 | ppl:color-codes [2019/04/16 14:45] (current) – stimpy | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Color Codes ====== | + | ====== |
- | PCBoard defines some macros to change color if user has ANSI capabilities. | + | PCBoard defines some macros to change color if user has ANSI capabilities. |
- | If user doesn' | + | If user doesn' |
- | Color codes are made of 4 bytes. the first byte is used to enter in macro mode. The second indicates that we want to pass a color code. Next byte is the background color and the last is the foreground color. | + | Color codes are made of 4 bytes. the first byte is used to enter in macro mode. The second indicates that we want to pass a color code. Next byte is the background color and the last is the foreground color. |
===== BackGround codes: ===== | ===== BackGround codes: ===== | ||
- | | + | |
- | 1 - Blue | + | < |
- | 2 - Green | + | |
- | 3 - Cyan | + | 1 - Blue |
- | 4 - Red | + | 2 - Green |
- | 5 - Magenta | + | 3 - Cyan |
- | 6 - Brown | + | 4 - Red |
- | 7 - LightGray | + | 5 - Magenta |
- | 8 - Black | + | 6 - Brown |
- | 9 - Blinking foreground on Blue background | + | 7 - LightGray |
- | A - Blinking foreground on Green background | + | 8 - Black |
- | B - Blinking foreground on Cyan background | + | 9 - Blinking foreground on Blue background |
- | C - Blinking foreground on Red background | + | A - Blinking foreground on Green background |
- | D - Blinking foreground on Magenta background | + | B - Blinking foreground on Cyan background |
- | E - Blinking foreground on Brown background | + | C - Blinking foreground on Red background |
- | F - Blinking foreground on LightGray background | + | D - Blinking foreground on Magenta background |
+ | E - Blinking foreground on Brown background | ||
+ | F - Blinking foreground on LightGray background | ||
+ | </ | ||
===== Foreground codes: ===== | ===== Foreground codes: ===== | ||
- | | + | |
- | 1 - Blue | + | < |
- | 2 - Green | + | |
- | 3 - Cyan | + | 1 - Blue |
- | 4 - Red | + | 2 - Green |
- | 5 - Magenta | + | 3 - Cyan |
- | 6 - Brown | + | 4 - Red |
- | 7 - LightGray | + | 5 - Magenta |
- | 8 - DarkGray | + | 6 - Brown |
- | 9 - LightBlue | + | 7 - LightGray |
- | A - LightGreen | + | 8 - DarkGray |
- | B - LightCyan | + | 9 - LightBlue |
- | C - LightRed | + | A - LightGreen |
- | D - LightMagenta | + | B - LightCyan |
- | E - Yellow | + | C - LightRed |
- | F - White | + | D - LightMagenta |
- | + | E - Yellow | |
- | + | F - White | |
- | ---- | + | </ |
- | **Tags:** {{tag> | + | |
+ | —- **Tags:** | ||
+ | |||
+ | {{tag> | ||
+ |