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

#266 in Text processing

Download history 627632/week @ 2025-08-27 775254/week @ 2025-09-03 780961/week @ 2025-09-10 658989/week @ 2025-09-17 649178/week @ 2025-09-24 649363/week @ 2025-10-01 585291/week @ 2025-10-08 641461/week @ 2025-10-15 704008/week @ 2025-10-22 665559/week @ 2025-10-29 581427/week @ 2025-11-05 496900/week @ 2025-11-12 619688/week @ 2025-11-19 424215/week @ 2025-11-26 559971/week @ 2025-12-03 529240/week @ 2025-12-10

2,221,251 downloads per month
Used in 1,127 crates (2 directly)

Apache-2.0/MIT

22KB
557 lines

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.


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.

Dependencies

~0.1–1.7MB
~32K SLoC