Ghostty and Rex

A terminal’s small design choices matter when you use it all day. Can you read the text comfortably? Can you find the shell you need? When you leave a project and come back, is your work still there?

Ghostty and Superlogical’s Rex approach these problems differently. An editor, a development server, and a test runner can fill several panes. Each application has to make that work manageable, from drawing readable letters to keeping processes running.

Rex is proprietary software, not open source. Ghostty is open source under the MIT license.

Rex interests me most because it separates the visible app from the running session. Font controls and pane layouts shape the time spent at the keyboard; session ownership determines what keeps running after I disconnect.

The terminal itself#

Ghostty follows the conventions of the operating system you’re using. Its macOS interface uses AppKit and SwiftUI; its Linux interface uses GTK4. Both share a core written in Zig. The default shortcuts follow the platform’s conventions, too. That’s part of its approach to a native interface.

Ghostty has windows, tabs, and splits. It also supports terminal features such as the Kitty graphics protocol and synchronized rendering. (Ghostty features)

These details matter when you’re moving around a project. Clear focus indicators and predictable navigation reduce the effort of switching panes. A long feature list doesn’t guarantee comfortable daily use.

Tabs and panes#

A tab holds a workspace. A split divides that workspace into panes you can see at the same time. You might put an editor on the left and server output on the right, then keep a separate task in another tab. Both Ghostty and Rex support this arrangement, though their terminology differs.

Ghostty’s macOS scripting interface follows the hierarchy of application, window, tab, and terminal. A tab can contain several terminals, each occupying a split pane. The terminal is the object a script addresses when it sends input or changes focus. (Ghostty’s object model)

In Rex, a session groups related work. Inside it are windows, which appear as tabs, and those windows hold blocks. A terminal is a block; the pane is its place in the layout. So a Rex CLI command that creates a window creates a tab within the session, not another macOS window. (Rex’s terminology)

The distinction shows up in the commands, too. rex run opens a command in a new tab by default. Adding --split=right puts it beside an existing pane instead. (Rex command reference)

I split panes when I need to see two things together. An error message beside the code that produced it earns the space. A process I only check occasionally can live in another tab. Splitting everything shrinks each terminal, wraps more lines, and makes the arrangement harder to read.

Font smoothing and stroke weight#

Rex groups its font controls in Terminal settings. The screenshot below shows Berkeley Mono at 16 points, with smoothing on and ligatures off. The preview shows regular, bold, and italic text together.

Rex Terminal settings with Berkeley Mono Regular at 16 points, font smoothing on, and ligatures off.
Rex’s typography controls and text preview. This shows the settings, not a matched rendering comparison.

Rex offers a Font Smoothing toggle. Ghostty has font-thicken = true on macOS, along with font-thicken-strength, which accepts an integer from 0 to 255. Zero is the lightest thickening, not an off switch; font-thicken = false turns the effect off. (Ghostty font thickening)

Rex’s documentation says its toggle smooths text edges but doesn’t specify the rendering technique. The two controls may work differently; the label alone tells us nothing about subpixel antialiasing. (Rex terminal settings)

Ghostty also has an alpha-blending setting. The color space used to blend text into its background affects how the edges and weight look. The available modes are native, linear, and linear-corrected, with native the macOS default. Changing this setting during a thickening comparison changes two variables at once. (Ghostty alpha blending)

I prefer heavier text on my monitors, but thicker isn’t automatically easier to read. Punctuation should stay distinct, narrow gaps in letters should stay open, and regular text should look clearly different from bold.

A fair comparison holds the font files, size, colors, display, scaling, and ligature settings constant. Unscaled PNG crops preserve the rendered pixels; transparency and custom shaders add variables. Light and dark backgrounds both matter. These screenshots document the controls. Judging text quality requires matched rendering samples.

Session management#

The process that owns a terminal determines whether it survives a disconnect. Tabs and splits only arrange the view.

Rex separates the client you look at from the server that runs the session. The server keeps it running even when no client is viewing it. The project stays active while I’m away from its interface. (Rex sessions)

With Ghostty, a separate multiplexer such as tmux can provide that separation. tmux runs inside the terminal, manages its own terminals, and lets you detach and reattach while programs keep running. That adds another set of layouts and shortcuts to the arrangement. Comparing this setup with Rex means including both Ghostty’s and tmux’s configuration. (How tmux works)

Disconnecting a client, closing a pane, stopping a server, and rebooting a machine test different kinds of persistence. A restored layout shows where the panes were; checking the processes shows whether the work survived. Rex’s client/server design lets me leave a running session without ending it.

Automation#

Rex gives its sessions, windows, blocks, and clients stable IDs, and most CLI commands can return JSON. A script can address a particular terminal by ID instead of depending on whichever pane happens to have focus. (Rex CLI documentation)

The server also describes its own API. The CLI can list methods, inspect their arguments and results, and call them. Those descriptions come from the connected server, so they match its version. (Rex server API)

Scripts use that API to inspect the workspace, find server output, and recreate a project’s layout.

Rex’s agent integration uses these capabilities to let coding agents open panes, read terminal screens, and interact with running programs. Agents need Remote Control enabled to switch the visible session or otherwise control the app itself. (Rex agents)

Ghostty has automation, too. Its macOS AppleScript interface, introduced in version 1.3.0, can create layouts, address terminals, and send input. (Ghostty AppleScript documentation)

Useful automation finds the right terminal after the layout changes and tracks which command ran where. Rex’s IDs and inspectable server API support that work, as does Ghostty’s macOS scripting interface. Both let tools address terminals directly, without relying on screen coordinates or keyboard focus.

Configuration#

Rex exposes common appearance choices in its settings panels. The Interface panel below groups color scheme, interface style, tab position, and pane layout. The panel shows the choices together and labels each one.

Rex Interface settings with automatic color scheme, Glass interface style, and tabs above the terminal selected.
Rex’s Interface panel, with automatic appearance, Glass styling, and tabs above the terminal selected.

Ghostty uses a text file with key = value settings. The example below shows a theme, cursor style, padding, and split-resizing shortcuts in one file. Comments organize the options into sections. This screenshot shows Ghostty on Linux, whose window controls differ from the macOS interface discussed elsewhere in this article. (Ghostty configuration)

Ghostty configuration open in Neovim on Linux, with commented sections for the Rose Pine theme, block cursor, window padding, and split-resizing keybindings.

Ghostty’s text configuration. Screenshot from Luca Bramè’s review in Libre, June 2025. View full-size PNG.

Rex also has a configuration file: init.lua, for bindings, custom actions, and server declarations. Its settings panels and Lua file serve different needs. Both projects say a configuration file is optional; neither requires one just to get started. (Ghostty configuration, Rex configuration)

A short settings file is easy to understand when I come back to it months later. Lua gives me functions and reusable behavior, but it also gives me code to maintain. Rex’s panels make common choices easy to discover; a text file makes it easy to review several changes together. For repeated tasks, I care more about how little configuration I need to maintain than how much either application lets me write.

Try both#

I recommend both Rex and Ghostty. Both feel fast and easy to work with, and both come from people who care deeply about terminals and text-based user interfaces. That care shows in the attention to text, navigation, and the small details that make a terminal comfortable to use.

Try them with your own projects, fonts, and workflow. Their different approaches give me reasons to keep both around. I use Ghostty and Rex every day.