Files
delve/terminal/terminal_other.go
Yasuhiro Matsumoto f6836cbcf1 terminal: Use go-colorable
Add fallback to display colors on Windows.
2016-04-18 12:49:14 -07:00

15 lines
239 B
Go

// +build !windows
package terminal
import (
"io"
"os"
)
// getColorableWriter returns two values. First is Writer supported colors.
// If return nil, colors will be disabled.
func getColorableWriter() io.Writer {
return os.Stdout
}