CatapultServer
v0.5.0.1 (Elephant)
|
Public Member Functions | |
def | __init__ (self, wrapped, convert=None, strip=None, autoreset=False) |
def | should_wrap (self) |
def | get_win32_calls (self) |
def | write (self, text) |
def | reset_all (self) |
def | write_and_convert (self, text) |
def | write_plain_text (self, text, start, end) |
def | convert_ansi (self, paramstring, command) |
def | extract_params (self, command, paramstring) |
def | call_win32 (self, command, params) |
def | convert_osc (self, text) |
Public Attributes | |
wrapped | |
autoreset | |
stream | |
strip | |
convert | |
win32_calls | |
on_stderr | |
Static Public Attributes | |
ANSI_CSI_RE = re.compile('\001?\033\[((?:\d|;)*)([a-zA-Z])\002?') | |
ANSI_OSC_RE = re.compile('\001?\033\]((?:.|;)*?)(\x07)\002?') | |
Implements a 'write()' method which, on Windows, will strip ANSI character sequences from the text, and if outputting to a tty, will convert them into win32 function calls.
def colorama.ansitowin32.AnsiToWin32.__init__ | ( | self, | |
wrapped, | |||
convert = None , |
|||
strip = None , |
|||
autoreset = False |
|||
) |
def colorama.ansitowin32.AnsiToWin32.call_win32 | ( | self, | |
command, | |||
params | |||
) |
def colorama.ansitowin32.AnsiToWin32.convert_ansi | ( | self, | |
paramstring, | |||
command | |||
) |
def colorama.ansitowin32.AnsiToWin32.convert_osc | ( | self, | |
text | |||
) |
def colorama.ansitowin32.AnsiToWin32.extract_params | ( | self, | |
command, | |||
paramstring | |||
) |
def colorama.ansitowin32.AnsiToWin32.get_win32_calls | ( | self | ) |
def colorama.ansitowin32.AnsiToWin32.reset_all | ( | self | ) |
def colorama.ansitowin32.AnsiToWin32.should_wrap | ( | self | ) |
True if this class is actually needed. If false, then the output stream will not be affected, nor will win32 calls be issued, so wrapping stdout is not actually required. This will generally be False on non-Windows platforms, unless optional functionality like autoreset has been requested using kwargs to init()
def colorama.ansitowin32.AnsiToWin32.write | ( | self, | |
text | |||
) |
def colorama.ansitowin32.AnsiToWin32.write_and_convert | ( | self, | |
text | |||
) |
Write the given text to our wrapped stream, stripping any ANSI sequences from the text, and optionally converting them into win32 calls.
def colorama.ansitowin32.AnsiToWin32.write_plain_text | ( | self, | |
text, | |||
start, | |||
end | |||
) |
|
static |
|
static |
colorama.ansitowin32.AnsiToWin32.autoreset |
colorama.ansitowin32.AnsiToWin32.convert |
colorama.ansitowin32.AnsiToWin32.on_stderr |
colorama.ansitowin32.AnsiToWin32.stream |
colorama.ansitowin32.AnsiToWin32.strip |
colorama.ansitowin32.AnsiToWin32.win32_calls |
colorama.ansitowin32.AnsiToWin32.wrapped |