Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
See also d0902a8 (switch from plink to zuo, 2024-10-18): after that switch led to [1], there have continued to be problems (such as htop not showing colors because the `pairs` attribute was interpreted as `0`). While upgrading to macOS Sonoma or beyond should come with new curses that makes things work again ([2], [3]), at the moment my current hardware is stuck on Monterey (and I don't relish trying OpenCore Legacy Patcher [4] right now). Instead, try _yet another hack_ [3]: decompile the tmux-256color entry with a modern curses, patch it, and recompile with the system curses. This appears to be completely working for tmux-256color, though does require the interesting workaround of using TERMINFO_DIRS (see `man infocmp` and compare with `man $(brew --prefix ncurses)/share/man/man1/infocmp.1m`). The post [3] also explains most of the details, but comes with another warning [5]. Finally, I noticed that somewhere in the process my alacritty terminfo had broken: `infocmp -x` produces similarly odd byte sequence [6] that turns on strikethrough (part of a `| xxd` dump): 000000a0: 206e 7063 2c20 7865 6e6c 2c20 1b5b 396d npc, xenl, .[9m The primary effect seems to be that italics were disabled. I can't find a way to compile the GitHub-provided entry that doesn't have this bug, but I can fix the italic sequences in Vim. [1]: https://superuser.com/a/1859217/990010 [2]: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/t/tmux.rb#L59C6-L59C62 [3]: https://gpanders.com/blog/the-definitive-guide-to-using-tmux-256color-on-macos/ [4]: https://dortania.github.io/OpenCore-Legacy-Patcher/ [5]: tmux/tmux#2262 (comment) [6]: https://superuser.com/q/1858313/990010
- Loading branch information