draft-classic
draft-classic copied to clipboard
having trouble seeing draft up UI colors
Also on Windows the colors don't show up at all. The spinning wheel works great though!
C:\Users\bacongobbler\go\src\github.com\Azure\draft\examples\java>draft up
[94;40;4mDraft Up Started[0m: '[36;40mintended-badger[0m'
[36;40mintended-badger[0m: [92;40;1mBuilding Docker Image[0m: SUCCESS ⚓ (48.0857s)
[36;40mintended-badger[0m: [92;40;1mPushing Docker Image[0m: SUCCESS ⚓ (23.0290s)
[36;40mintended-badger[0m: [92;40;1mReleasing Application[0m: SUCCESS ⚓ (0.4348s)
For what it's worth, ^^ only appears when using the default command prompt. It looks fine when using cmder.
For what it's worth, I've found 2 ways to do this (but it's been awhile so there must be a better way now)...
- Have an interface for messaging and something to display for *nix or windows. On windows use the instance for that and just skip the colors. Build flags mean you can skip building the display you don't need. This is what glide does.
- There are libraries for multi-platform colors. I either didn't like the size or license when I last looked at these.
If you find a good way to do this I'd love to see it.
This is at least partly addressed by #721.