Terminal background: decide 24-bit color like tcell, and log why
The check only looked at COLORTERM, but tcell also draws 24-bit color for terminals whose description has it (xterm-ghostty, xterm-kitty), so in Ghostty on macOS without COLORTERM the background was never used. Use tcell's rules, and always log which background is used and why. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019reK4DUGYqDUjniWYJvwUW
This commit is contained in:
+2
-1
@@ -5,7 +5,8 @@
|
||||
- **The terminal's own background:** the panes used color 0 of the terminal's palette ("black"),
|
||||
which many color themes set to a grey lighter than their background (e.g. Catppuccin), so the
|
||||
whole program looked washed out and grey text almost disappeared. The terminal is now asked for
|
||||
its background color at startup and that is used (with 24-bit color and a dark background).
|
||||
its background color at startup and that is used (with 24-bit color and a dark background). The
|
||||
Log says which background is used and why.
|
||||
- **Smooth scrolling on huge terminals:** while an arrow key is held, the poster waits until the
|
||||
selection rests (120 ms). Every poster rewrites all of its cells, which on a terminal zoomed far
|
||||
out was more output per step than the terminal could draw, so moving through a list lagged.
|
||||
|
||||
Reference in New Issue
Block a user