EXPLORINEER
en

Hacker News

Libghostty 1.0

SoftwareFirst seen 1,010 points176 comments


Libghostty 1.0 is a stable release of a C library that handles terminal emulation, the part of a terminal app that reads and shows text and commands. It was pulled out of the Ghostty terminal app and is now used by many other products.

What happened

The team released libghostty-vt 1.0. libghostty is a fast, portable library that other programs can use to act like a terminal. The 1.0 label means the library and its C interface (ABI) are now stable, so other programs can rely on them without breaking.

Key numbers and facts

  • JetBrains IDEs such as IntelliJ, PyCharm, and GoLand now use a libghostty-powered terminal.
  • JetBrains reports over 12.5 million active users with that terminal.
  • More people use a libghostty-powered terminal than use the Ghostty app itself, by a very large margin.
  • The awesome-libghostty list tracks well over a hundred projects.
  • Community bindings exist for languages including Rust, Go, JavaScript, Swift, Python, .NET, Elixir, Dart, and Java.

Some background

A terminal emulator is a program that imitates a text terminal. It reads streams of text and control codes and draws them on screen. This is hard to get right, and the article points to a bug in JetBrains' old terminal code as an example. libghostty was extracted from the core of Ghostty, so other apps do not have to write their own emulator.

Why it matters

A stable library means other developers can build on it with confidence. The project also checks every code change against its stability rules, so updates are less likely to break programs. Stable ABI matters because software packagers and program makers can link to the library without fear of sudden breakage.

What to watch

  • Whether Neovim merges its pull request that replaces libvterm with libghostty-vt.
  • Whether the KDE Konsole replacement built on libghostty ships.
  • How more new terminals and coding tools adopt libghostty instead of writing their own emulators.

Glossary

libghostty
A fast, portable C library that handles terminal emulation, taken from the Ghostty terminal app.
ABI
Application Binary Interface: the rules that let compiled programs use a library without breaking when the library is updated.
terminal emulator
A program that imitates a text terminal, reading text and control codes and drawing them on screen.
JetBrains
A company that makes coding tools such as IntelliJ, PyCharm, and GoLand.
Neovim
A text editor used by programmers, which is considering switching to libghostty.
Konsole
KDE's terminal app for Linux desktops.