TerminalController class

Imperative controls for a mounted Terminal.

Constructors

TerminalController()

Properties

connectionState → TerminalConnectionState
The last connection state reported by the terminal.
no setter
hashCode → int
The hash code for this object.
no setterinherited
isAttached → bool
Whether this controller is currently attached to a browser terminal.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

attach({required Object owner, required void connect(), required void reconnect(), required void disconnect(), required void clear(), required void focus(), required void write(String data), required bool send(String data), required Future<bool> copySelection()}) → void
Binds browser behavior to this controller.
clear() → void
Clears the visible terminal buffer.
connect() → void
Connects the terminal WebSocket.
copySelection() → Future<bool>
Copies the current terminal selection to the system clipboard.
detach(Object owner) → void
Removes browser behavior when the owning terminal unmounts.
disconnect() → void
Closes the current terminal WebSocket.
focus() → void
Moves keyboard focus to the terminal.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
reconnect() → void
Closes the current socket and establishes a fresh connection.
send(String data) → bool
Sends input to the connected terminal server.
toString() → String
A string representation of this object.
inherited
updateConnectionState(Object owner, TerminalConnectionState state) → void
Mirrors the state of the attached terminal.
write(String data) → void
Writes local text to the terminal without sending it to the server.

Operators

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