Libghostty 1.0 mitchellh.com · 272 points · 45 comments · HN thread TL;DR Mitche...

@best30

Libghostty 1.0 mitchellh.com · 272 points · 45 comments · HN thread

TL;DR Mitchell Hashimoto announces libghostty-vt 1.0, a portable, MIT-licensed C library for terminal emulation extracted from Ghostty, with the library and its C ABI declared stable. He cites adoption by JetBrains IDEs (over 12.5 million active users by JetBrains' report), Neovim (pending PR), and many third-party terminals and tools.

  • libghostty-vt 1.0 means the library follows semantic versioning and has enforced ABI compatibility, checked with libabigail on Linux and golden type manifests on macOS and WebAssembly.
  • The API uses opaque handles and enum-keyed getters/setters so new values can be added without new symbols; older libraries return GHOSTTY_UNSUPPORTED rather than crashing.
  • Dependencies are permissively licensed (simdutf, Google Highway, Wuffs, a Unicode table) and listed in a machine-readable manifest; the library needs only libc by default and can be built freestanding.
  • CI tests on Linux (glibc, musl), macOS 13+, iOS 13+, FreeBSD, Windows x86_64, Android, and WebAssembly, with a further set built but not tested.
  • Libghostty ships its own release cycle and tarballs with packaging docs, signed sources, and an offline dependency bundle for distributions.
  • In a test on a 4-core, 8 GB Linux server, the author ran 10,000 active terminals with live shells, using dash because bash used too much RAM.

Discussion The thread is mostly congratulatory and centers on real-world use of libghostty-based tools: the JetBrains terminal switch, Ghostel for Emacs, and personal projects. Several commenters praise the project's quality and the rare move to a 1.0 release. Side threads cover terminal preferences (iTerm2, WezTerm, Foot), the lack of an official Windows build, and how the author funds the work. The mood is warm and positive, with little criticism.

  • Praise for the library, docs, and the 1.0 milestone (most): Many commenters call the release exciting and thank Mitchell and contributors, and some praise the documentation as a model for library design. One calls it how to write a library.
  • Real projects are already benefiting from libghostty (many): Several users report building their own terminals or tools on it, such as an Android project and a custom terminal, and say it just works. The JetBrains terminal switch is cited as a clear improvement over JediTerm.
  • Still prefer iTerm2, WezTerm, or other terminals (some): Some commenters say they stay with iTerm2 because it has the features they want, and that they tried Kitty and WezTerm without switching. Others argue that iTerm2 is more configurable while Ghostty is simpler and faster.
  • Windows support is still missing (some): Commenters note that Ghostty has no official Windows build. They point to third-party ports and suggest Windows Terminal as a near match.
  • Interest in the Zig and C language choice (a few): One commenter asks why C was used. Replies clarify that the code is Zig exposed through a C ABI, and that Zig bindings are still changing.
  • Concern about long-term funding (a few): One commenter asks how the author makes the work financially sustainable. Replies say he is well off, has sponsors, and runs a startup.

Links from the comments

#terminalEmulators #libghostty #Zig #opensource #CLibraries #release