Article
Ghostty 1.4 Released: History limit increased by 5 times, while using less memory
Dongcha Beating AI Newsflash: terminal emulator Ghostty released 1.4.0 after 7 months of development. 172 contributors submitted nearly 2900 code updates. This release focuses on addressing memory usage during prolonged terminal use, with notable improvements to performance and graphics support.
The new version automatically compresses off-screen history when the terminal is idle, decompressing it on demand when reviewing or searching. Compressed plain-text history can save 70%to 90%of physical memory, and the default history limit has also increased from 10MB per terminal to 50MB. Even when filled, it will generally still use less memory than the previous version. It currently supports macOS and 64-bit Linux.
Background tabs also no longer continuously consume GPU resources. In official macOS testing, with 1 visible tabs and 20 background tabs,GPU memory usage fell from approximately 385MiB to 18MiB. The method of reading terminal output was also rewritten, increasing macOS data throughput by 25%to 55%. Directly using `cat` to output a 150MB text file reduced the time required from 1.5 seconds to 566 milliseconds.Ghostty also completed support for animation and relative positioning in the Kitty graphics protocol. Previously, displaying GIF animated images in the terminal showed only a static frame; they can now play normally. The founder said this is the first terminal other than Kitty to fully implement the graphics protocol.
The new version also supports macOS 27, while Linux has adopted a rendering approach based on EGL, and adds `ghostty +ssh`, which can automatically install the required terminal configuration when connecting to remote servers.
This release also fixes 10 security vulnerabilities. One involves Kitty graphics commands: an attacker need only induce the terminal to display malicious output, potentially causing application crashes or abnormal memory consumption and, under certain circumstances, even reading or deleting files outside the temporary directory.
Original link https://m.theblockbeats.info/flash/374131