class documentation

class TerminalTrueColorFormatter(Terminal256Formatter):

View In Hierarchy

Format tokens with ANSI color sequences, for output in a true-color terminal or console. Like in TerminalFormatter color sequences are terminated at newlines, so that paging the output works correctly.

New in version 2.1.

Options accepted:

style
The style to use, can be a string or a Style subclass (default: 'default').
Method ​_build​_color​_table Undocumented
Method ​_color​_tuple Undocumented
Method ​_setup​_styles Undocumented
Class Variable aliases Undocumented
Class Variable filenames Undocumented
Class Variable name Undocumented

Inherited from Terminal256Formatter:

Method __init__ Undocumented
Method ​_closest​_color Undocumented
Method ​_color​_index Undocumented
Method ​_write​_lineno Undocumented
Method format Format tokensource, an iterable of (tokentype, tokenstring) tuples and write it into outfile.
Method format​_unencoded Undocumented
Instance Variable ​_lineno Undocumented
Instance Variable best​_match Undocumented
Instance Variable linenos Undocumented
Instance Variable style​_string Undocumented
Instance Variable usebold Undocumented
Instance Variable useitalic Undocumented
Instance Variable useunderline Undocumented
Instance Variable xterm​_colors Undocumented

Inherited from Formatter (via Terminal256Formatter):

Method get​_style​_defs Return the style definitions for the current style as a string.
Class Variable unicodeoutput Undocumented
Instance Variable encoding Undocumented
Instance Variable full Undocumented
Instance Variable options Undocumented
Instance Variable style Undocumented
Instance Variable title Undocumented
def _build_color_table(self):
def _color_tuple(self, color):

Undocumented

def _setup_styles(self):
aliases: list[str] =