diff options
| -rw-r--r-- | README.md | 2 | ||||
| -rw-r--r-- | color_test.go | 6 |
2 files changed, 3 insertions, 5 deletions
@@ -143,7 +143,7 @@ c.Println("This prints again cyan...") ## Credits * [Fatih Arslan](https://github.com/fatih) - * Windows support via @shiena: [ansicolor](https://github.com/shiena/ansicolor) + * Windows support via @mattn: [colorable](https://github.com/mattn/go-colorable) ## License diff --git a/color_test.go b/color_test.go index 4289f88..8028535 100644 --- a/color_test.go +++ b/color_test.go @@ -3,10 +3,9 @@ package color import ( "bytes" "fmt" - "os" "testing" - "github.com/shiena/ansicolor" + "github.com/mattn/go-colorable" ) // Testing colors is kinda different. First we test for given colors and their @@ -146,8 +145,7 @@ func TestNoColor(t *testing.T) { func TestColorVisual(t *testing.T) { // First Visual Test - fmt.Println("") - Output = ansicolor.NewAnsiColorWriter(os.Stdout) + Output = colorable.NewColorableStdout() New(FgRed).Printf("red\t") New(BgRed).Print(" ") |
