help color[_][□][×]

← command reference · Commands

color

Also: ansi colour

Syntax: color

The COLOR command toggles the use of color, ANSI and COLOUR are aliases
for this command.

Color codes consist of a '@' followed by a number, or letter. 
Valid codes are:

   @0 for black                @B for turn bold on
   @1 for blue                 @b for turn bold off
   @2 for green                @F for turn blink on
   @3 for red                  @f for turn blink off
   @4 for cyan                 @n for select normal color (light grey)
   @5 for magenta/purple               turns bold and blink off 
   @6 for brown/dark yellow    @< for selects previous selected color
   @7 for light grey/white     @- for inserts a `@' (a tilde)

  @x inserts @, thus @x2 inserts @2 without expanding it to a color.
  Any other @ sequence leaves the sequence alone, no convertion is done.

Some examples:

  "@B@1This is bold blue.@n And back to normal."
  -> "@@This is bold blue.@ And back to normal."
  "@2Green, @B@6yellow, @B@3red, @<yellow, @<and green again.@<"
  -> "@Green, @@yellow, @@red, @yellow, @and green again.@"

People who abuse this feature in any way will be flagged no_color.  This
means that they won't see colors and won't be able to write colors anymore.