Crate cod

source ·
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.
  • goto: Functions for moving the cursor around the screen.
  • [read]: Functions for reading from stdin. Must specify feature input to use.

Modules

  • Utilities for clearing the screen.
  • Utilities for setting and resetting color.
  • Utilities for moving the cursor.
  • Utilities for modifying the look of the text.

Enums

Functions

  • Draw a box using ASCII box-drawing characters.
  • Print text using ASCII box-drawing characters.
  • Draw a “texture” onto the screen.
  • Flush to stdout.
  • Draw a line onto the screen.
  • Draw an orthogonal line to the screen.
  • Draw a single character onto the screen.
  • Draw a rectangle onto the screen.
  • Draw a filled rectangle onto the screen.
  • Draw text onto the screen (non-wrapping, but respects linebreaks).
  • Draw a triangle onto the screen.