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 2017-06-11 10:59:01.