Ghostty 1.4: Faster I/O, Smaller Scrollback, and a Fuller Terminal Protocol
A terminal emulator sits between a running program and a screen. It must drain output quickly enough that the program can keep writing, interpret control sequences correctly, retain useful history, and render the result without blocking the next batch of bytes. Ghostty 1.4, released on October 27, 2026, changes each of those parts. The release follows seven months of work by 172 contributors across 2,889 commits.
The most interesting improvements are connected. Parsing faster helps little if a program waits for a slow reader. A larger scrollback limit helps little if every hidden page stays resident in memory. Graphics support is incomplete if an image cannot animate or follow another placement. Ghostty 1.4 addresses the handoffs as well as the individual components.
Output can keep moving while parsing catches up
On macOS, Ghostty’s maintainers found that the kernel caps a read from a pseudoterminal, or pty, at roughly 1 KiB even when the application offers a bigger buffer. Previously Ghostty parsed each read before continuing. That meant every small chunk incurred the cost of processing, while the program producing output could remain blocked behind the terminal.
Version 1.4 separates the work. One thread drains the pty and another parses the accumulated bytes into terminal state. The reader can make progress while parsing is under way. In the team’s macOS tests on an M4 Max, this improved end-to-end I/O throughput by 25% to 55%, depending on plain or Unicode text. It is a pipeline improvement, not merely a faster parser.
The parser itself improved too. Ghostty reports plain ASCII processing rising from 128 MB/s to 725 MB/s in a parser benchmark, a 5.7-fold increase. CJK text processing rose 3.4-fold; a 2.6 GB collection of real terminal recordings processed about 25% faster. In an end-to-end macOS example, printing a 150 MB file fell from 1.5 seconds to 566 milliseconds. These tests measure different things, so the 5.7-fold parser result should not be read as a 5.7-fold improvement in every terminal workload.
Other hot paths matter in ordinary use. Resizing a 120-by-80 terminal with 10,000 scrollback lines is about six times faster in the release’s test. Copying, searching, and exporting formatted terminal content improved by 1.5 to eight times. The renderer holds the terminal lock for less time per frame, giving the I/O side more opportunity to work during heavy output. On macOS the display link now sleeps when there is nothing to draw; hidden GTK tabs also stop rendering.
History grows while its resident footprint shrinks
Ghostty now compresses scrollback pages that are not visible. It waits until the terminal is idle, then compresses those pages and decompresses them when a user scrolls or searches. According to the release measurements, typical text-heavy history uses 70% to 90% less physical memory after compression. The default history limit rises from 10 MB to 50 MB per terminal. The feature is available on macOS and 64-bit Linux, and scrollback-compression can disable it.
The distinction between resident and virtual memory matters here. Compression reduces physical pages in use. It need not make an application’s virtual address space look smaller, so resident memory is the useful metric when checking the claim. Ghostty also returns memory to the operating system after clearing or trimming history. On macOS, a new empty terminal’s page allocation fell from 128 KiB to about 16 KiB. In a test with one visible tab and 20 hidden tabs, releasing hidden tabs’ GPU resources reduced GPU memory from about 385 MiB to 18 MiB; rebuilding a tab’s resources took under a millisecond.
Those numbers have specific workloads and platforms attached. The larger default limit is attractive, but a terminal full of images or incompressible data will not behave like text-heavy history.
Kitty graphics now includes motion and placement relationships
The Kitty graphics protocol lets terminal programs transmit images and place them in the terminal grid. Ghostty already supported much of it. Version 1.4 fills in animation and relative placements, the last major missing pieces, and the team says its implementation now covers the published specification completely. That makes it the first terminal outside Kitty itself to reach that mark, according to Ghostty’s release notes.
Animation involves more than drawing a GIF once. A client can transmit frames, specify how to compose them, and control playback. Ghostty now handles those operations and pauses animation while a terminal is not visible. With relative placement, a child image can be positioned relative to another image’s placement, so moving the parent moves the child. This is useful to terminal applications that treat images as parts of a changing interface rather than isolated decorations.
The maintainers also tested behavior against the protocol and Kitty itself. Images now scroll correctly inside scroll regions, replacing an existing image ID behaves as expected, and invalid image data receives an error response instead of leaving a client waiting. Parsing large image payloads in bulk with SIMD was about 16 times faster than byte-at-a-time parsing in their 64 MiB x86-64 Linux benchmark. That is a parser measurement, not a claim that all image display is 16 times faster.
The Kitty clipboard protocol is another interoperability addition. Unlike OSC 52’s plain-text clipboard exchange, it can transfer formats such as images and HTML, and a program can inspect available paste formats. Ghostty uses its existing clipboard-read and clipboard-write controls: reads prompt by default, writes are allowed by default, and an oversized write fails without changing the clipboard. The new clipboard-write-limit-bytes defaults to 64 MiB.
A new path from local shell to remote terminfo
A remote host needs a terminfo entry describing what the local terminal can do. If TERM=xterm-ghostty arrives on a machine without that entry, full-screen tools can behave incorrectly. Ghostty 1.4 adds ghostty +ssh, a wrapper that prepares the remote side before running the real SSH command with the user’s arguments. For example:
ghostty +ssh user@example.com
The wrapper installs Ghostty’s bundled terminfo on the remote host, forwards COLORTERM, TERM_PROGRAM, and TERM_PROGRAM_VERSION, and uses TERM=xterm-ghostty when setup succeeds. If terminfo installation fails, it falls back to TERM=xterm-256color. Installation is cached by host and port, and Ghostty refreshes it when the bundled entry changes. Its opt-in shell integration features for SSH now share this same path across bash, zsh, fish, elvish, and Nushell rather than carrying separate copies of the setup logic. The wrapper can also be used directly in scripts without enabling shell integration.
This does not make every remote terminal feature automatic. The ssh-env and ssh-terminfo shell integration features remain opt-in, and a remote program still depends on its own protocol support. It does make the terminal identity and capabilities more likely to match the actual client.
Linux rendering and desktop behavior
The GTK application now draws with EGL on a rendering thread, exports frames as DMABUFs, and passes those frames to GTK. Triple buffering aims to reduce tearing, while moving OpenGL calls off the main thread removes a source of UI contention. Rendering at the window’s true fractional scale fixes blurred text and box-drawing characters at settings such as 125% and 150%. When a GPU driver cannot export DMABUFs, Ghostty falls back to a slower CPU copy path.
GTK users can also drag splits between tabs and windows. A handle shows where a split will land, and its running process, contents, and working directory move together. Moving a split out to form a new tab or window remains a macOS-only behavior. On macOS 27, the release fixes titlebar and tab appearance issues while retaining support back to macOS 13.
The platform floor changes for GTK builds: Ghostty now requires GTK 4.18 and libadwaita 1.7, plus a working EGL implementation. Ubuntu 24.04 LTS does not meet the new GTK and Adwaita versions; the Flatpak package or an older Ghostty release are the documented alternatives.
Accuracy, security, and migration details
Terminal compatibility depends on small rules. Ghostty now runs esctest in CI and fixes behavior around margins, tab stops, character sets, cursor movement, and mode reporting. It adds soft reset, extended cursor position and screen-size reports, backarrow key mode, and visibility reports so programs can pause work in hidden terminals. Two potentially intrusive capabilities, window resizing by a running program and screen checksum reports, remain disabled by default.
The release also fixes several security issues documented by the maintainers. They include paste protection bypasses, crafted terminal output that could crash or hang Ghostty, a Kitty graphics issue that could in limited cases access files outside allowed temporary directories, and unsafe link handling on macOS. Users who display untrusted output or paste untrusted text should treat the update as a security release as well as a performance release.
Configuration has a few user-visible changes. copy-on-select now takes none, primary, clipboard, or both; the old clipboard behavior, which copied to the selection and system clipboards, maps to both. On macOS, the default changed to none, so selecting text no longer copies it automatically. The old scrollback-limit name is deprecated in favor of scrollback-limit-bytes, while a separate scrollback-limit-lines option becomes available. Some macOS and GTK prompt-navigation keybindings changed too. Existing configurations should be checked against the breaking-changes section before assuming familiar selection or shortcuts still behave the same way.
Ghostty 1.4 is a substantial terminal release because it improves the full path from program output to display. The pty reader stops waiting for every parse, the parser and renderer do less work, history can be larger without occupying as much resident memory, graphics clients gain the missing protocol behaviors, and remote shells get a more reliable setup path. The best measure of its effect remains a user’s own workload, but the release notes explain clearly where the speed, memory, and compatibility gains come from.