#canvas #text #line #ascii #ansi #draw #terminal-text

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

#791 in Text processing

Download history 94951/week @ 2023-12-16 50680/week @ 2023-12-23 72632/week @ 2023-12-30 97517/week @ 2024-01-06 104585/week @ 2024-01-13 104525/week @ 2024-01-20 110677/week @ 2024-01-27 114229/week @ 2024-02-03 117559/week @ 2024-02-10 109558/week @ 2024-02-17 109495/week @ 2024-02-24 107730/week @ 2024-03-02 110166/week @ 2024-03-09 116050/week @ 2024-03-16 114158/week @ 2024-03-23 86031/week @ 2024-03-30

445,039 downloads per month
Used in 699 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

~160–630KB