Expand description
An “ASCII Canvas” allows us to draw lines and write text into a fixed-sized canvas and then convert that canvas into ASCII characters. ANSI styling is supported.
Modules§
- The
Style
type is a simplified view of the various attributes offered by theterm
library. These are enumerated as bits so they can be easily or’d together etc.
Structs§
- Gives a view onto an AsciiCanvas that has a fixed upper-left point. You can get one of these by calling the
shift()
method on any ASCII view. - Gives a view onto an AsciiCanvas that applies an additional style to things that are written. You can get one of these by calling the
styled()
method on any ASCII view.
Traits§
- AsciiView is a view onto an
AsciiCanvas
which potentially applies transformations along the way (e.g., shifting, adding styling information). Most of the main drawing methods forAsciiCanvas
are defined as inherent methods on anAsciiView
trait object.