aboutsummaryrefslogtreecommitdiff
path: root/modules/ai-term.el
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-07-02 09:43:55 -0400
committerCraig Jennings <c@cjennings.net>2026-07-02 09:43:55 -0400
commit4b53b52507faef662a8f670b4b80cbe24290de95 (patch)
treeabb6903c19336cf2e53f0aefb6ddc4c5b886a2f2 /modules/ai-term.el
parent8357eed1e4753b142cdda0e57e00260f2341443e (diff)
downloaddotemacs-4b53b52507faef662a8f670b4b80cbe24290de95.tar.gz
dotemacs-4b53b52507faef662a8f670b4b80cbe24290de95.zip
feat(ai-term): paint the agent accent dupre blue
Claude Code draws its accent (the bypass-permissions banner, borders, spinner) with xterm-256 palette codes, and the stock rose red is palette index 211. eat resolves those codes through a per-terminal face vector, so agent terminals now point index 211 at the new cj/ai-term-accent face (dupre blue #67809c) at creation. Every other eat terminal keeps the true palette. Per-project colors can later ride the same per-terminal mechanism.
Diffstat (limited to 'modules/ai-term.el')
-rw-r--r--modules/ai-term.el19
1 files changed, 19 insertions, 0 deletions
diff --git a/modules/ai-term.el b/modules/ai-term.el
index 7973f7aa..0774758e 100644
--- a/modules/ai-term.el
+++ b/modules/ai-term.el
@@ -115,6 +115,25 @@ fallback when `cj/--ai-term-last-size' is nil."
:type 'number
:group 'ai-term)
+(defface cj/ai-term-accent
+ '((t :foreground "#67809c"))
+ "Accent color for agent terminals, defaulting to dupre blue.
+Claude Code draws its accent (the bypass-permissions banner, borders,
+spinner) with xterm-256 palette colors; agent terminals point those
+palette entries at this face (see `cj/ai-term-accent-color-indices'),
+so the accent renders in this face's foreground instead of the stock
+rose red. Per-project colors later land as per-buffer overrides of
+the same palette entries."
+ :group 'ai-term)
+
+(defvar cj/ai-term-accent-color-indices '(211)
+ "The xterm-256 palette indices agent terminals repaint with the accent.
+211 (#ff87af, a rose pink) is Claude Code's accent as rendered through
+the 256-color palette -- confirmed empirically on the bypass-permissions
+banner. Add indices here if other accent elements surface in a
+different palette slot. Applied per terminal by
+`cj/--ai-term-apply-accent'; other eat terminals keep the true palette.")
+
;; Agent buffers ("agent [<project>]") are buried, not killed, by the
;; kill-all sweep (F1 / `cj/dashboard-only'). Register the family pattern so
;; every agent -- however and whenever created -- survives with its session.