Crate cod

Source
Expand description

A small library for command-line drawing.

Modules§

clear
Utilities for clearing the screen.
color
Utilities for setting and resetting color.
goto
Utilities for moving the cursor.
guard
Provides Reset, a simple type to make sure the terminal gets reset when your program exits.
prelude
rect
Utilities for drawing various rectangles and boxes.
style
Utilities for modifying the look of the text.
term
Utilities for handling the terminal.

Macros§

println
Prints text, moving the cursor to the start of the next line.

Structs§

NonOrthogonal
The user attempted to draw a non-orthogonal line through an orthogonal function, such as orth_line or rect::line.

Functions§

blit
Draw a “texture” onto the screen.
blit_transparent
Draw a “texture” onto the screen, skipping over spaces. Replaces all blanks with actual spaces.
flush
Flush to stdout.
line
Draw a line onto the screen.
normal
Disable all style and color attributes.
orth_line
Draw an orthogonal line to the screen.
pixel
Draw a single character onto the screen.
text
Draw text onto the screen (non-wrapping, but respects linebreaks).
triangle
Draw a triangle onto the screen.