classafTerminal::AnsiTerminal
sys::Obj afTerminal::AnsiTerminal
ANSI Terminal FWT Widget.
const AnsiPalette ansiPalette
The palette to use when printing indexed colours.
Int caretOffset()
The carets current character offset.
Point caretPos()
The terminals current caret position.
This clear()
Convenience for:
terminal.print(AnsiBuf().clearScreen.toAnsi)
Int cols()
A best guess as to the number of columns that are visible on the screen.
const RichTextStyle defStyle
Default style to use when the ANSI reset command is printed.
const RichTextStyle errStyle
Default style to use when printing errors.
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 }
Prints the given object; usually a
Str
or anAnsiBuf
.Prints the given object; usually a
Str
or anAnsiBuf
.RichText richText
The underlying RichText widget.
Int rows()
A best guess as to the number of rows that are visible on the screen.
Str text()
The terminals current text.