fatih/color

Docker container console support

Opened this issue · 1 comments

Does color support coloring docker's container console?

Using something like this color.Green("Database Connected!"), colors the output on window's terminal, but not docker's.
image

Must I do something special to make color work with Docker?

Other packages like GORM are capable of doing it;
image

I just did some testing and found something strange:

Using the code from https://pkg.go.dev/github.com/fatih/color

c := color.New(color.FgCyan)
c.Println("Prints cyan text")

c.DisableColor()
c.Println("This is printed without any color")

c.EnableColor()
c.Println("This prints again cyan...")

I get the following result:
image

All the code snippets on your webpage, above the one displayed on my post, don't color docker's console