r/commandline • • 20d ago

Terminals Ghostty Terminal's libghostty reached 1.0, and is now ABI stable

https://mitchellh.com/writing/libghostty-1-0
145 Upvotes

16 comments sorted by

17

u/stianhoiland 20d ago

This is very big. Explosion of terminality incoming (not to speak of what's already come of this)! The terminal is starting to scuffle with the web as a platform.

26

u/cortex- 20d ago

The terminal comeback has been one of the good things about AI. When I was in university in the 2000s some people declared the terminal to be dead.

Plaintext is king baby.

2

u/output_broadcast 19d ago

That's kinda my problem with terminals. They aren't necessary for plaintext. A simple file-based approach would be far better. Hell, Jupyter Notebooks is halfway there already.

1

u/[deleted] 19d ago

[removed] — view removed comment

2

u/output_broadcast 18d ago

I mentioned Jupyter, which is a decent jumping off point, but also something like Emacs' file-based shell (M-x shell). The point is that it's a file so you can edit the "terminal" like any other file instead of the clunky prompt editing that readline and it's ilk provide. It'd also be faster since results would be written directly to a file instead of going through the tty.

1

u/editor_of_the_beast 20d ago

Think about that for a second.

5

u/TTwelveUnits 20d ago

What does that mean

18

u/cortex- 20d ago

Application Binary Interface. It means you can use it as a linked library and embedd the terminal inside other projects like IDEs without worrying about compatibility.

15

u/tfsh-alto 20d ago

You could try reading the article. Libghosty is a terminal emulation library, Ghostty is a terminal built upon it. Now it's 1.0 it'll follow ABI compatibility and applications can link against it with guarantees (such as Intellij, etc).

3

u/output_broadcast 19d ago

I assume he doesn't know what ABI is.

0

u/droctagonapus 19d ago

its a developer concern. if you arent a dev, you probably dont know what a library or abi is, but they're important concepts for devs

1

u/Thiht 19d ago

That’s amazing. libghostty might be one of the best things to happen to the tty ecosystem in decades.

1

u/mossy_stile 6d ago

Finally gives native apps a real alternative to bundling xterm.js inside Electron or fighting libvte.

0

u/AutoModerator 20d ago

Every new subreddit post is automatically copied into a comment for preservation.

User: TheTwelveYearOld, Flair: Terminals, Post Media Link, Title: Ghostty Terminal's libghostty reached 1.0, and is now ABI stable

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

2

u/[deleted] 19d ago

[removed] — view removed comment

3

u/tristan957 18d ago

One of the maintainers has started working on it.