classafTerminal::AnsiTerminal
sys::Obj afTerminal::AnsiTerminal
ANSI Terminal FWT Widget.
- ansiPalette
const AnsiPalette ansiPaletteThe palette to use when printing indexed colours.
- caretOffset
Int caretOffset()The carets current character offset.
- caretPos
Point caretPos()The terminals current caret position.
- clear
This clear()Convenience for:
terminal.print(AnsiBuf().clearScreen.toAnsi)
- cols
Int cols()A best guess as to the number of columns that are visible on the screen.
- defStyle
const RichTextStyle defStyleDefault style to use when the ANSI reset command is printed.
- errStyle
const RichTextStyle errStyleDefault style to use when printing errors.
- make
new make(|This? f := null)Standard it-block ctor. Use to set the styles and palette:
terminal := AnsiTerminal { defStyle = RichTextStyle { ... } errStyle = RichTextStyle { ... } palette = AnsiPalette.putty }- print
Prints the given object; usually a
Stror anAnsiBuf.- printErr
Prints the given object; usually a
Stror anAnsiBuf.- richText
RichText richTextThe underlying RichText widget.
- rows
Int rows()A best guess as to the number of rows that are visible on the screen.
- text
Str text()The terminals current text.