From 72ce9ea06b64551f3a99147695c29631022ded8f Mon Sep 17 00:00:00 2001 From: cashmere Date: Sun, 26 Apr 2026 20:41:21 +0200 Subject: fix(sixel): detect Windows Terminal and route GIFs through image pipeline Windows Terminal does not expose a stable `TERM' value, so the previous sixel-detect check missed it. Accept the `WT_SESSION', `WT_PROFILE_ID' and `WT_WINDOWID' environment markers it injects into every session. Also add `gif' to `kitty-gfx--image-file-p' so GIF files are routed through the image pipeline. Animation is still not supported -- only the first frame is rendered -- but that is better than dropping them on the floor. AGENTS.md: list Windows Terminal under supported sixel terminals and soften the GIF wording from "not supported" to "first frame only". Closes #6. Co-authored-by: Tim Felgentreff --- AGENTS.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'AGENTS.md') diff --git a/AGENTS.md b/AGENTS.md index bfd618b..91c3644 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -32,7 +32,7 @@ emacs -Q -batch -l kitty-graphics.el -f kill-emacs No automated test framework. All testing is manual/interactive and requires a supported terminal (Kitty, WezTerm, Ghostty for Kitty backend; -foot, Konsole, xterm, mlterm, mintty for Sixel backend). +foot, Konsole, xterm, mlterm, mintty, Windows Terminal for Sixel backend). The `tests/` directory contains `test-kitty-gfx.org`, `test-image.png`, and `test-document.pdf` for manual testing -- use these rather than creating new test files. @@ -250,8 +250,8 @@ Key design differences from images: scrolling because tmux's cell buffer is not pixel-aware (upstream limit). Kitty graphics passthrough is still unimplemented -- tracked separately. - **Limitation**: Each mode needs explicit `:around` advice integration -- **Limitation**: GIF files are not supported (multi-frame conversion issues, - no animation support in terminal) +- **Limitation**: GIF files render only the first frame -- no animation + support in terminal (multi-frame conversion not implemented) - **Limitation**: Sixel is 256 colors (vs truecolor on Kitty), stateless (re-emits on scroll) - **Done**: LaTeX fragment preview in org-mode (#3) - **Done**: doc-view / pdf-view-mode integration (#4) -- cgit v1.3.1