| Trees | Indices | Help |
|
|---|
|
|
Base class for terminal colorization.
Use getDefault for get default terminal colorization class for you OS.
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
Inherited from |
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
_stream stream for out colors. |
|||
|
_color_table Color table. |
|||
|
_isbg If true then now set bg colors. |
|||
|
_txtbright Use text bright. |
|||
|
_bgbright Use text bright. |
|||
|
_ctxt Text color. |
|||
|
_cbg Background color. |
|||
|
_last_ctxt Previous text color. |
|||
|
_last_cbg Previous bg color. |
|||
|
_last_bgbright Previous bg brightness. |
|||
|
_last_txtbright Previous text brightness. |
|||
|
_reset_value Color color value or None for use default. |
|||
|
_recomp Compiled pattern for RE. |
|||
|
_tag_table Table for match colr strings to color index. |
|||
|
|||
|
Inherited from |
|||
|
|||
stream - Stream for out colors. In windows not used. Default is None = use sys.stdout.
|
Calculate color value.
Return value for set color. Returned value must be right for use without check. |
Set specified color from value. Value must be right. (Not check more). |
|
|
|
|
|
|
|
|
|
|
|
|
Clear specified colors to None and save to last (if not None). save_last - if true? then save to last value. |
Colorized ouput string to stream. If stream None then use initialized self._stream, otherwise use sys.stdout. skip - If True then remove color tags from string and out it without colorization. Sintax is next (html-like): <CC>some text</CC>, where first C is a text color, second C is a background color. color is next code: r - red, g - green, b - blue, k - black, c - cyan, m - magenta, y - yellow, w - white, _ - not use (use previous or default). Lowcase letter mean dark color, Uppercase mean bright color. For example:
|
|
|||
_color_tableColor table. Index is a color constants from class, C_xxxx. |
_txtbrightUse text bright. If None - use last or default. |
_bgbrightUse text bright. If None - use last or default. |
_ctxtText color. If None - use last or default. |
_cbgBackground color. If None - use last or default. |
_tag_tableTable for match colr strings to color index. Store 2tuple: (color,bright). |
| Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Fri Sep 13 23:40:47 2019 | http://epydoc.sourceforge.net |