Module os

Module os 

Source
Available on crate feature shell only.
Expand description

Low-level platform-specific tools to control the OS console/terminal.

Structs§

TerminalUnix
Represents an interactive terminal.

Functions§

clear_remaining
Clear the rest of the current line starting at the current cursor position.
get_window_height_amortizedUnix
Returns the maximum number of rows available in the terminal.
get_window_sizeUnix
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.
writeUnix
Writes the given string immediately (unbuffered).