aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHarshavardhana <harsha@harshavardhana.net>2016-02-12 09:13:08 +0000
committerHarshavardhana <harsha@harshavardhana.net>2016-02-12 09:13:08 +0000
commit250120a4f09be9cf9eb01ae572a069f83b5db657 (patch)
tree6e6a0f315af915e0db0cbd57d104d165716a6bf0
parent9aae6aaa22315390f03959adca2c4d395b02fcef (diff)
downloadcolour-250120a4f09be9cf9eb01ae572a069f83b5db657.tar.gz
colour-250120a4f09be9cf9eb01ae572a069f83b5db657.tar.bz2
Remove last references of unused ansicolor package.
-rw-r--r--README.md2
-rw-r--r--color_test.go6
2 files changed, 3 insertions, 5 deletions
diff --git a/README.md b/README.md
index d6fb06a..cb77aea 100644
--- a/README.md
+++ b/README.md
@@ -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(" ")