SL (Steam Locomotive) runs across your terminal when you type "sl" as you meant to type "ls". It's just a joke command.
On terminals that support synchronized output, each animation redraw is presented as a complete frame.
Copyright 1993,1998,2014 Toyoda Masashi (mtoyoda@acm.org)
Usage: sl [OPTIONS]
Options:
-a, --accident An accident is occurring. People cry for help. Lists all files
-l, --logo Little version
-F, --fly It flies like the galaxy express 999
-c, --c51 C51 appears instead of D51
-f, --files Disables listing files and directories
-h, --help Print help
-V, --version Print versionSL supports piping contents into it for printing things to the train car.
echo "Hello\nworld!" | slYou can also pipe long/slow (only so slow though, if the train finishes before it gets a new line things are boring) running processes into it:
# Print package names as they are built as train cars!
cargo build 2>&1 | awk -F' ' '/Compiling/ {print $2}' | slYou can embed the SL terminal in your own pages using query parameters:
https://scaryrawr.github.io/sl/embed.html?accident=true&fly=false&smoke=true&trainType=d51&messages=["hello","world"]Supported query parameters:
accident: true or falsefly: true or falsesmoke: true or falsetrainType: d51, c51, or logomessages: URL encoded JSON array of messages
Using homebrew:
brew install scaryrawr/formulae/slUsing copr:
sudo dnf copr enable scaryrawr/sl
sudo dnf install slDownload the latest release .deb package and install:
# Automatically detect architecture
ARCH=$(dpkg --print-architecture)
sudo dpkg -i sl_*_${ARCH}.debDownload the latest release or using winget (winget may be a few versions behind):
winget install scaryrawr.sl
# Override sl alias which was (Set-Location)
echo 'Set-Alias -Name sl -Value "C:\Program Files\sl\bin\sl.exe" -Force' >> $profile
Set-Alias -Name sl -Value "C:\Program Files\sl\bin\sl.exe" -ForceUsing cargo:
cargo install --git https://github.com/scaryrawr/slUse Bun 1.4.4 (the pinned version) for the built-in formatter. Run bun run format to format files and bun run lint
for Oxlint, including type-aware and React Hooks checks.
Install the JavaScript dependencies and WebAssembly build tools before building the website:
bun install
bun run setupbun run setup installs the Rust wasm32-unknown-unknown target and wasm-pack, which are required by the website
build. The build and dev scripts also check for these prerequisites and print the setup command if anything is missing.
bun run build generates the home page's documentation and train links as HTML in apps/page/lib/. Only the demo
controls and live terminals need browser JavaScript. bun run dev regenerates the HTML when its source changes.
GitHub Actions uses five build jobs. One Ubuntu runner builds both amd64 and arm64 Debian packages and runs the native Linux debug and release smoke checks. One Windows runner builds both x64 and ARM64 MSVC binaries and NSIS installers. The ARM64 binaries are cross-compiled, not executed. A separate Ubuntu job cross-compiles debug and release macOS binaries for Intel and Apple Silicon without runtime checks. Other jobs handle Fedora RPM validation and the website build. Pages deployment and tagged releases use additional jobs when their conditions match. Tagged releases require the Fedora, Ubuntu, and Windows builds, but do not wait for the macOS cross-build.
