You are here: start » ppl » color-codes

@Xnn Color Codes

**This is an old revision of the document!**

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: ppl color @x

ppl/color-codes.1555072202.txt.gz · Last modified: 2019/04/12 14:30
CC Attribution 4.0 International Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution 4.0 International