- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for NO_COLOR (0.28 sec)
-
staging/src/k8s.io/cli-runtime/pkg/printers/terminal.go
return false } // https://en.wikipedia.org/wiki/Computer_terminal#Dumb_terminals if os.Getenv("TERM") == "dumb" { return false } // https://no-color.org/ if _, nocolor := os.LookupEnv("NO_COLOR"); nocolor { return false } // On Windows WT_SESSION is set by the modern terminal component. // Older terminals have poor support for UTF-8, VT escape codes, etc.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Oct 11 15:04:11 UTC 2023 - 2.1K bytes - Viewed (0) -
cmd/common-main.go
orchestrated = IsKubernetes() || IsDocker() ) func init() { if !term.IsTerminal(int(os.Stdout.Fd())) || !term.IsTerminal(int(os.Stderr.Fd())) { color.TurnOff() } if env.Get("NO_COLOR", "") != "" || env.Get("TERM", "") == "dumb" { color.TurnOff() } if runtime.GOOS == "windows" { if mousetrap.StartedByExplorer() { fmt.Printf("Don't double-click %s\n", os.Args[0])
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Thu May 30 11:58:12 UTC 2024 - 31.5K bytes - Viewed (0)