Cascadity Audio
← All streams

#terminal

Everything tagged terminal, across every stream.

0

Libghostty 1.0: Ghostty's terminal-emulation core becomes a stable library, already inside JetBrains IDEs and headed for Neovim

Mitchell Hashimoto explains the ABI-stability design choices in detail and why he thinks a shared terminal core helps everyone.

Mitchell Hashimoto announced libghostty-vt 1.0 on November 6, the terminal-emulation library taken from the core of his Ghostty terminal. He writes that a year ago the C API didn't exist and Ghostty was its only user; now it runs in production for millions of people across hundreds of free and commercial products. Every JetBrains IDE (IntelliJ, PyCharm, GoLand and others) now has a libghostty-powered terminal, which he puts at over 12.5 million users based on a JetBrains report, and Neovim has an approved pull request replacing libvterm with libghostty-vt.

Version 1.0 means semantic versioning and an enforced ABI-stability policy: opaque handles, size-tagged structs, enums pinned to int and versioned symbols, so programs built against newer headers get an "unsupported" result instead of a crash. The library is MIT-licensed, creates no threads, and he says he ran 10,000 active terminals on a 4-core, 8 GB Linux server. Community bindings exist for Rust, Go, JavaScript, Swift, Python and more. He notes the post was written with no AI assistance.

Rabbit Holes 1
  • Application binary interface

    After exploring Libghostty 1.0, for the promise behind a 1.0 like this, read about Application binary interface.

    An application binary interface (ABI) is the interface a piece of software, often a library, exposes for in-process machine-code access by the programs that use it.

    Wikipedia · Wade · 5 min

    0
0

Ghostty 1.4 terminal ships compressed scrollback, full Kitty graphics support and 10 security fixes

Hand-written release notes that explain the engineering, including a surprising macOS kernel limit on terminal reads.

Ghostty, the free, non-profit terminal emulator, released version 1.4.0 on October 27 after seven months of work: 2,889 commits from 172 contributors. Highlights from the release notes:

  • Memory: scrollback that isn't on screen is now compressed while the terminal is idle, cutting its physical memory use by 70-90% for typical text, so the default scrollback limit rose from 10 MB to 50 MB. Hidden tabs release GPU memory (about 385 MiB down to 18 MiB in one macOS test).
  • Graphics: Ghostty now implements 100% of the Kitty graphics protocol, including animation, which the maintainers say makes it the first terminal other than Kitty to do so.
  • Speed: the team found macOS caps each read from a pseudo-terminal at about 1 KiB and reworked how output is drained and parsed.
  • Security: ten advisories are fixed, including paste protection that missed carriage returns and crafted Kitty graphics or hyperlinks that could, in some cases, read files or run commands. It also supports macOS 27.

On Hacker News, users compared it with Konsole, WezTerm and iTerm2, and a commenter from the project pointed to libghostty, the embeddable terminal core.

Rabbit Holes 1
  • Terminal emulator

    After exploring 1.4.0 - Release Notes, for the basics of what Ghostty is, start with Terminal emulator.

    Explains what a terminal emulator is: a program that imitates a video terminal inside a graphical desktop, often called a terminal window.

    Wikipedia · Wade · 5 min

    0