#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

#48 in Graphics APIs

Download history 161161/week @ 2024-07-31 176357/week @ 2024-08-07 168993/week @ 2024-08-14 178849/week @ 2024-08-21 171533/week @ 2024-08-28 180255/week @ 2024-09-04 178305/week @ 2024-09-11 164173/week @ 2024-09-18 198905/week @ 2024-09-25 201344/week @ 2024-10-02 194608/week @ 2024-10-09 201696/week @ 2024-10-16 197403/week @ 2024-10-23 179830/week @ 2024-10-30 180176/week @ 2024-11-06 181615/week @ 2024-11-13

779,305 downloads per month
Used in 852 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
~36K SLoC