lolcat remake in C
Go to file
0xf8 24a8565f6d
Add basic piped input support
2023-06-03 16:50:52 -04:00
.gitignore Actually add .gitignore. Update README.md 2023-02-25 12:27:55 -05:00
LICENSE Initial commit 2023-02-25 12:27:52 -05:00
Makefile Add CFLAGS to makefile 2023-02-25 13:35:52 -05:00
README.md Add basic piped input support 2023-06-03 16:50:52 -04:00
compile_commands.json Add compile_commands.json 2023-02-25 12:39:22 -05:00
in Add basic piped input support 2023-06-03 16:50:52 -04:00
rbtext.c Add basic piped input support 2023-06-03 16:50:52 -04:00

README.md

rbtext

Pure-C alternative to something like lolcat on linux.

build

gcc -o rbtext rbtext.c OR make

usage

./rbtext <text> [text...]

install

install -m755 rbtext /usr/bin

runtime configuration

This is done by setting environment variables.

  • RBTEXT_FULLSCREEN (default: Enabled, force disable when non-tty) - Clear screen every print (useful for text that will wrap)

example

Runs rbtext without clearing the screen everytime
RBTEXT_FULLSCREEN=-1 ./rbtext hello world


Runs rbtext with piped input
`echo "hello world" | ./rbtext`

note on piped input

Piping input will cause rbtext to stop refreshing the screen. This is because it expects constant output, like in the following command: cat /dev/urandom | base -w 0 | ./rbtext