#font #ansi #ansi-term #linux #terminal #command-line #cli-input

bin+lib oozz

A CLI program that takes input and renders it in an ANSI art font, and adds some colored oozz

7 releases

Uses old Rust 2015

0.4.1 Dec 11, 2017
0.4.0 Nov 3, 2017
0.3.5 Nov 2, 2017
0.3.4 Oct 29, 2017

#23 in #cli-input

GPL-3.0 license

93KB
478 lines

Build Status Crates.io

Overview

A CLI program that takes text and renders it in an ANSI art font, and adds some colored oozz.

Requirements

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).

Installation

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.

Usage

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
  • . ! ' " _ $ /

Options

  • -c --color: change the color of the 'oozz', to one of the 8 colors supported by your terminal. Valid values are one of black|red|green|yellow|blue|magenta|cyan|white
  • -b --bold: use the bold variant of the chosen color.
  • -C --center center output horizontally on screen, if possible.

Building

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.

Dependencies

~5.5MB
~104K SLoC