Home | Trees | Index | Help |
---|
Package twisted :: Package conch :: Package ui :: Module ansi :: Class AnsiParser |
|
Method Summary | |
---|---|
__init__(self,
defaultFG,
defaultBG)
| |
formatText(self,
text)
| |
Handle a single ANSI color sequence | |
parseCursor(self,
cursor)
| |
parseErase(self,
erase)
| |
Turn a string input into a list of ColorText elements. | |
pickColor(self,
value,
mode,
BOLD)
| |
Remove all ANSI color escapes from the given string. | |
writeString(self,
colorstr)
|
Class Variable Summary | |
---|---|
tuple |
ASSIGN_SET
|
tuple |
COLOR_SET
|
tuple |
CURSOR_SET
|
tuple |
ERASE_SET
|
tuple |
MODE_SET
|
tuple |
SETS
|
Method Details |
---|
parseColor(self, str)Handle a single ANSI color sequence |
parseString(self, str)Turn a string input into a list of ColorText elements. |
stripEscapes(self, string)Remove all ANSI color escapes from the given string. |
Class Variable Details |
---|
ASSIGN_SET
|
COLOR_SET
|
CURSOR_SET
|
ERASE_SET
|
MODE_SET
|
SETS
|
Home | Trees | Index | Help |
---|
Generated by Epydoc 1.1 on Fri Jun 27 03:45:26 2003 | http://epydoc.sf.net |