Documentation ¶
Index ¶
- func Getenv(name string, def ...string) string
- func HasShellEnv(shell string) bool
- func IsConsole(out io.Writer) bool
- func IsLinux() bool
- func IsMSys() bool
- func IsMac() bool
- func IsSupport256Color() bool
- func IsSupportColor() bool
- func IsSupportTrueColor() bool
- func IsWin() bool
- func ParseEnvValue(val string) (newVal string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsSupportColor ¶
func IsSupportColor() bool
IsSupportColor check current console is support color.
Supported:
linux, mac, or windows's ConEmu, Cmder, putty, git-bash.exe
Not support:
windows cmd.exe, powerShell.exe
func IsSupportTrueColor ¶ added in v0.2.5
func IsSupportTrueColor() bool
IsSupportTrueColor render. IsSupportRGBColor
func ParseEnvValue ¶ added in v0.1.7
ParseEnvValue parse ENV var value from input string
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.