Wrong colors, lots of â" characters on Windows
#1385
Comments
|
Not too sure about the colors yet, but the random characters where the grid separator should be looks like a unicode decoding issue. A couple questions: Does your font support unicode characters? Is your pager Are you using Git Bash/MSYS2/Cygwin, or the native Windows environment? What happens if you use |
|
Yes, my font supports Unicode characters. I'm using Starship and I'm unsure what my pager is. I don't have I'm using a native Windows environment, running Powershell 7.0.3. I notice this isn't the latest version, so I'll upgrade to Powershell 7.1.0 to see if that fixes things at all. Edit: Powershell 7.1.0 doesn't change things. If I use |
|
I've removed the However, it may still be considered a problem that the presence of |
|
Thanks for figuring this out and posting the explanation here. We could test for very old versions of less (11 years old) and potentially skip them or print an error (on Windows). We already check the version of |
|
To be fair, this isn't the first time I've been bitten by random things in the There appeared to be a check already, but it wasn't getting triggered. I agree that it's a good first issue. |
|
Hello, I have a similar issue :s As you can see below: And my settings:
Is there an alternative to less as pager? Thank you for the help! |
|
That is pretty weird... Recent versions of
We don't officially support other pagers, but we also don't stop people^1 from using other pagers if they can find a suitable one. I don't know of any alternatives for Windows, but I can tell you the features that it would need to support:
^1. Barring a few exceptions which are known to not work: Lines 101 to 107 in d36b091 |
|
Thank you very much. So I found the solution, obviously it's an encoding problem, but where? Which put me on the way is that inside the Powershell Console (GUI) (v7.1.1), I don't have any problems. So,
So to fix it, put the below code inside your Powershell
For more information, read this and this. EDIT: You can also use |
|
Ok, is there anything left to do here? Should the findings be documented somewhere? |








What version of
batare you using?bat 0.16.0
Describe the bug you encountered:
Output is unreadable, and contains a lot of garbage.
What did you expect to happen instead?
Usable output
How did you install
bat?cargo install batTerminal: Windows Terminal 1.3.2651.0
Font: CaskaydiaCove NF
Codepage: 437
Shell: PowerShell 7.0.3
Windows Build 2004
The text was updated successfully, but these errors were encountered: