This documentation is for a development version of IPython. There may be significant differences from the latest stable release (1.2.1).
Utilities for processing ANSI escape codes and special ASCII characters.
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.
command : str
params : sequence of integers, optional
Set attributes based on OSC (Operating System Command) parameters.
params : sequence of str
Set attributes based on SGR (Select Graphic Rendition) codes.
params : sequence of ints
Yields substrings for which the same escape code applies.
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.