API Reference
Class
TerminalSize
Reads the visible window size, rather than the scrollback buffer; safe to call every frame.
Inheritance
- Object
- TerminalSize
Methods
public static Boolean TryGet(out Int32 width, out Int32 height) #Returns:
BooleanTries to read the visible size without throwing.
Parameters
- width System.Int32
- Columns, or zero when unavailable.
- height System.Int32
- Rows, or zero when unavailable.
Returns
Whether a positive size was read.
public static Boolean TryGetWindow(out Int32 left, out Int32 top, out Int32 width, out Int32 height) #Returns:
BooleanReads the visible window's position in the screen buffer and its size. On Windows consoles the position changes when the user scrolls the window; elsewhere it is always (0, 0).
Parameters
- left System.Int32
- The window's left column in the buffer.
- top System.Int32
- The window's top row in the buffer.
- width System.Int32
- The window width in cells.
- height System.Int32
- The window height in cells.
Returns
True when the window could be read.
Inherited Methods
public virtual Boolean Equals(Object? obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object?