Utilities for processing ANSI escape codes and special ASCII characters.
Bases: object
Translates special ASCII characters and ANSI escape codes into readable attributes. It also supports a few non-standard, xterm-specific codes.
Reset graphics attributs to their default values.
Set attributes based on CSI (Control Sequence Introducer) code.
Parameters: | command : str
params : sequence of integers, optional
|
---|
Set attributes based on OSC (Operating System Command) parameters.
Parameters: | params : sequence of str
|
---|
Set attributes based on SGR (Select Graphic Rendition) codes.
Parameters: | params : sequence of ints
|
---|
Yields substrings for which the same escape code applies.
Bases: IPython.qt.console.ansi_code_processor.AnsiCodeProcessor
Translates ANSI escape codes into QTextCharFormats.
Returns a QColor for a given color code, or None if one cannot be constructed.
Returns a QTextCharFormat that encodes the current style attributes.
Given a background color (a QColor), attempt to set a color map that will be aesthetically pleasing.