Last Updated on May 25, 2022
Who loves eye candy? Don’t be shy — you can raise both hands!!
Linux Candy is a series of articles covering interesting eye candy software. We only feature open-source software in this series.
Steam Locomotive is a tiny C program, written in 295 lines of code. It’s just a harmless bit of fun.
Installation
Compiling is trivial. You can compile sl by cloning the project repository, and issuing the make command. But you might find a convenient package in your distribution. Either way, installation takes 10 seconds.
In Operation
ls is a command to list computer files in Unix and Unix-like operating systems. When invoked without any arguments, ls lists the files in the current working directory.
If you mistakenly type sl instead of ls, you’ll see the following animation in your terminal.
Like all good command-line utilities, ls has a range of command options. Only a few of these options are replicated with sl.
You might be aware that ls -a lists all entries in the directory, including the entries with start with a . (dot). Typing sl -a produces the following animation. Witness the accident at hand with people crying for help. I guess it’s a good choice for -a.
Any self-respecting Linux user will know that the -l flag displays the mode, number of links, owner, group, size (in bytes), and time of last modification for each file. With sl, the -l flag slightly bizarrely shows a little version of the steam locomotive. It’s a bit of a strange choice considering you get more information with the -l flag with ls.
ls -F is a much less common option, putting a / after each file name if the file name is a directory, an * if the file can be executed, an = if the file is a socket, a | if the file is a FIFO, and a @ for a symbolic link. If you mistype ls with the -F flag, you’ll see your loco literally flying away.
Summary
The developer describes Steam Locomotive as a highly advanced animation program for curing your bad habit of mistyping.
In reality, the animation is basic, and it probably won’t cure you of typing errors. But it’s a bit of harmless fun nevertheless.
Website: github.com/mtoyoda/sl
Support: Fork
Developer: Toyoda Masashi and contributors
License: Open Source
Steaam Locomotive is written in C. Learn C with our recommended free books and free tutorials.
Complete list of articles in this series:
Linux Candy | |
---|---|
ASCIIQuarium | Embrace marine life from the terminal with beautiful ASCII art |
ASCII Art Converter | A small utility that converts images into ASCII art |
BobRossQuotes | Collection of quotes from Bob Ross |
Boxes | Command line ASCII boxes |
Buoh | Online strips comics reader |
cacafire | Color ASCII fire |
catclock | xclock with an enhanced cat mode |
cbonsai | Generate bonsai trees in the terminal |
christmasfetch | Festive cheer on the desktop |
chucknorris | Chuck Norris jokes in your terminal |
cornyjokes | Corny jokes for the terminal |
CMatrix | ncurses program that simulates the display from “The Matrix” |
ctree | A Christmas tree right on your terminal |
eDEX-UI | Sci-fi computer terminal emulator and system monitor |
emoj | Simple tool that to find suitable emojis for pasting to your clipboard |
Emote | Modern popup emoji picker |
Evolvotron | Interactive generative art |
Fantascene | Dynamic wallpaper changer |
Fondo | Find beautiful wallpapers from Unsplash |
gti | Typo-based curio inspired by Steam Locomotive |
Hollywood | Fill your console with Hollywood melodrama technobabble |
linuxwave | Generate music from the entropy of Linux |
lolcat | Rainbows and unicorns |
No More Secrets | Recreates the data decryption effect from the Sneakers movie |
nook | Plays Animal Crossing hourly themes on the hour |
nyancat | Terminal-based Pop Tart Cat Animation |
oneko | Animal chasing fun |
pipes.sh | Animated pipes terminal screensaver |
ponysay | cowsay reimplemention for ponies |
projectM | Music visualizer originally based on Milkdrop |
pscircle | A different take on the venerable ps command |
PyBonsai | Generates procedural ASCII art trees |
pyjokes | One line jokes for programmers |
Pywal | Generate color schemes on the fly |
Relaxator | Relax to soothing sounds |
Rusty Aquarium | Monitoring by visualization |
Steam Locomotive | C program written in 295 lines. It's harmless fun |
Ternimal | Animated lifeform in the terminal |
terminal-parrot | Party parrot time |
tetris | Tile-matching puzzle video game in your terminal |
Variety | Wallpaper manager with many desktops and wallpaper sources |
WallGen | Generate HQ poly wallpapers with a few arguments. |
WallpaperDownloader | Download, change, and manage wallpapers |
xcowsay | Displays a cow on your desktop with message |
XDecorations | Add some festive cheer to your desktop |
XScreenSaver | Framework and collection of screensavers |
My 9 year old is fascinated by steam locomotives. And with COVID-19, social distancing, and a big glob of boredom, Steam Locomotive offers a tiny ray of sunshine for my boy. And I even think I’ll buy him a small Linux computer for him to start his own adventures. Any recommendation? Something a bit more powerful than the Raspberry Pi 4 preferably.
Don’t discount the Raspberry Pi 4. As our Raspberry Pi 4 blog reports, it’s a good desktop replacement in many respects.
That’s loco,hahaha.