Available on crate feature
shell only.Expand description
Low-level platform-specific tools to control the OS console/terminal.
Structs§
- Terminal
Unix - Represents an interactive terminal.
Functions§
- clear_
remaining - Clear the rest of the current line starting at the current cursor position.
- get_
window_ height_ amortized Unix - Returns the maximum number of rows available in the terminal.
- get_
window_ size Unix - Returns a tuple with respectively the maximum number of columns and rows available in the terminal.
- move_
cursor - Move the terminal cursor to the given x, y position in columns and rows respectively.
- write
Unix - Writes the given string immediately (unbuffered).