Thchere

How to Get Started with Ratty: The Playful 3D Terminal Emulator

Published: 2026-05-16 05:49:20 | Category: Linux & DevOps

Introduction

If you've grown tired of the same old terminal emulators and want something that turns your command line into a canvas of 3D fun, Ratty is the answer. This Rust-based, GPU-rendered terminal emulator brings a rat cursor, 3D mode, inline 3D objects, and even a Möbius twist to your everyday terminal workflow. Originally inspired by the quirky design of TempleOS, Ratty is a modern, experimental tool that blends terminal protocols with the Bevy game engine. In this step-by-step guide, you'll learn how to install Ratty, set it up, and explore its most absurd yet totally fun features.

How to Get Started with Ratty: The Playful 3D Terminal Emulator
Source: itsfoss.com

What You Need

  • A Linux system (or Windows/macOS with some tweaks; this guide focuses on Linux)
  • Rust and Cargo installed (visit rustup.rs for instructions)
  • Git (optional, if you prefer building from source)
  • A graphics card that supports Vulkan or Metal (for GPU rendering)
  • Basic familiarity with the command line

Step-by-Step Guide

Step 1: Install Rust and Cargo

If you don't already have Rust, open a terminal and run the following command to install rustup, the Rust toolchain manager:

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

Follow the on-screen prompts. After installation, restart your terminal or run source ~/.cargo/env to add Cargo to your PATH.

Step 2: Install Ratty from Source

Ratty is available on GitHub. Clone the repository and build it with Cargo:

git clone https://github.com/orhun/ratty.git
cd ratty
cargo build --release

The --release flag optimizes the binary for better performance. The build process may take a few minutes the first time.

Step 3: Run Ratty

After a successful build, you can start Ratty from the build directory:

./target/release/ratty

Alternatively, install Ratty system-wide using cargo install --path . and then run ratty from anywhere.

Step 4: Explore the Default 3D Rat Cursor

When Ratty launches, you'll immediately notice the spinning 3D rat cursor. Type some commands—like ls or echo Hello—and watch the rat move along with your text input. This cursor is customizable, but for now, enjoy the novelty. To learn more about cursor customization, refer to the Tips section.

Step 5: Activate 3D Mode

Press Ctrl+Alt+Enter to enter 3D Mode. The entire terminal becomes a 3D scene where you can warp, pull, and rotate the view. Use your mouse or keyboard shortcuts to interact:

  • Warp Increase: Super+Ctrl+Alt+Up
  • Warp Decrease: Super+Ctrl+Alt+Down

You can also press Ctrl+Alt+M to toggle Möbius mode, which twists the terminal output into a continuous Möbius strip. This showcases the Bevy game engine's power.

Step 6: Use Inline 3D Objects

Ratty supports embedding 3D assets directly into the terminal output. To do this, you need to use the Ratty Graphics Protocol. This is an advanced feature; for now, test with a sample command provided by the project. Clone the ratty-examples repository or look for scripts in the examples/ folder of the source. Run something like:

How to Get Started with Ratty: The Playful 3D Terminal Emulator
Source: itsfoss.com
./target/release/ratty --example inline-cube

This will display a rotating 3D cube anchored to a text cell. As you scroll, the cube moves seamlessly with the text.

Step 7: Display Images Directly

Ratty also supports inline images using the Kitty graphics protocol. To test this, run a command that outputs an image, for instance:

printf '\e_Ga=T,f=32,s=100,v=64;A...\e\\'  # Pseudocode; check the official documentation

For a simpler test, use a tool like cat on an image file if your terminal supports it, but Ratty’s native support works best with proper encoding.

Step 8: Customize Your Experience

Ratty is highly configurable. The configuration file is typically located at ~/.config/ratty/ratty.toml. You can change the cursor model, 3D scene settings, and keybindings. For example, to replace the rat with a different 3D mesh, compile one using Ratty’s asset pipeline. Check the project's GitHub wiki for details.

Tips and Tricks

  • Start with a simple environment: Ratty is experimental, so use it alongside your regular terminal for production work. You can even set it as your default terminal by changing your system settings.
  • Performance tweaks: If you notice lag, reduce the warp level or lower the rendering resolution by editing the config file.
  • Explore the community: Join the Ratty GitHub repository for updates, issues, and user-contributed 3D models.
  • Use with caution on headless servers: Ratty relies on GPU acceleration, so remote sessions via SSH won't show 3D effects. Stick to local use.
  • Have fun but stay productive: The 3D cursor and Möbius mode are delightful distractions, but Ratty is still a fully functional terminal emulator. Try using it for your everyday coding or system administration tasks to see how it feels.

Now that you've set up Ratty, you're ready to enjoy a terminal like no other. Embrace the absurdity—it's totally fun!