fix(zsh): make chafa draw images inside tmux #63

Merged
jmz merged 1 commit from fix/chafa-in-tmux into master 2026-11-25 11:40:04 +00:00
Owner

Inside tmux, chafa <image> printed nothing in Ghostty. tmux 3.8 advertises sixel (client_termfeatures includes sixel), so chafa sends sixel images, and Ghostty doesn't support sixel.

This adds alias chafa='chafa -f symbols' when $TMUX is set, so chafa draws with text cells there. Outside tmux, chafa already picks Ghostty's kitty graphics by itself.

Tested: chafa -f symbols ~/Downloads/1.jpg in a tmux pane draws the image; plain chafa there prints blank lines.

🤖 Generated with Claude Code

Inside tmux, `chafa <image>` printed nothing in Ghostty. tmux 3.8 advertises sixel (`client_termfeatures` includes `sixel`), so chafa sends sixel images, and Ghostty doesn't support sixel. This adds `alias chafa='chafa -f symbols'` when `$TMUX` is set, so chafa draws with text cells there. Outside tmux, chafa already picks Ghostty's kitty graphics by itself. Tested: `chafa -f symbols ~/Downloads/1.jpg` in a tmux pane draws the image; plain `chafa` there prints blank lines. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
fix(zsh): make chafa draw images inside tmux
All checks were successful
ci / gate (pull_request) Successful in 1m11s
6420a2726b
tmux 3.8 advertises sixel support, so chafa sends sixel images; Ghostty
can't draw sixel and shows nothing. Inside tmux, alias chafa to its
text-cell mode (-f symbols). Outside tmux chafa already picks Ghostty's
kitty graphics.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
jmz merged commit 6420a2726b into master 2026-11-25 11:40:04 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
public/dotfiles-public!63
No description provided.