Functions | |
def | canDisplayColor (stream) |
Return True if the stream can display colored text, False otherwise. More... | |
def | getControlSequence (color) |
Return the control sequence for the color in parameter, i.e. More... | |
def | makeColoredMessage (message, color) |
Return a string that can be used to display the message in parameter with the given color. More... | |
def | TEST_termcolor () |
Test function for termcolor module. More... | |
Variables | |
list | DEFAULT = ['00'] |
Default color for the terminal. More... | |
list | BOLD = ['01'] |
Bold text and brighter colors. More... | |
list | UNDERLINED = ['04'] |
Underlined text. More... | |
list | BLACK_FG = ['30'] |
Black foreground. More... | |
list | RED_FG = ['31'] |
Red foreground. More... | |
list | GREEN_FG = ['32'] |
Green foreground. More... | |
list | YELLOW_FG = ['33'] |
Yellow foreground. More... | |
list | BLUE_FG = ['34'] |
Blue foreground. More... | |
list | PURPLE_FG = ['35'] |
Purple foreground. More... | |
list | CYAN_FG = ['36'] |
Cyan foreground. More... | |
list | WHITE_FG = ['37'] |
White foreground. More... | |
list | BLACK_BG = ['40'] |
Black background. More... | |
list | RED_BG = ['41'] |
Red background. More... | |
list | GREEN_BG = ['42'] |
Green background. More... | |
list | YELLOW_BG = ['43'] |
Yellow background. More... | |
list | BLUE_BG = ['44'] |
Blue background. More... | |
list | PURPLE_BG = ['45'] |
Purple background. More... | |
list | CYAN_BG = ['46'] |
Cyan background. More... | |
list | WHITE_BG = ['47'] |
White background. More... | |
list | BLACK = BLACK_FG |
Black text (equivalent to BLACK_FG) More... | |
list | RED = BOLD + RED_FG |
Red text (equivalent to BOLD + RED_FG) More... | |
list | GREEN = BOLD + GREEN_FG |
Green text (equivalent to BOLD + GREEN_FG) More... | |
list | YELLOW = BOLD + YELLOW_FG |
Yellow text (equivalent to BOLD + YELLOW_FG) More... | |
list | BLUE = BOLD + BLUE_FG |
Blue text (equivalent to BOLD + BLUE_FG) More... | |
list | PURPLE = BOLD + PURPLE_FG |
Purple text (equivalent to BOLD + PURPLE_FG) More... | |
list | CYAN = BOLD + CYAN_FG |
Cyan text (equivalent to BOLD + CYAN_FG) More... | |
list | WHITE = WHITE_FG |
White text (equivalent to WHITE_FG) More... | |