Parser class for ANSI codes.

Class Variable CURSOR_SET Undocumented
Class Variable ERASE_SET Undocumented
Class Variable MODE_SET Undocumented
Class Variable ASSIGN_SET Undocumented
Class Variable COLOR_SET Undocumented
Class Variable SETS Undocumented
Method __init__ Undocumented
Instance Variable display Undocumented
Instance Variable prepend 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
Instance Variable bold Undocumented
Instance Variable currentFG Undocumented
Instance Variable currentBG Undocumented
Instance Variable underline Undocumented
Instance Variable flash Undocumented
Instance Variable reverse Undocumented
Instance Variable blink Undocumented
Method parseCursor Undocumented
Method parseErase Undocumented
Method pickColor Undocumented
Method formatText Undocumented
CURSOR_SET =
Undocumented
(type: Tuple[str, ...])
ERASE_SET =
Undocumented
(type: Tuple[str, ...])
MODE_SET =
Undocumented
(type: Tuple[str, ...])
ASSIGN_SET =
Undocumented
(type: Tuple[str, ...])
COLOR_SET =
Undocumented
(type: Tuple[str, ...])
SETS =
Undocumented
def __init__(self, defaultFG, defaultBG): (source)
Undocumented
display =
Undocumented
(type: int)
prepend =
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

bold =
Undocumented
(type: int)
currentFG =
Undocumented
currentBG =
Undocumented
underline =
Undocumented
(type: int)
flash =
Undocumented
(type: int)
reverse =
Undocumented
(type: int)
blink =
Undocumented
(type: int)
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 2020-03-20 23:54:06.