libcopp
2.2.0
|
Public Member Functions | |
def | get_cmd_color (self, handle=std_out_handle) |
def | set_cmd_color (self, color, handle=std_out_handle) |
def | stdout_with_color (self, options, text) |
def | stderr_with_color (self, options, text) |
Static Public Attributes | |
string | name = "windows console" |
int | STD_INPUT_HANDLE = -10 |
int | STD_OUTPUT_HANDLE = -11 |
int | STD_ERROR_HANDLE = -12 |
int | FOREGROUND_BLACK = 0x0 |
int | FOREGROUND_BLUE = 0x01 |
int | FOREGROUND_GREEN = 0x02 |
int | FOREGROUND_RED = 0x04 |
int | FOREGROUND_INTENSITY = 0x08 |
int | BACKGROUND_BLUE = 0x10 |
int | BACKGROUND_GREEN = 0x20 |
int | BACKGROUND_RED = 0x40 |
int | BACKGROUND_INTENSITY = 0x80 |
dictionary | COLOR_MAP |
std_out_handle = None | |
std_err_handle = None | |
Definition at line 48 of file print_color.py.
def print_color.Win32ConsoleColor.get_cmd_color | ( | self, | |
handle = std_out_handle |
|||
) |
Definition at line 93 of file print_color.py.
Referenced by print_color.Win32ConsoleColor.stderr_with_color(), and print_color.Win32ConsoleColor.stdout_with_color().
def print_color.Win32ConsoleColor.set_cmd_color | ( | self, | |
color, | |||
handle = std_out_handle |
|||
) |
(color) -> bit Example: set_cmd_color(FOREGROUND_RED | FOREGROUND_GREEN | FOREGROUND_BLUE | FOREGROUND_INTENSITY)
Definition at line 98 of file print_color.py.
Referenced by print_color.Win32ConsoleColor.stderr_with_color(), and print_color.Win32ConsoleColor.stdout_with_color().
def print_color.Win32ConsoleColor.stderr_with_color | ( | self, | |
options, | |||
text | |||
) |
Definition at line 117 of file print_color.py.
References print_color.Win32ConsoleColor.get_cmd_color(), print_color.Win32ConsoleColor.set_cmd_color(), and print_color.Win32ConsoleColor.std_err_handle.
def print_color.Win32ConsoleColor.stdout_with_color | ( | self, | |
options, | |||
text | |||
) |
Definition at line 105 of file print_color.py.
References print_color.Win32ConsoleColor.get_cmd_color(), print_color.Win32ConsoleColor.set_cmd_color(), and print_color.Win32ConsoleColor.std_out_handle.
|
static |
Definition at line 60 of file print_color.py.
|
static |
Definition at line 61 of file print_color.py.
|
static |
Definition at line 63 of file print_color.py.
|
static |
Definition at line 62 of file print_color.py.
|
static |
Definition at line 65 of file print_color.py.
|
static |
Definition at line 54 of file print_color.py.
|
static |
Definition at line 55 of file print_color.py.
|
static |
Definition at line 56 of file print_color.py.
|
static |
Definition at line 58 of file print_color.py.
|
static |
Definition at line 57 of file print_color.py.
|
static |
Definition at line 49 of file print_color.py.
|
static |
Definition at line 91 of file print_color.py.
Referenced by print_color.Win32ConsoleColor.stderr_with_color().
|
static |
Definition at line 52 of file print_color.py.
|
static |
Definition at line 50 of file print_color.py.
|
static |
Definition at line 90 of file print_color.py.
Referenced by print_color.Win32ConsoleColor.stdout_with_color().
|
static |
Definition at line 51 of file print_color.py.