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§
- style
- The
Styletype is a simplified view of the various attributes offered by thetermlibrary. These are enumerated as bits so they can be easily or’d together etc.
Structs§
- Ascii
Canvas - Row
- Shifted
View - 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. - Style
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§
- Ascii
View - AsciiView is a view onto an
AsciiCanvaswhich potentially applies transformations along the way (e.g., shifting, adding styling information). Most of the main drawing methods forAsciiCanvasare defined as inherent methods on anAsciiViewtrait object.