Skip Kitty graphics detection for WezTerm #7

Closed
opened 2026-03-03 13:30:38 -08:00 by kahliburke · 2 comments
kahliburke commented 2026-03-03 13:30:38 -08:00 (Migrated from github.com)

WezTerm supports sixel but not Kitty graphics. However it appears to respond to the Kitty graphics protocol query in a way that causes misdetection, which previously caused shm segment leaks.

WezTerm sets TERM_PROGRAM=WezTerm, so we can check that and skip the Kitty graphics detection entirely, defaulting to sixel.

WezTerm supports sixel but not Kitty graphics. However it appears to respond to the Kitty graphics protocol query in a way that causes misdetection, which previously caused shm segment leaks. WezTerm sets `TERM_PROGRAM=WezTerm`, so we can check that and skip the Kitty graphics detection entirely, defaulting to sixel.
eschnett commented 2026-03-03 15:12:29 -08:00 (Migrated from github.com)

I tried the branch fix/7-skip-kitty-for-wezterm, and it corrects both problems for me: There is no memory leak, and the sixel graphics in demos/test_sixel_diag.jl are visible. Thanks!

I tried the branch `fix/7-skip-kitty-for-wezterm`, and it corrects both problems for me: There is no memory leak, and the sixel graphics in `demos/test_sixel_diag.jl` are visible. Thanks!
eschnett commented 2026-03-04 08:39:18 -08:00 (Migrated from github.com)

FYI: I found why Kitty graphics are not working with WezTerm: https://github.com/wezterm/wezterm/issues/7631

FYI: I found why Kitty graphics are not working with WezTerm: https://github.com/wezterm/wezterm/issues/7631
Sign in to join this conversation.
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
kahliburke/Tachikoma.jl#7
No description provided.