Tom (Terminal On-screen display Mono) is a tool that allows to display the VCR OSD mono-like font on your terminal.
You can install the program via the GitHub relases, or via:
shards install
Usage: tom [options] TEXT
-s NAME, --style=NAME Block characters to draw with: half, octant, braille (default: half)
-v LETTER:N,..., --variant=LETTER:N,...
Use glyph variant N for a given letter, e.g. S:2 (repeatable)
-h, --help Show this help
tom HELLO
Three block styles are available via -s, all built from the same glyph data
so letter spacing stays the same width on screen whatever style you pick:
| Style | Cell size | Looks like |
|---|---|---|
half (default) |
1x2 pixels | classic half blocks (▀ ▄ █) |
octant |
2x4 pixels | finer, Unicode 16 block octants |
braille |
2x4 pixels | finest, Braille patterns |
tom -s octant HELLO
The display of Braille characters may vary depending on your device. Some of them may not display correctly.
crystal spec shards build tom
Glyphs live one ASCII code per directory, as half-block art: src/data/<code>/<variant>.txt (e.g. src/data/65/1.txt for A, variant 1). Each file is a 10x7 grid drawn with ▀, ▄, █ and spaces — octant and braille output are derived from this at render time.
- Fork it (https://github.com/tamdaz/tom.cr/fork)
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create a new Pull Request
- Zohir Tamda - creator and maintainer