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):
Undocumented
def stripEscapes(self, string):

Remove all ANSI color escapes from the given string.

def writeString(self, colorstr):
Undocumented
def parseString(self, str):

Turn a string input into a list of ColorText elements.

def parseColor(self, str):

Handle a single ANSI color sequence

def parseCursor(self, cursor):
Undocumented
def parseErase(self, erase):
Undocumented
def pickColor(self, value, mode, BOLD=ColorText.BOLD_COLORS):
Undocumented
def formatText(self, text):
Undocumented
API Documentation for twisted, generated by pydoctor at 2020-03-25 17:34:30.