oozz

Crates.iooozz
lib.rsoozz
version0.4.1
sourcesrc
created_at2017-10-29 18:35:13.145128
updated_at2017-12-11 18:15:15.578356
descriptionA CLI program that takes input and renders it in an ANSI art font, and adds some colored oozz.
homepage
repositoryhttps://github.com/roosta/oozz
max_upload_size
id37369
size342,980
Daniel Berg (roosta)

documentation

https://github.com/roosta/oozz

README

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.

Commit count: 163

cargo fmt