14 lines
225 B
Go
14 lines
225 B
Go
![]() |
// +build !windows
|
||
|
|
||
|
package terminal
|
||
|
|
||
|
import (
|
||
|
"os"
|
||
|
"strings"
|
||
|
)
|
||
|
|
||
|
// supportsEscapeCodes returns true if console handles escape codes.
|
||
|
func supportsEscapeCodes() bool {
|
||
|
return strings.ToLower(os.Getenv("TERM")) != "dumb"
|
||
|
}
|