Local App
Termtris
A smooth, modern Tetris game for your terminal.
Requirements
- Linux or macOS.
- A modern terminal with true color and alternate-screen support — Ghostty, iTerm2, WezTerm, Kitty, Alacritty, and recent GNOME Terminal all work. The game degrades gracefully to 16 colors elsewhere.
- A Rust toolchain to install with Cargo.
Install
Install the termtris command with Cargo, either straight from the repository or from a local checkout of the source.
From the repository
cargo install --git https://github.com/mikerayco/Termtris.git
From a local checkout
cargo install --path .
Launch
Once installed, start the game from any terminal:
termtris
Controls
| Key | Action |
|---|---|
| ← / → | Move left / right |
| ↑ or X | Rotate clockwise |
| Z | Rotate counter-clockwise |
| ↓ | Soft drop |
| Space | Hard drop |
| C | Hold |
| M | Mute / unmute |
| P or Esc | Pause / resume |
| Enter | Start / restart |
| Q | Quit (also Ctrl+C) |
Sound
Sound effects are synthesized at runtime, with no bundled audio assets. On Linux, sound plays through ALSA, PulseAudio, or PipeWire; on macOS, through CoreAudio. If no audio device is available, the game continues silently.
Source: github.com/mikerayco/Termtris