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

[kitty/gif] provide auto detection of background for perception of transparency #111

Open
acxz opened this issue Sep 19, 2022 · 1 comment
Labels
compatibility Compatibility (e.g. terminal quirks) feature New feature or request

Comments

@acxz
Copy link

acxz commented Sep 19, 2022

For the kitty terminal, in particular, when viewing a gif a background color needs to be provided to ensure consequent frames are not overlayed ontop of one another.

For gifs that are transparent, this breaks the transparency. One way to recover the perception of transparency is to automatically determine the background of the current terminal and use that color as the background of the gif that is displayed.

Note this issue only appears when displaying gifs in the kitty terminal.

This could be implemented as the following option: --bg auto.

Alternatives: timg solves this issue with the same flag -b auto, which they keep as default.

See the conversation following this comment for more rational/info/disc.

@hpjansson
Copy link
Owner

Progress:

  • c3f932b adds the necessary seqs to the backend.
  • df1fdf0 adds response parsing.

I still need to write a parser class that can separate an input stream into seqs and regular text input, and a terminal class to do asynchronous I/O.

@hpjansson hpjansson added the feature New feature or request label Jan 31, 2023
@hpjansson hpjansson added the compatibility Compatibility (e.g. terminal quirks) label Jul 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compatibility Compatibility (e.g. terminal quirks) feature New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants