SneathConsoleDimensionsCachedImpl class

A SneathConsoleDimensions that caches the dimensions the first time that they are retrieved.

This command attempts to use the ioctl() system call to retrieve the window height, and if that fails uses ANSI escape codes to identify its location by walking off the edge of the screen and seeing what the terminal clipped the cursor to.

Implemented types

Properties

cursorPosition SneathCursorPositionDelegate
final
hashCode int
The hash code for this object.
no setterinherited
height int
Returns the height of the current console window in characters.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
width int
Returns the width of the current console window in characters.
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