cmux/Resources/terminfo-overlay
Lawrence Chen e9c5917c66
Fix zsh autosuggestions shared history in cmuxterm (#26)
- Restore real ZDOTDIR early in zsh startup so HISTFILE uses user history\n- Preserve user ZDOTDIR without treating Ghostty injected ZDOTDIR as user\n- Add regression tests and terminfo overlay for bright colors
2026-02-09 02:35:20 -08:00
..
67 Fix zsh autosuggestions shared history in cmuxterm (#26) 2026-02-09 02:35:20 -08:00
78 Fix zsh autosuggestions shared history in cmuxterm (#26) 2026-02-09 02:35:20 -08:00
README.md Fix zsh autosuggestions shared history in cmuxterm (#26) 2026-02-09 02:35:20 -08:00

cmuxterm terminfo overlay

cmuxterm ships Ghostty's xterm-ghostty terminfo entry, but the embedded renderer in cmuxterm has differed from Ghostty's app renderer in how it treats the "bright" SGR 90-97/100-107 sequences.

This overlay patches the terminfo capabilities so that tput setaf 8 (and similar "bright" colors) uses 256-color indexed sequences (38;5;<n>m / 48;5;<n>m) rather than SGR 90-97/100-107. This avoids relying on bright SGR handling and fixes zsh-autosuggestions (default fg=8) visibility issues in cmuxterm.

The build phase Copy Ghostty Resources overlays this directory onto the app bundle's Contents/Resources/terminfo after copying Ghostty's resources.