ANSI Escape Codes

Colors:

  • 0 For normal display
  • 1 For bold on
  • 4 underline (mono only)
  • 5 blink On
  • 7 reverse video On
  • 8 nondisplayed (invisible)
  • 30 black foreground
  • 31 red foreground
  • 32 green foreground
  • 33 yellow foreground
  • 34 blue foreground
  • 35 magenta foreground
  • 36 cyan foreground
  • 37 white foreground
  • 40 black background
  • 41 red background
  • 42 green background
  • 43 yellow background
  • 44 blue background
  • 45 magenta background
  • 46 cyan background
  • 47 white background

This page is referenced in: