Differences

This shows you the differences between two versions of the page.

Link to this comparison view

ppl-color-codes [2019-04-12 14:30] – created stimpyppl-color-codes [2026-08-23 10:35] (current) – removed - external edit (Unknown date) 127.0.0.1
Line 1: Line 1:
-====== Color Codes ====== 
  
-PCBoard defines some macros to change color if user has ANSI capabilities.   
- 
-If user doesn't support ANSI, PCB just skip those codes. It is a good way to colorize your screens and prompt because you don't have to check the ANSI flag, PCB deal with it automatically.   
- 
-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: ===== 
-        0 - Black 
-        1 - Blue 
-        2 - Green 
-        3 - Cyan 
-        4 - Red 
-        5 - Magenta 
-        6 - Brown 
-        7 - LightGray 
-        8 - Black 
-        9 - Blinking foreground on Blue background 
-        A - Blinking foreground on Green background 
-        B - Blinking foreground on Cyan background 
-        C - Blinking foreground on Red background 
-        D - Blinking foreground on Magenta background 
-        E - Blinking foreground on Brown background 
-        F - Blinking foreground on LightGray background 
- 
-===== Foreground codes: ===== 
-        0 - Black 
-        1 - Blue 
-        2 - Green 
-        3 - Cyan 
-        4 - Red 
-        5 - Magenta 
-        6 - Brown 
-        7 - LightGray 
-        8 - DarkGray 
-        9 - LightBlue 
-        A - LightGreen 
-        B - LightCyan 
-        C - LightRed 
-        D - LightMagenta 
-        E - Yellow 
-        F - White 
-   
-   
----- 
-**Tags:** {{tag>ppl color @x}}