draft-classic icon indicating copy to clipboard operation
draft-classic copied to clipboard

having trouble seeing draft up UI colors

Open michelleN opened this issue 8 years ago • 4 comments

draftup

michelleN avatar Sep 01 '17 17:09 michelleN

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)

bacongobbler avatar Sep 15 '17 03:09 bacongobbler

For what it's worth, ^^ only appears when using the default command prompt. It looks fine when using cmder.

draftup

bacongobbler avatar Sep 15 '17 18:09 bacongobbler

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)...

  1. 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.
  2. 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.

mattfarina avatar Sep 15 '17 18:09 mattfarina

This is at least partly addressed by #721.

itowlson avatar Jun 01 '18 01:06 itowlson