Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
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. |




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