mosaic icon indicating copy to clipboard operation
mosaic copied to clipboard

Support Kitty graphics protocol

Open EpicDima opened this issue 11 months ago • 6 comments

It seems that displaying images in the terminal is not the most necessary thing, but it would be cool to have support for this.

https://sw.kovidgoyal.net/kitty/graphics-protocol/

EpicDima avatar Jan 04 '25 23:01 EpicDima

Yes, this is planned. I also confirmed with Colin before Coil 3 went stable that will be able to use its core for image loading.

JakeWharton avatar Jan 05 '25 00:01 JakeWharton

There's a lot of "draw the rest of the owl" here, but we'll get there!

JakeWharton avatar Jan 05 '25 00:01 JakeWharton

One problem is that there's no way to query for support of this protocol. So we have to resort to opt-in flags and/or terminal detection. This just came up today elsewhere for someone wanting to query for support (in an unrelated context).

JakeWharton avatar Jan 05 '25 00:01 JakeWharton

Yes, you can query support for it https://sw.kovidgoyal.net/kitty/graphics-protocol/#querying-support-and-available-transmission-mediums

kovidgoyal avatar Jan 05 '25 00:01 kovidgoyal

Thanks! I hadn't actually looked myself, and was going off that Ghostty issue (that you also replied to). Glad to see it's the same basic mechanism as keyboard.

JakeWharton avatar Jan 05 '25 00:01 JakeWharton

Marking as blocked. While probably not strictly true (I'm not actually sure what we can do here with Mordant), we really want #579 first where this should become trivial.

JakeWharton avatar Jan 05 '25 05:01 JakeWharton