class documentation

class twisted.conch.ui.ansi.AnsiParser: (source)

View In Hierarchy

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 defaultFG Undocumented
Instance Variable defaultBG Undocumented
Instance Variable currentFG Undocumented
Instance Variable currentBG Undocumented
Instance Variable bold Undocumented
Instance Variable flash Undocumented
Instance Variable underline Undocumented
Instance Variable reverse 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 blink Undocumented
Method parseCursor Undocumented
Method parseErase Undocumented
Method pickColor Undocumented
Method formatText Undocumented
CURSOR_SET = (source)

Undocumented

(type: tuple[str, ...])
ERASE_SET = (source)

Undocumented

(type: tuple[str, ...])
MODE_SET = (source)

Undocumented

(type: tuple[str, ...])
ASSIGN_SET = (source)

Undocumented

(type: tuple[str, ...])
COLOR_SET = (source)

Undocumented

(type: tuple[str, ...])
SETS = (source)

Undocumented

def __init__(self, defaultFG, defaultBG): (source)

Undocumented

defaultFG = (source)

Undocumented

defaultBG = (source)

Undocumented

currentFG = (source)

Undocumented

currentBG = (source)

Undocumented

bold = (source)

Undocumented

(type: int)
flash = (source)

Undocumented

(type: int)
underline = (source)

Undocumented

(type: int)
reverse = (source)

Undocumented

(type: int)
display = (source)

Undocumented

(type: int)
prepend = (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

blink = (source)

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 20.12.1 at 2021-02-28 19:53:36.