Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for Kitty's Terminal graphics protocol #320

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

slarrain
Copy link

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.

While the added support for sixel is a neat addition, there are many
terminals that do not support it. Kitty is one of them. It supports it
own procol for terminal graphics. This commit adds support for that
protocol to rainbowstream.
@slarrain
Copy link
Author

A friendly reminder of this PR @orakaro

@umop3plsdn
Copy link

probably a no go huh?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants