TestTerminal class
- Implemented types
Constructors
- TestTerminal({Size? initialSize})
Properties
- altScreen → bool
-
no setter
- cursorHidden → bool
-
no setter
-
events
→ Stream<
Event> -
no setteroverride
- hashCode → int
-
The hash code for this object.
no setterinherited
- mouseEnabled → bool
-
no setter
- output → String
-
no setter
- rawMode → bool
-
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- size → Size
-
no setteroverride
Methods
-
clearOutput(
) → void -
disableMouse(
) → void -
override
-
enableMouse(
) → void -
override
-
enterAlternateScreen(
) → void -
override
-
enterRawMode(
) → void -
override
-
flush(
) → Future< void> -
override
-
hideCursor(
) → void -
override
-
inject(
Event event) → void -
leaveAlternateScreen(
) → void -
override
-
leaveRawMode(
) → void -
override
-
moveTo(
int x, int y) → void -
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
queryCursorPosition(
{Duration timeout = const Duration(milliseconds: 500)}) → Future< (int, int)> -
override
-
resize(
Size newSize) → void -
restore(
) → Future< void> -
Lightweight cleanup: restore terminal modes (raw off, cursor on,
mouse off, alternate screen off) without tearing down stdin
subscriptions or event streams. Safe to call between successive
runTerminalinvocations that share this terminal.override -
setTitle(
String title) → void -
override
-
showCursor(
) → void -
override
-
shutdown(
) → Future< void> -
Full teardown: releases stdin subscriptions, closes event streams,
frees native resources. After this, the terminal is unusable —
process exit will collect anything left behind.
override
-
toString(
) → String -
A string representation of this object.
inherited
-
write(
String data) → void -
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited