class _AnsiColorizer: (source)
A colorizer is an object that loosely wraps around a stream, allowing callers to write text to the stream in a particular color.
Colorizer classes must implement supported()
and write(text, color)
.
Method | __init__ |
Undocumented |
Instance Variable | stream |
Undocumented |
Class Method | supported |
A class method that returns True if the current platform supports coloring terminal output using this method. Returns False otherwise. |
Method | write |
Write the given text to the stream in the given color. |
Class Variable | _colors |
Undocumented |
A class method that returns True if the current platform supports coloring terminal output using this method. Returns False otherwise.