Module ImportFrom alias Expr Str Assign TupleStore NameStore NameStore NameStore NameStore NameStore NameStore NameStore NameStore NameStore NameStore NameStore NameStore NameStore NameStore NameStore NameStore Call NameLoad Num FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Return BinOpAdd BinOpAdd BinOpAdd Num BinOpMult NameLoad Num BinOpMult NameLoad Num NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return BinOpAdd Num NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad NameLoad body Expr Str Expr Call NameLoad Call NameLoad NameLoad NameLoad keyword Str decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad NameLoad body Assign NameStore Str If NameLoad body AugAssignAdd NameStore BinOpMod Str NameLoad If NameLoad body AugAssignAdd NameStore BinOpMod Str NameLoad Return NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Expr Call NameLoad Call NameLoad keyword Str decorator_list FunctionDef arguments args defaults body Return Str decorator_list FunctionDef arguments args defaults vararg kwarg body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad Expr Call NameLoad NameLoad NameLoad Expr Call NameLoad NameLoad NameLoad Expr Call NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body Return BinOpAdd BinOpAdd Call NameLoad NameLoad NameLoad NameLoad Call NameLoad decorator_list If CompareEq NameLoad Str body Expr Call NameLoad Str For NameStore Call NameLoad Num body Expr Call NameLoad Str keyword NameLoad keyword Str Expr Call NameLoad For NameStore Call NameLoad Num Num body Expr Call NameLoad Str keyword NameLoad keyword Str Expr Call NameLoad Expr Call NameLoad Expr Call NameLoad Str For NameStore Call NameLoad Num body For NameStore Call NameLoad Num body For NameStore Call NameLoad Num body Expr Call NameLoad Str keyword Call NameLoad NameLoad NameLoad NameLoad keyword Str Expr Call NameLoad Str keyword Str Expr Call NameLoad Expr Call NameLoad Expr Call NameLoad Str For NameStore Call NameLoad Num body Expr Call NameLoad Str keyword Call NameLoad NameLoad keyword Str Expr Call NameLoad Expr Call NameLoad Str keyword Call NameLoad Num Num Num keyword Str Expr Call NameLoad BinOpMult Str Num keyword Str Expr Call NameLoad Str keyword Call NameLoad Num Num Num keyword Str Expr Call NameLoad BinOpMult Str Num keyword Str Expr Call NameLoad Str keyword Call NameLoad Num Num Num keyword Str Expr Call NameLoad BinOpMult Str Num keyword Str Expr Call NameLoad Str keyword Call NameLoad Num Num Num keyword Str Expr Call NameLoad BinOpMult Str Num keyword Str Expr Call NameLoad Str keyword Call NameLoad Num Num Num keyword Str Expr Call NameLoad Str keyword Str Expr Call NameLoad Str keyword Call NameLoad Num Num Num keyword Str Expr Call NameLoad
N/A __future__ print_function N/A 
Utilities for 256 color support in terminals.

Adapted from:
http://stackoverflow.com/questions/1403353/256-color-terminal-library-for-ruby

The color palette is indexed as follows:

0-15: System colors
    0  black         8  dark gray
    1  red           9  bright red
    2  green         10 bright green
    3  yellow        11 bright yellow
    4  blue          12 bright blue
    5  magenta       13 bright magenta
    6  cyan          14 bright cyan
    7  light gray    15 white

16-231: 6x6x6 Color Cube
    All combinations of red, green, and blue from 0 to 5.

232-255: Grayscale Ramp
    24 shades of gray, not including black and white.
 N/A N/A BLACK RED GREEN YELLOW BLUE MAGENTA CYAN LIGHT_GRAY DARK_GRAY BRIGHT_RED BRIGHT_GREEN BRIGHT_YELLOW BRIGHT_BLUE BRIGHT_MAGENTA BRIGHT_CYAN WHITE N/A range 16 rgb N/A N/A red green blue N/A N/A N/A 
    Calculate the palette index of a color in the 6x6x6 color cube.

    The red, green and blue arguments may range from 0 to 5.
     N/A N/A N/A N/A 16 N/A red 36 N/A green 6 blue N/A gray N/A N/A value N/A N/A N/A 
    Calculate the palette index of a color in the grayscale ramp.

    The value argument may range from 0 to 23.
     N/A N/A 232 value N/A set_color N/A N/A fg bg N/A None None N/A N/A 
    Print escape codes to set the terminal color.

    fg and bg are indices into the color palette for the foreground and
    background colors.
     N/A N/A print N/A _set_color fg bg end N/A _set_color N/A N/A fg bg N/A None None N/A N/A result N/A fg N/A N/A result N/A [38;5;%dm fg N/A bg N/A N/A result N/A [48;5;%dm bg N/A result N/A reset_color N/A N/A N/A N/A N/A 
    Reset terminal color to default.
     N/A N/A print N/A _reset_color end N/A _reset_color N/A N/A N/A N/A N/A [0m N/A print_color N/A N/A N/A args kwargs N/A N/A 
    Print function, with extra arguments fg and bg to set colors.
     N/A fg N/A N/A kwargs pop fg None N/A bg N/A N/A kwargs pop bg None N/A N/A set_color fg bg N/A N/A print args kwargs N/A N/A reset_color N/A format_color N/A N/A string fg bg N/A None None N/A N/A N/A N/A N/A _set_color fg bg string N/A _reset_color N/A N/A N/A __name__ __main__ N/A N/A N/A print System colors: N/A c N/A range 8 N/A N/A N/A print_color bg c end N/A N/A print N/A c N/A range 8 16 N/A N/A N/A print_color bg c end N/A N/A print N/A N/A print N/A N/A print RGB color cube, 6x6x6: N/A green N/A range 6 N/A N/A red N/A range 6 N/A N/A blue N/A range 6 N/A N/A N/A print_color bg N/A rgb red green blue end N/A N/A print end N/A N/A print N/A N/A print N/A N/A print Grayscale ramp, with RGB grays: N/A value N/A range 24 N/A N/A N/A print_color bg N/A gray value end N/A N/A print N/A N/A print_color bg N/A rgb 0 0 0 end N/A N/A print N/A 7 end N/A N/A print_color bg N/A rgb 1 1 1 end N/A N/A print N/A 2 end N/A N/A print_color bg N/A rgb 2 2 2 end N/A N/A print N/A 2 end N/A N/A print_color bg N/A rgb 3 3 3 end N/A N/A print N/A 2 end N/A N/A print_color bg N/A rgb 4 4 4 end N/A N/A print end N/A N/A print_color bg N/A rgb 5 5 5 end N/A N/A print