date: 2024-02-11 20:51:50
categories: linux
firstPublishDate: 2024-02-11 20:51:50
My TUIs run in linux terminals and are built with:
There are no dependencies besides sheepy and gcc.
The terminal font has to support unicode 15 for the TUIs using the 2x3 pixel characters and the terminal is configured for RGB 24 bit colors, when using terminal multiplexers (screen, tmux) you might not get 24bit colors.
The TUIs built on twid have these common key shortcuts:
F1 - Help (blue box on screen top) q - Quit esc - Quit/Close help ` - Disable/Enable mouse ctrl+/ - Change colors (c+7, c+-, c+_) ctrl+p - Take a screenshot (as text)
I use i3 and I have shortcuts to start my TUIs on terminal windows, I start my calendar in the st terminal with Win/Cmd Key + d:
bindsym $mod+d exec st -e calendar
After sheepy is installed, the TUIs below are installed like this:
sudo spm -g install PACKAGE_NAME
On my laptop, it takes less than 16ms to start these TUIs.
Sheepy is a build system for using C as a scripting language like python. It takes less than 5 minutes to install sheepy on a machine:
apt-get install gcc git git clone https://spartatek.se/git/sheepy.git cd sheepy sudo -H ./install.sh
The readme has more details.
`paku paku` is a 1D Pacman game created Aba games, to play it tap any button (except q) to turn. Press `q` to quit the game. It is a one button game.
Original paku paku game (javascript)
I reimplemented `paku paku` in C for the terminal (a font with unicode 15 is required to display correctly).
sudo spm -g install pakupaku
Precompiled executable for linux
Video of paku paku running on the librem5 phone
Wikipedia article about Aba games
Missile Command is a clone of the Missile Command arcade game. I modified the code from `https://github.com/johnflakejr/MissileCommand` to run in the terminal.
Missile Command screenshot [IMG]
sudo spm -g install missileCommand
Basic tui calculator like the gui calculators. It has decimal, hexadecimal and binary numbers.
sudo spm -g install tcalc
manviewer shows the man pages in a searchable tree (like a file explorer) for easy navigation.
sudo spm -g install manviewer
Calendar shows a month and highlights today's day. Use arrows to change month and year. Calendar supports small screens (5-6 inches).
sudo spm -g install calendar
radio is an encrypted chat system using UDP to transport the messages. There is only one broadcast channel.
Precompiled executable for linux
patate is an ascii art editor. It supports unicode, RGB colors, animations...
sudo spm -g install patate
bato is spartan tui browser for terminals. It can parse gemtext and markdown and browse files on local disk.
bato displaying a markdown file [IMG]
bato.gz (gziped elf executable)
sudo spm -g install bato
heure is a clock similar to tty-clock.
sudo spm -g install heure
mandelbrot is a mandelbrot fractal set explorer.
sudo spm -g install mandelbrot
clop is an asciinema player in the terminal.
clop screenshot (image from Star Wars) [IMG]
sudo spm -g install clop
Timer shows a progress bar.
sudo spm -g install timer
plasma is a TUI showing the plasma demo effect.
Plasma effect article on wikipedia
sudo spm -g install plasma
sip is a Systematic Investment Planner. Enter the monthly investment, the period in years and the average yearly rate of return.
sudo spm -g install sip