← Back to Blogs
HN Story

Ratty: Breaking the Text Barrier with Inline 3D Graphics in the Terminal

May 13, 2026

Ratty: Breaking the Text Barrier with Inline 3D Graphics in the Terminal

For decades, the terminal has been the bastion of plain text. While we have seen incremental improvements—from ANSI colors to Unicode and the occasional Sixel image—the fundamental divide between the "textual" command line and the "graphical" window has remained largely intact. Enter Ratty, a GPU-rendered terminal emulator that seeks to shatter this boundary by allowing inline 3D graphics to coexist with standard terminal output.

Ratty isn't just about visual flair; it represents a philosophical shift in how we interact with the command line, treating the terminal not as a legacy text stream, but as a flexible canvas capable of rendering complex data types natively.

The Inspiration: From TempleOS to Modern REPLs

At first glance, the idea of 3D models spinning inside a terminal might seem like a "nonsense project," but the motivation behind Ratty is rooted in a desire for a more unified interface. The project draws significant inspiration from TempleOS, an operating system known for its idiosyncratic design where the command line serves as the direct interface for everything—coding, system interaction, and graphics rendering all happening in the same space.

As the creator, Orhun Parmaksız, notes in the project's documentation:

"I enjoy tools like Chafa, imgcat, etc but something always feels a little clunky about the separation between text and images. Paradoxically having text and non-text all jumbled up like this feels better somehow."

This approach echoes a historical desire for a richer REPL (Read-Eval-Print Loop) experience. Some community observers pointed out that this is a journey UNIX is still taking to catch up with the capabilities of 1980s Xerox workstations and Lisp machines, which handled inline graphics far more naturally than the modern terminal abstraction.

Technical Implementation and the Graphics Protocol

Ratty is GPU-accelerated, which is a prerequisite for the fluid rendering of 3D objects without crippling the CPU. To achieve this, the project introduces a specific graphics protocol that allows applications to communicate 3D data to the terminal emulator.

This puts Ratty in the company of other innovative terminal projects like Kitty, which has pushed the boundaries of terminal graphics through its own protocol extensions. The community discussion highlights a growing trend: the terminal is slowly evolving into a full-featured environment, with some suggesting it is becoming akin to a web browser in its ability to handle diverse media.

The Challenge of Synchronization

While the visual results are impressive, the technical hurdles are non-trivial. One critical point raised by the community is the lack of vsync (vertical synchronization). Without it, there is a risk that the terminal emulator might read the framebuffer while an application is still writing to it, leading to visual artifacts or "tearing."

Use Cases: Beyond the "Cool Factor"

While many users reacted to Ratty with amusement—citing "Hollywood OS" vibes and "wobbly windows" nostalgia—there are legitimate technical applications for inline 3D rendering in a terminal:

  • Data Science and Visualization: Moving beyond static plots to interactive 3D models of data directly within the workflow.
  • System Monitoring: Visualizing complex system topologies or network flows in 3D space.
  • VR Development: Creating terminal-based environments that could eventually be ported to VR/XR spaces for a more immersive development experience.
  • Integrated Tooling: Allowing developers to see a 3D render of a model or a UI component immediately following a build command, without switching windows.

The Philosophical Debate: Do We Still Need the Terminal?

Ratty's existence prompts a deeper question: Why do we still maintain the terminal abstraction at all?

For some, the terminal is a sacred space for minimalism and efficiency. For others, the "brutalist" restriction to text is an unnecessary relic of the 1970s. The emergence of projects like Ratty suggests a middle ground—a "best of both worlds" scenario where the speed and power of the CLI are augmented by the expressive power of modern GPUs.

Whether Ratty becomes a standard for the next generation of developers or remains a glorious experiment in "outside the box thinking," it highlights a persistent drive in the developer community to reclaim the flexibility of early computing workstations and merge it with the power of modern hardware.

References

HN Stories