Crates.io | oozz |
lib.rs | oozz |
version | 0.4.1 |
source | src |
created_at | 2017-10-29 18:35:13.145128 |
updated_at | 2017-12-11 18:15:15.578356 |
description | A CLI program that takes input and renders it in an ANSI art font, and adds some colored oozz. |
homepage | |
repository | https://github.com/roosta/oozz |
max_upload_size | |
id | 37369 |
size | 342,980 |
A CLI program that takes text and renders it in an ANSI art font, and adds some colored oozz.
This program relies heavily on VT100 ANSI escape codes so your terminal would have to support this. The output is intended for modern unicode terminals but works in the virtual console, so long as the font has the required glyphs (box drawing characters).
Rust, and Cargo is
required, and oozz
can be installed using cargo like so:
cargo install oozz
Or alternatively, you can build a release binary,
cargo build --release
Then place said binary, located at target/release/oozz
, somewhere on your $path
.
Basic usage would be calling oozz
and the remaining input is
treated as a string
oozz some text
Supported characters are currently:
a-z
0-9
.
!
'
"
_
$
/
black|red|green|yellow|blue|magenta|cyan|white
Requires Rust and Cargo installed on system, and can be built like this:
cargo build
An optional requirement would be
Recode, a charset converter tool.
The artwork files comes in two flavours, *.ans
and *.latin1
, both
filetypes are tracked in the repo but if you for some reason want to
change the artwork, Recode is used for the conversion between the
filetypes. Just edit something and run:
make
I use PabloDraw to draw the ANSI art, and save the files in .ans format that uses CP437 encoding. The makefile does the conversion to latin1 as well as a search and replace that sets the bold flag for all the letters.