Terminal color output not displaying as expected #9317

Closed
opened 2026-01-31 01:51:35 +00:00 by claunia · 3 comments
Owner

Originally created by @laballab on GitHub (Jun 29, 2020).

Environment

Windows build number: Microsoft Windows [Version 10.0.18363.900]
Windows Terminal version (if applicable): Version: 1.0.1401.0

All steps/tests are done in a git-bash profile in windows terminal. 

Steps to reproduce

I can consistently reproducing this issue by running k9s with invalid kubeconfig. K9s will output a red-colored warning regarding this which is not rendered properly on windows terminal.

Expected behavior

A colorful error message warning us about the invalid kubeconfig:
image

Actual behavior

Windows terminal is not rendering the color output properly:
image

Originally created by @laballab on GitHub (Jun 29, 2020). <!-- 🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨 I ACKNOWLEDGE THE FOLLOWING BEFORE PROCEEDING: 1. If I delete this entire template and go my own path, the core team may close my issue without further explanation or engagement. 2. If I list multiple bugs/concerns in this one issue, the core team may close my issue without further explanation or engagement. 3. If I write an issue that has many duplicates, the core team may close my issue without further explanation or engagement (and without necessarily spending time to find the exact duplicate ID number). 4. If I leave the title incomplete when filing the issue, the core team may close my issue without further explanation or engagement. 5. If I file something completely blank in the body, the core team may close my issue without further explanation or engagement. All good? Then proceed! --> # Environment ``` Windows build number: Microsoft Windows [Version 10.0.18363.900] Windows Terminal version (if applicable): Version: 1.0.1401.0 All steps/tests are done in a git-bash profile in windows terminal. ``` # Steps to reproduce I can consistently reproducing this issue by running k9s with invalid kubeconfig. K9s will output a red-colored warning regarding this which is not rendered properly on windows terminal. # Expected behavior A colorful error message warning us about the invalid kubeconfig: ![image](https://user-images.githubusercontent.com/12739256/86019757-ff9f2500-b9f4-11ea-97b9-fe894332579e.png) # Actual behavior Windows terminal is not rendering the color output properly: ![image](https://user-images.githubusercontent.com/12739256/86019602-cd8dc300-b9f4-11ea-9956-e3093d3592ed.png)
claunia added the Resolution-Duplicate label 2026-01-31 01:51:35 +00:00
Author
Owner

@laballab commented on GitHub (Jun 29, 2020):

It seems the color commands are being interpreted as utf-8 arrows for some reason.. It's strange this bug isn't present in the bash prompt as the same color commands are used there and the colors are rendered properly.

@laballab commented on GitHub (Jun 29, 2020): It seems the color commands are being interpreted as utf-8 arrows for some reason.. It's strange this bug isn't present in the bash prompt as the same color commands are used there and the colors are rendered properly.
Author
Owner

@DHowett commented on GitHub (Jun 29, 2020):

Huh, thanks for the report.

This is the same root cause as https://github.com/microsoft/terminal/issues/6634

More info at https://github.com/microsoft/terminal/issues/6634#issuecomment-647726408

/dup #6634
Unfortunately, this is an application bug ☹️

@DHowett commented on GitHub (Jun 29, 2020): Huh, thanks for the report. This is the same root cause as https://github.com/microsoft/terminal/issues/6634 More info at https://github.com/microsoft/terminal/issues/6634#issuecomment-647726408 /dup #6634 Unfortunately, this is an application bug ☹️
Author
Owner

@ghost commented on GitHub (Jun 29, 2020):

Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!

@ghost commented on GitHub (Jun 29, 2020): Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#9317