-
Notifications
You must be signed in to change notification settings - Fork 331
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
Preview window colors #1743
Comments
I seem to have the same issue using I describe it as slight blue and/or red tint when previewing with This tint is not present when using My |
I investigated a bit more on Windows. There, the color tint was a problem for |
Back on Linux, I noticed the following behavior regarding
In both these cases When I explicitly set So in the end, my workaround is: alias lf='TERM=xterm-256color lf' # fix bat color tint GrzegorzKozub/dotfiles@39de43a Specific to |
@GrzegorzKozub Thank you for investigating. It sounds like the tint effect you describe is due to whether That being said, I don't think it makes sense to make any changes to For your workaround, maybe it makes more sense to define |
You see when we take Here's a summary of what fixes the colors when previewing in
So clearly something to do with |
Actually, it's good to be verbose. From the sounds of your description it seems like Are you able to reproduce the tint issue if you:
And if so, can you also provide a minimal hexdump of that file. Ideally the reproduction steps can be minimized to just having a single BTW |
Removed all the Did Then, used Don't quite follow your request regarding the hexdump, sorry :) |
You need to use the same settings for bat --force-colorization --paging=never --plain dnd.sh > bat-output.txt Simply As for the hexdump, don't worry about it, just upload the |
Ah, of course. Now we're getting somewhere. The updated |
OK so the format of Click to expand
This contains true color escape sequences in the form However when You can probably test this by using One final thing I'm curious about - is this a regression introduced from r31 to r32, or has this issue always been the case? I don't recall any recent changes that might affect this, but we do bump |
I tracked it down to commit 0c02239 |
I've further tracked the problem to commit gdamore/tcell@216e30a |
As it turns out there was a pull request gdamore/tcell#719 that fixes the problem |
OK, closing this as a duplicate of #1668 then |
When using bat to preview a file with syntax highlighting, lf's preview window uses different colors compared to bat. This started happening with r32.
The text was updated successfully, but these errors were encountered: