orakaro / rainbowstream

A smart and nice Twitter client on terminal written in Python.
https://github.com/orakaro/rainbowstream
MIT License
3.54k stars 260 forks source link

Add support for Kitty's Terminal graphics protocol #320

Open slarrain opened 2 years ago

slarrain commented 2 years ago

While the added support for sixel on #295 is a neat addition, there are many terminals that do not support it. Kitty is one of them. It supports its own procol for terminal graphics. This PR adds support for that protocol to rainbowstream.

For it to work, you have to be on a Kitty terminal and IMAGE_ON_TERM must be set to True. If it is set to True, but you are not on Kitty, it will follow the default ASCII display. If it is set to sixel, it won't work on Kitty because it doesn't support it.

Put of the #295 was moved higher up because a couple of variables were being used on both Kitty and Sixel.

It uses a package called pixcat that has been added to the setup.py file.

Tested with Kitty and other terminals on Linux.

slarrain commented 2 years ago

A friendly reminder of this PR @orakaro

umop3plsdn commented 1 year ago

probably a no go huh?