#canvas #ascii #term #unix #terminal #text #drawing

build ascii-canvas

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

4 releases (stable)

3.0.0 May 13, 2021
2.0.0 Apr 30, 2019
1.0.1 Apr 29, 2019
1.0.0 Mar 2, 2017
0.0.1 Mar 2, 2017

#522 in Text processing

Download history 65224/week @ 2022-12-02 58155/week @ 2022-12-09 53451/week @ 2022-12-16 30373/week @ 2022-12-23 36605/week @ 2022-12-30 59149/week @ 2023-01-06 61818/week @ 2023-01-13 71882/week @ 2023-01-20 79264/week @ 2023-01-27 72768/week @ 2023-02-03 72107/week @ 2023-02-10 70234/week @ 2023-02-17 72184/week @ 2023-02-24 63566/week @ 2023-03-03 71280/week @ 2023-03-10 59277/week @ 2023-03-17

278,021 downloads per month
Used in 503 crates (2 directly)

Apache-2.0/MIT

22KB
562 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

~155–390KB