I added a non-standard, presently undocumented extension to OSC 133 for bash.
The extension is redraw=last.
Bash only supports redrawing the final prompt line.
When redraw=last is present, Ghostty will only clear the LAST prompt line on resize.
Only bash needs this extension.
I document Ghostty’s terminal behavior and compatibility decisions, including development investigations, input handling, and how I approach behavior that other terminals leave unspecified.
On 2023-12-06 16:14 UTC, I announced Ghostty devlog 005.
- In that devlog, I introduced the terminal inspector, discussed Asian language input challenges, and showcased custom shaders.
I described my effort to carefully audit and document all of xterm's behavior against Ghostty.
I linked Ghostty devlog 005 at https://t.co/JAnJcLBATE.
On 2024-07-01, I considered whether a physical right-click should open the context menu while a terminal program is capturing mouse events.
When mouse capture is off, I decided that right-click and control-click both show the native context menu.
When mouse capture is on, I decided that right-click sends a right-click event, while control-click sends a control+left-click event.
With mouse capture on, shift+right-click or shift+control-click shows the context menu; shift is the configurable key bind to escape mouse capture.
I said iTerm2 never sends the right-click event, as far as I can tell.
I described control+click on macOS as a shortcut to show context menus, not a right-click mouse event.
In my comparison, iTerm shows the context menu for control-click, configurable, while Native terminal sends ctrl+left-click.
My comparison covered 2 terminals: iTerm and the built-in Terminal, the only macOS terminals I could find supporting both native context menus and mouse events.
On 2025-02-12, I described a weird corner of terminal behavior as causing real subpar user problems and being handled extremely inconsistently across terminal emulators.
I said the terminal comparison and problem description were in screenshots.
- I identified Foot, WezTerm, Kitty, Tmux, and iTerm2 as terminals linked in the discussion.
I said Alacritty also has the issue, but I don't report bugs to its maintainers anymore; I called them assholes and said their terminal can burn.
I said the behavior is wholly unspecified, so maintainers choose how to interpret it; I did my best to justify matching libvte.
On 2025-12-16, I praised linked work as high quality reverse engineering with good writing.
I was positive that the reverse engineering work would eventually lead to important behaviors in Ghostty.
I linked the reverse engineering work at https://t.co/PRpd94kc2w.
Related: terminal input and events, ghostty adoption and recommendations, unicode terminal behavior