aboutsummaryrefslogtreecommitdiff
path: root/modules/external-open-lib.el
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-05-25 13:14:40 -0500
committerCraig Jennings <c@cjennings.net>2026-05-25 13:14:40 -0500
commit289ffc1324ca5d9c6e4ffddef41b94ff9a213572 (patch)
tree98bf318a3c6ac1fddad4486215d00cdf5548378e /modules/external-open-lib.el
parent85a69467e4d21bd66d3b22368033511e03eef8ba (diff)
downloaddotemacs-289ffc1324ca5d9c6e4ffddef41b94ff9a213572.tar.gz
dotemacs-289ffc1324ca5d9c6e4ffddef41b94ff9a213572.zip
feat(auto-dim): dim vterm windows by blending terminal colors
Window dimming via face-remap never reached vterm. The terminal resolves its own colors per cell while redrawing, so it bypasses the remapped faces, and agent and shell windows stayed bright when they lost focus. I advise vterm--get-color to blend each looked-up color toward the auto-dim faces whenever every window showing the buffer is dimmed. The foreground and background blend amounts are separate defcustoms (foreground stays more legible, background fades harder). After a dim-state change I force a full vterm repaint by briefly nudging the terminal size, because vterm only repaints the rows libvterm marked dirty. A post-command hook and a select-window advice cover the windmove and Shift-arrow focus paths that window-selection-change-functions misses. Tests cover the dimmed-buffer predicate, the color blend, the selection-change scheduling, and the auto-dim-before-repaint ordering.
Diffstat (limited to 'modules/external-open-lib.el')
0 files changed, 0 insertions, 0 deletions