ANSI

Keywords: ANSI, COLOR, COLORS, COLOURS

Category: Basics

=== USER MANUAL === Usage: color color on | off color auto | 16 | 256 Description: Control color output. With no argument, color is toggled on or off. Color Modes: color auto ..... Detect mode from your terminal type (default). color 16 ....... Force standard 16-color ANSI mode. color 256 ...... Force xterm-256 color mode. Setting a mode also enables color if it was off. Standard Color Codes (16-color): Foreground: ` = black ` = blue ` = green ` = cyan ` = red ` = magenta ` = yellow ` = white/gray ` = dark gray ` = light blue ` = light green ` = light cyan ` = light red ` = hot pink ` = yellow ` = white Background: ``^k = `^kblack ``^b = `^bblue ``^g = `^ggreen ``^c = `^ccyan ``^r = `^rred ``^m = `^mmagenta ``^y = `^yyellow ``^w = `^wgray Special: ` = normalize ``f = `fflash ```` = literal backtick Xterm-256 Color Codes: `` `{N} Set foreground to xterm color N (0-255). `` `^{N} Set background to xterm color N (0-255). Palette: 0-7 ........ Standard colors (same as ` through `). 8-15 ....... Bright colors (same as ` through `). 16-231 ..... 6x6x6 color cube for a wide range of hues. 232-255 .... 24-step grayscale ramp from dark to light. Example: ` = bright red, ` = blue, ` = yellow bg In 16-color mode, xterm-256 codes automatically fall back to the nearest matching ANSI color. Notes: - Can be used from any position, even while dead. - Your color setting is saved across sessions. - See help color256 for a full visual palette chart. Related Helpfiles: COLOR256, TOGGLE === END MANUAL ===