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.
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 toTrue
. If it is set toTrue
, but you are not on Kitty, it will follow the default ASCII display. If it is set tosixel
, 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 thesetup.py
file.Tested with Kitty and other terminals on Linux.