|
|
|
reinit(self,
term_stream=None,
color=' auto ' ) |
source code
|
|
|
__init__(self,
term_stream=None,
color=' auto ' ) |
source code
|
|
|
|
|
sub(self,
haystack,
beg,
end,
needles,
escape=None,
ignore_case=False) |
source code
|
|
|
sub_norm(self,
haystack,
beg,
needles,
**kwds) |
source code
|
|
|
sub_mode(self,
haystack,
mode,
needles,
**kwds) |
source code
|
|
|
|
|
sub_fg(self,
haystack,
color,
needles,
**kwds) |
source code
|
|
|
sub_bg(self,
haystack,
color,
needles,
**kwds) |
source code
|
|
|
__enabled = True
|
|
__cap_names = { ' normal ' : ' sgr0 ' , ' reverse ' : ' rev ' , ' underline ' ...
|
|
__colors = { ' black ' : 0, ' blue ' : 1, ' cyan ' : 3, ' green ' : 2, ' mag ...
|
|
__ansi_colors = { ' black ' : 0, ' blue ' : 4, ' cyan ' : 6, ' green ' : 2, ...
|
|
__ansi_forced_MODE = { ' blink ' : ' \x1b[5m ' , ' bold ' : ' \x1b[1m ' , ' ...
|
|
__ansi_forced_FG_COLOR = { ' black ' : ' \x1b[30m ' , ' blue ' : ' \x1b[3 ...
|
|
__ansi_forced_BG_COLOR = { ' black ' : ' \x1b[40m ' , ' blue ' : ' \x1b[4 ...
|