Crate terminal_draw

Crate terminal_draw 

Source

Re-exports§

pub use geometry::Vec2;
pub use geometry::Rect;

Modules§

geometry

Structs§

AnsiChar
Style
A style is a collection of properties that can format a string using ANSI escape codes.

Enums§

Color
A color is one specific type of ANSI escape code, and can refer to either the foreground or background color.

Functions§

clear_all
Sends an ANSI command to clear all text from the terminal and resets the cursor position and text style. Note that the writer has to be flushed after this.
clear_area
Clears a rectangular area of the terminal. Note that the writer has to be flushed after this.
draw_to
Prints a rectangle of styled Unicode characters to the given Writer. Note that the writer has to be flushed after this.
move_cursor_to
Sends an ANSI command to move the cursor to a position. Useful after calling draw() to move the terminal prompt to a desired location. Note that the writer has to be flushed after this.