t.c.u.a.AnsiParser : class documentation

Part of twisted.conch.ui.ansi View Source View In Hierarchy

Parser class for ANSI codes.
Method __init__ Undocumented
Method stripEscapes Remove all ANSI color escapes from the given string.
Method writeString Undocumented
Method parseString Turn a string input into a list of ColorText elements.
Method parseColor Handle a single ANSI color sequence
Method parseCursor Undocumented
Method parseErase Undocumented
Method pickColor Undocumented
Method formatText Undocumented
def __init__(self, defaultFG, defaultBG): (source)
Undocumented
def stripEscapes(self, string): (source)
Remove all ANSI color escapes from the given string.
def writeString(self, colorstr): (source)
Undocumented
def parseString(self, str): (source)
Turn a string input into a list of ColorText elements.
def parseColor(self, str): (source)
Handle a single ANSI color sequence
def parseCursor(self, cursor): (source)
Undocumented
def parseErase(self, erase): (source)
Undocumented
def pickColor(self, value, mode, BOLD=ColorText.BOLD_COLORS): (source)
Undocumented
def formatText(self, text): (source)
Undocumented
API Documentation for Twisted, generated by pydoctor at 2012-09-01 11:44:56.