DartTerminal class

Default Terminal implementation using dart:io stdin/stdout.

This is the standard implementation used when running in a real terminal. It delegates directly to dart:io's stdin and stdout objects.

Usage:

// This is the default - you typically don't need to create it manually
final terminal = DartTerminal();

// Access input/output
terminal.output.writeln('Hello');
final byte = terminal.input.readByteSync();
Implemented types

Constructors

DartTerminal()
Creates a new DartTerminal using dart:io stdin/stdout.

Properties

hashCode int
The hash code for this object.
no setterinherited
input TerminalInput
The input stream for reading key events and managing terminal modes.
no setteroverride
output TerminalOutput
The output stream for writing content and querying terminal dimensions.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
terminalType String?
The terminal type, conventionally sourced from the TERM environment variable, or null when it is unknown.
no setteroverride

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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