I treat accessibility and secure input as complementary parts of Ghostty’s macOS integration: accessibility tooling can inspect and navigate the terminal with permission, while secure input protects keystrokes during detected password prompts. These features reflect my focus on native macOS behavior in ghosttys native app approach and connect to my investigations of macos compatibility investigations.
When Ghostty detects a password input prompt, it now changes the cursor to a lock and enables the secure input API on macOS.
When the secure input API is enabled, I show a neat, animated icon that explains what's going on when clicked.
I said, “Another example of native UI wins (imo).” I was not claiming this was a huge innovation; I just think our implementation is nice.
Secure Input is the macOS system API that prevents accessibility APIs from reading your keystrokes, so screen-recording software and similar tools can't read passwords.
Other terminals on macOS support secure input, and I think only iTerm also supports secure input on password detection.
Ghostty will soon be visible to accessibility tooling on macOS. Tools like ChatGPT and Claude can now read Ghostty's screen contents too (with permission).
I described screen-content accessibility as relatively rare: Only the built-in Terminal, iTerm2, and Warp also support this. Kitty, Alacritty, and others are invisible to a11y on macOS.
Ghostty's structure is also visible, navigable, and resizable to accessibility tooling, including splits; Ghostty and iTerm2 are the only terminals that expose structure too (splits, tabs).
I described this as a v1 implementation that is primarily read-only. I plan on iterating and improving a11y interactions in future versions.
I tried to reproduce the issue: “I did try, but no dice so far.” FYI still haven’t reproduced this.
I noted that we already throttle secure input, so I don’t think the togging is the source of beach balls.
I’m wondering if secure input is just slow for some systems for some reason; it’s a macOS system feature.
Related: native macos app features, text input and keyboard handling, shortcuts and app intents