I build Ghostty features that help people notice terminal events, avoid accidental input, and recover from mistakes. These changes include undoing terminal closure, making bells more visible, and providing a read-only mode.
I sometimes close my terminal even after confirming the close and immediately regret it: “OH FUCK NO.”
I designed terminal-close undo to keep the terminal running for a configurable time in the background before terminating for real, similar to email undo send.
I started with macOS only for now; AppKit APIs provide a nice undo manager implementation.
I'm running this build locally now to develop this feature.
There's still a bunch of work to be done on the undo-close PR.
This feature is now merged; automated builds were expected in ~30 minutes for users on the tip channel.
I described the Sunday merge as the equivalent of the Friday deploy for me, since everyone fires their terminals back up and often updates on Mondays back at work.
I said the bell emoji in the macOS title would be fixed in 1.2.1 because it was a regression.
bell-features = border
I made the border bell default off and planned to backport it into 1.2.1 because it was a tiny enough change.
I really like the border bell though; I've had it on on Linux for months now.
I made read-only mode available on both macOS and Linux. In this mode, people can search, scroll, and select text, but no input is sent to the running program.
I said, “If you have something scary you really don't want to mess up, this is perfect!”
I made read-only mode available through the command palette, a keybinding that binds bind "toggle_readonly", the context menu, or the main menu.
Related: accessibility and secure input, terminal behavior compatibility, terminal apis and capabilities