fs (FigScroll) is a terminal animation program that scrolls Figlet-generated ASCII art from right to left, inspired by the classic sl (steam locomotive) program by Toyoda Masashi. It dynamically generates ASCII art from user-specified text, font, and width, and supports infinite scrolling and adjustable speed.
fs -t "Hello World" -f slant -i
fs -t "be right back... " -f roman -w 200 -s 20000
man fs # View man page after installation- Generate ASCII art using
figletwith custom text, font, and width. - Scroll art across the terminal, even in narrow windows (like
sl). - Options:
-t "text": Text to render (required).- You'll need to escape special characters with
\(e.g.-t "test\!"). - Be sure to include trailing space(s) in infinite scroll (e.g.,
fs -t "text\! " -i). -f font: Figlet font (default: standard).-w width: Figlet output width (default: 132).-i: Infinite scroll, where new instances start before the previous one exits.-s microseconds: Animation speed (default: 40000, ~25 FPS).
- Exit with 'q' or Ctrl+C.
figlet: To generate ASCII art.libncurses: For terminal rendering (e.g.,libncurses5-devorlibncurses6-devon Debian/Ubuntu).- Install on Debian/Ubuntu:
sudo apt install figlet libncurses5-dev
- Install on macOS (via Homebrew):
brew install figlet ncurses
Build the fs binary in the current directory:
gcc -o fs fs.c -lncursesRun it directly:
./fs -t "Hello World" -f slantClone the repository:
git clone https://github.com/insasquatchcountry/figscroll.git
cd figscrollBuild and install to /usr/local/bin and /usr/local/share/man/man1:
make
sudo make installRun from anywhere:
fs -t "be right back... " -iView the man page:
man fsUninstall:
sudo make uninstallAdd the custom tap:
brew tap insasquatchcountry/tapInstall
fs:brew install fsRun and view the man page as above.
figscroll_example2.mp4
- Author: InSasquatchCountry
- Inspired by:
slby Toyoda Masashi (https://github.com/mtoyoda/sl) - Built with
figletandncurses. - Guidance and Support: Grok, created by xAI
MIT License for original contributions, with portions derived from sl under its original terms (see LICENSE file).
Thanks to Toyoda Masashi for the original sl program, which provided the core animation logic and inspiration for fs.
