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

Incorrect SGR code in 24-bit terminal #41

Open
1 task done
gnachman opened this issue Aug 8, 2022 · 1 comment
Open
1 task done

Incorrect SGR code in 24-bit terminal #41

gnachman opened this issue Aug 8, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@gnachman
Copy link

gnachman commented Aug 8, 2022

What happened?

  1. Install iTerm2 3.5.0beta6
  2. Run ugit
  3. This happens: https://gitlab.com/gnachman/iterm2/-/issues/10510

The 24-bit color SGR code is missing a CSI leader, causing part of the sequence to be printed to the screen.

Ugit Version

v5.1 (Latest)

Bash Version

Bash >= 5.0

Git Version

git version 2.28.0

What OS are you seeing the problem on?

MacOS

Terminal Name

iTerm2 3.5.0beta6

Code of Conduct

  • I agree to follow this project's Code of Conduct
@gnachman gnachman added the bug Something isn't working label Aug 8, 2022
@gnachman
Copy link
Author

gnachman commented Aug 8, 2022

Update: I did some more research. It's actually a 256-color code, not 24-bit, and it seems like the bug is with fzf not parsing it properly. ugit is producing correct output. The problem is with fzf 0.32.1.

It might be worth avoiding 256 colors with fzf. Considering fzf takes --ansi that implies very limited support for control sequences.

I filed junegunn/fzf#2913 to follow up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants