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] – external edit 127.0.0.1ppl:color-codes [2019/04/16 14:45] (current) stimpy
Line 1: Line 1:
-====== Color Codes ======+====== @Xnn 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'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.  +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.  +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: =====
-        0 - Black + 
-        1 - Blue +<code> 
-        2 - Green +      0 - Black 
-        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 
 +</code>
  
 ===== Foreground codes: ===== ===== Foreground codes: =====
-        0 - Black + 
-        1 - Blue +<code> 
-        2 - Green +      0 - Black 
-        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 
----- +</code> 
-**Tags:** {{tag>ppl color @x}}+ 
 +- **Tags:** 
 + 
 + {{tag>ppl color @x}} 
 +