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

VT control sequences based text color control is not supported on windows conhost.exe console #14

Open
everything411 opened this issue Jan 19, 2025 · 2 comments
Labels
bug Something isn't working

Comments

@everything411
Copy link

Describe the bug

color support broken on conhost.exe console, reproduced on both Windows 10 22H2 and Windows 11 24H2.

To Reproduce
Steps to reproduce the behavior:

  1. Run conhost.exe
  2. Run bitsrun.exe status
  3. See error

Expected behavior
right color or no color, not bad output like │ �[32m55.53 GiB�[39m │ �[33m2 weeks�[39m │ �[36m10.00�[39m │ �[35m0.00�[39m │
Screenshots

Image

Additional context
Windows Terminal is not affected. Not all outputs are affected.

@everything411 everything411 added the bug Something isn't working label Jan 19, 2025
@spencerwooo
Copy link
Owner

Unfortunately colored output is supported with owo-colors. I suggest applying the NO_COLOR=1 environment variable when calling bitsrun in terminals without proper ANSI escape code support.

@spencerwooo
Copy link
Owner

FYI, owo-colors's version constraint is defined here:

owo-colors = { version = "3", features = ["supports-colors"] }

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