You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Assumption about setting colors in output is not valid; doesn't work in cmd on windows #363
We have an assumption in our code that we can output control characters to change colors, and it's not really valid.
We probably have to adjust the places that we output control characters to respect the terminal capabilities of the current terminal. Alternately we could do it by operating system.
What you expected to happen:
I don't expect to see raw control characters.
How to reproduce it (as minimally and precisely as possible):
Do a ddev list against a running system on windows cmd.
Added to v0.18.0. Although there is apparently some support, it's my expectation that we'll have to just turn off colors to get suitable behavior in all windows "terminals".
Activity
beeradb commentedon Jul 7, 2017
https://github.com/fatih/color is the package we use and it claims to have windows support. Fixing this may be as easy as updating the package.
Their examples are a bit different from our usage, though, so there may still be some adjustment needed.
beeradb commentedon Jul 7, 2017
Just adding this: it looks like it was merged in February of this year, which is definitely after we added the package to vendor. fatih/color#61
rfay commentedon Jul 9, 2017
I may have been too fixated on ddev list - it appears to me that some other things are working. For example, the success after db import is greenish.
rfay commentedon Mar 7, 2018
This is pretty ugly for our poor Windows users. Time to take a look at it. Moving it into the sprint for prioritization.
rfay commentedon Apr 13, 2018
rfay commentedon Apr 16, 2018
Added to v0.18.0. Although there is apparently some support, it's my expectation that we'll have to just turn off colors to get suitable behavior in all windows "terminals".
Use colors on windows instead of funny characters, fixes ddev#363
Use colors on windows instead of funny characters, fixes ddev#363