-
Notifications
You must be signed in to change notification settings - Fork 98
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
Do not display special characters in dos prompt #98
Comments
Ah, those are the colors. We should look for a way to detect when the terminal doesn't support them. As a workaround you can disable colors completely by adding Which version of Windows are you using? In newer versions ANSI colors should be turned on by default, I think. Maybe the instructions under "Enabling ANSI colors in older versions of Windows" on https://ss64.com/nt/syntax-ansi.html can fix it? |
Colors can also be disabled via the # current session only
set no_color=1
# persist across sessions
setx no_color=1 You could also use Windows Terminal which supports ANSI colors |
I think https://github.com/BurntSushi/termcolor might do the trick. ripgrep uses it, so I'd be interested to know if it prints colors in the outdated DOS prompt that xh messes up. (If it just switches off colors then that would be progress too.) |
xh v0.9.1 has been released which improves color support in windows 🎉 |
Expected: Not to display special characters when displaying json
Actual: Displays special characters.
No special characters with curl
The text was updated successfully, but these errors were encountered: