python-imgcat icon indicating copy to clipboard operation
python-imgcat copied to clipboard

support kitty's protocol

Open teto opened this issue 6 years ago • 6 comments

wow that looks dope, would it be possible to support kitty (a cross platform python terminal) as well ? it seems to have its own format too https://sw.kovidgoyal.net/kitty/graphics-protocol.html (the link provides a python function to use the protocol).

Another implementation reference could be: https://pypi.org/project/pixcat/#description

teto avatar Sep 26 '19 07:09 teto

Yes, I plan to support kitty and sixel protocols so that it can work with another terminal emulators than iTerm2. Stay tuned!

wookayin avatar Oct 04 '19 16:10 wookayin

tmux is very stubborn against supporting image display (either in iTerm2 or kitty). Unfortunately, there is no way to display images inside tmux. See: https://github.com/kovidgoyal/kitty/issues/413

wookayin avatar Mar 16 '20 05:03 wookayin

Using a very complicated tmux passthrough sequence, I managed to make images rendered on kitty, but there is some bugs on clearing up graphics. See kitty#2457 for details.

wookayin avatar Mar 21 '20 22:03 wookayin

I dont use tmux much, would that work better without tmux on a plain kitty ?

teto avatar Mar 21 '20 22:03 teto

@teto Yes I agree, will push an early version (without or with tmux) soon.

wookayin avatar Mar 21 '20 23:03 wookayin

tmux has a passthrough option these days. It makes images display fine inside of tmux inside kitty:

# .tmux.conf
set -gq allow-passthrough on

davvid avatar Feb 17 '24 23:02 davvid