AnsweringAnswering
Why a typo runs a train
Miss the keys on ls and sl sends a steam locomotive across the terminal instead, at its own unhurried pace.
Toyoda Masashi wrote it in 1993 as a cure for that exact slip, and it has barely changed since: one C file that draws the train with curses, a frame at a time, from one edge of the window to the other.
- Slow on purpose: the train takes its time, and Ctrl-C will not stop it.
- It has options: -l for a smaller one, -F to make it fly, -a for passengers calling for help, -c for a C51.
- Filed under games: Debian and Homebrew both ship it, which is how it spread.
- It has cousins: gti drives a car across for anyone who types git too fast.
brew install sl && sl -Fal
There is no way to cut it short, which is the point. The train crosses once and leaves on its own, and by the time it has gone most people have started looking at the keyboard.