Closed SebastienBoisard closed 6 years ago
cc @mattn
cmd.exe does not handle escape sequence in default. Please use Output.
package main
import (
"github.com/fatih/color"
"fmt"
)
func main() {
color.Red("1. We have red")
fmt.Fprintln(color.Output, color.RedString("2. We have red"))
}
Great, it works fine. Thanks @mattn !
Hi @fatih
Thanks a lot for your color package. It works great on Linux, but there's a problem under Windows.
The first line is printed in red, but not the second one:
I'm using the default shell (c:\Windows\system32\cmd.exe) on Windows 7.