Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var IsSmartTerminal = func(w io.Writer) bool { if !IsTerminal(w) { return false } if os.Getenv("TERM") == "dumb" { return false } if runtime.GOOS == "windows" && os.Getenv("WT_SESSION") == "" { return false } return true }
IsSmartTerminal returns true if the writer w is a terminal AND we think that the terminal is smart enough to use VT escape codes etc.
Functions ¶
func IsTerminal ¶
IsTerminal returns true if the writer w is a terminal.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.