pub struct TrivialConsole { /* private fields */ }
Expand description

Implementation of the EndBASIC console with minimal functionality.

Trait Implementations§

Clears the part of the console given by how.
Gets the console’s current foreground and background colors.
Sets the console’s foreground and background colors to fg and bg. Read more
Enters the alternate console.
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.
Leaves the alternate console.
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.
Queries the size of the text console. Read more
Writes the text into the console at the position of the cursor.
Causes any buffered output to be synced. Read more
Enables or disables video syncing. Read more
Queries the size of the graphical console.
Draws the outline of a circle at _center with _radius using the current drawing color.
Draws a filled circle at _center with _radius using the current drawing color.
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.
Draws a filled rectangle from _x1y1 to _x2y2 using the current drawing color.
Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.