TerminalCapabilities class
Terminal feature capabilities detected at runtime.
Constructors
- TerminalCapabilities({required ColorSupport colorSupport, required bool supportsUnicode, required bool supportsMouse, required bool supportsKittyKeyboard, required bool supportsAlternateScreen, required bool supportsCursor, required bool supportsSixel, required bool supportsImages, required int width, required int height})
-
Creates a TerminalCapabilities.
const
Properties
- colorSupport → ColorSupport
-
Level of color rendering supported by the terminal.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- height → int
-
Terminal height in rows at the time of detection.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- supportsAlternateScreen → bool
-
Whether the terminal supports the alternate screen buffer.
final
- supportsCursor → bool
-
Whether the terminal supports cursor positioning and style escapes.
final
- supportsImages → bool
-
Whether the terminal supports inline image protocols (e.g., iTerm2, Kitty).
final
- supportsKittyKeyboard → bool
-
Whether the terminal likely supports the Kitty keyboard protocol.
final
- supportsMouse → bool
-
Whether the terminal likely supports mouse reporting.
final
- supportsSixel → bool
-
Whether the terminal supports Sixel graphics.
final
- supportsUnicode → bool
-
Whether the terminal environment reports UTF-8 locale support.
final
- width → int
-
Terminal width in columns at the time of detection.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited