No tmux support (even with passthrough enabled) (#2)
sportmacher opened 2 months ago

Reported by: LionyxML (Reddit)

The package does not work inside tmux, even with the passthrough option enabled (set -g allow-passthrough on). Kitty graphics protocol escape sequences need to be wrapped in tmux's passthrough DCS sequence (\ePtmux;...\e\\) to reach the outer terminal.

Investigation needed:

  • Detect tmux via $TMUX environment variable
  • Wrap APC sequences in tmux DCS passthrough: \ePtmux;\e_G...\e\\\e\\
  • Terminal detection (kitty-gfx--supported-p) needs to check the outer terminal, not tmux's $TERM
  • May also need to handle screen/tmux $TERM values

References:

issue 1/1
Type
Improvement
Priority
Major
Assignees
Not assigned
Issue Votes (0)
Watchers (1)
Reference
cashmere/kitty-graphics#2
Please wait...
Connection lost or session expired, reload to recover
Page is in error, reload to recover