TerminalView class abstract

A terminal surface the app can write bytes to and receive input/resize from. Abstracted so the host wiring (WebShellHost) is testable with a fake, while the production implementation (XtermTerminalView) wraps xterm.js.

Implementers

Constructors

TerminalView()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selection String
The currently selected text (empty when there is no selection).
no setter
size → ({int cols, int rows})
Current terminal size in columns/rows.
no setter

Methods

clearSelection() → void
Clears any active selection.
dispose() → void
Disposes the terminal and detaches listeners.
focus() → void
Gives the terminal keyboard focus.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onInput(void handler(String data)) → void
Registers handler for user keystrokes (xterm delivers a decoded string).
onResize(void handler(int cols, int rows)) → void
Registers handler for terminal resize (new column/row counts).
scrollToBottom() → void
Scrolls the viewport to the bottom (the latest output / prompt).
toString() String
A string representation of this object.
inherited
write(List<int> bytes) → void
Writes raw output bytes to the terminal.
writeText(String text) → void
Writes a UTF-8 text line (used for local status notices).

Operators

operator ==(Object other) bool
The equality operator.
inherited