Struct endbasic_terminal::TerminalConsole [−][src]
pub struct TerminalConsole { /* fields omitted */ }Expand description
Implementation of the EndBASIC console to interact with stdin and stdout.
Implementations
Creates a new console based on the properties of stdin/stdout.
Trait Implementations
Sets the console’s foreground and background colors to fg and bg. Read more
Hides the cursor.
Returns true if the console is attached to an interactive terminal. This controls whether reading a line echoes back user input, for example. Read more
Moves the cursor to the given position, which must be within the screen.
Moves the cursor within the line. Positive values move right, negative values move left.
Writes text to the console, followed by a newline or CRLF pair depending on the needs of
the console to advance a line. Read more
Returns the next key press if any is available.
Waits for and returns the next key press.
Shows the cursor.
Writes the raw bytes into the console. Read more
Enables or disables video syncing. Read more
Draws a line from _x1y1 to _x2y2 using the current drawing color.
Draws a single pixel at _xy using the current drawing color.
Draws the outline of a rectangle from _x1y1 to _x2y2 using the current drawing color.
Auto Trait Implementations
impl RefUnwindSafe for TerminalConsole
impl Send for TerminalConsole
impl Sync for TerminalConsole
impl Unpin for TerminalConsole
impl UnwindSafe for TerminalConsole
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more