Constant | DARK_PALETTE |
Undocumented |
Constant | LIGHT_PALETTE |
Undocumented |
Constant | NOCOLOR_PALETTE |
Undocumented |
Constant | PALETTES |
Undocumented |
Constant | RESET |
Undocumented |
Variable | background |
Undocumented |
Variable | color_names |
Undocumented |
Variable | foreground |
Undocumented |
Variable | opt_dict |
Undocumented |
Function | colorize |
Return your text, enclosed in ANSI graphics codes. |
Function | make_style |
Return a function with default parameters for colorize() |
Function | parse_color_setting |
Parse a DJANGO_COLORS environment variable to produce the system palette |
Undocumented
Value |
|
Return your text, enclosed in ANSI graphics codes.
Depends on the keyword arguments 'fg' and 'bg', and the contents of the opts tuple/list.
Return the RESET code if no parameters are given.
Return a function with default parameters for colorize()
Parse a DJANGO_COLORS environment variable to produce the system palette
The general form of a palette definition is:
"palette;role=fg;role=fg/bg;role=fg,option,option;role=fg/bg,option,option"
Specifying a named palette is the same as manually specifying the individual definitions for each role. Any individual definitions following the palette definition will augment the base palette definition.