#text #canvas #ansi #line #parser-generator #ascii #terminal-text

build ascii-canvas

simple canvas for drawing lines and styled text and emitting to the terminal

5 releases (stable)

4.0.0 Sep 30, 2024
3.0.0 May 13, 2021
2.0.0 Apr 30, 2019
1.0.1 Apr 29, 2019
0.0.1 Mar 2, 2017

#50 in Graphics APIs

Download history 173574/week @ 2024-08-06 169353/week @ 2024-08-13 179151/week @ 2024-08-20 173736/week @ 2024-08-27 179901/week @ 2024-09-03 176343/week @ 2024-09-10 164681/week @ 2024-09-17 193876/week @ 2024-09-24 201567/week @ 2024-10-01 198770/week @ 2024-10-08 196834/week @ 2024-10-15 199463/week @ 2024-10-22 182864/week @ 2024-10-29 179042/week @ 2024-11-05 182496/week @ 2024-11-12 184309/week @ 2024-11-19

765,465 downloads per month
Used in 858 crates (2 directly)

Apache-2.0/MIT

22KB
557 lines

ASCII canvas is a simple library that allows you to draw lines and colored text and then write them to the terminal. It uses the term library to handle the ANSI nonsense and hence it works on Windows, Mac, and Unix.

See the documentation for more information.

ASCII canvas was originally part of the LALRPOP parser generator.


lib.rs:

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.

Dependencies

~0.1–6.5MB
~38K SLoC