Expand description
A utility for command-line drawing.
Many utilities are at the top-level; however, there are a couple of modules:
clear
: Functions for clearing the screen or sections thereof.color
: Functions for setting the foreground/background color.style
: Functions for styling text, i.e. bold, italic, underline.goto
: Functions for moving the cursor around the screen.- [
read
]: Functions for reading from stdin. Must specify featureinput
to use.
Both the color
and style
modules have three parts:
- The root, containing base functions
- A
de
module, containing functions to reset the attributes - A
with
module, containing functions to run code with certain attributes
Modules
- Utilities for clearing the screen.
- Utilities for setting and resetting color.
- Utilities for moving the cursor.
- Provides
Reset
, a simple type to make sure the terminal gets reset when your program exits. - Imports everything you need in an ergonomic fashion.
- Utilities for drawing various rectangles and boxes.
- Utilities for modifying the look of the text.
Structs
- The user attempted to draw a non-orthogonal line through an orthogonal function, such as
orth_line
orrect::line
.
Functions
- Draw a “texture” onto the screen.
- Draw a “texture” onto the screen, skipping over spaces. Replaces all
blank
s with actual spaces. - Flush to stdout.
- Draw a line onto the screen.
- Disable all style and color attributes.
- Draw an orthogonal line to the screen.
- Draw a single character onto the screen.
- Draw text onto the screen (non-wrapping, but respects linebreaks).
- Draw a triangle onto the screen.