osext

package
v0.1.40 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 14, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsGithubActions

func IsGithubActions() bool

IsGithubActions env

func IsLinux

func IsLinux() bool

IsLinux returns true if the current OS is linux.

func IsMac

func IsMac() bool

IsMac returns true if the current OS is mac.

func IsStdIsTerminal

func IsStdIsTerminal() bool

IsStdIsTerminal os.Stdout is terminal

func IsSupport256Color

func IsSupport256Color() bool

IsSupport256Color render

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

func IsSupportTrueColor() bool

IsSupportTrueColor render. IsSupportRGBColor

func IsTerminal

func IsTerminal(fd uintptr) bool

func IsWSL

func IsWSL() bool

IsWSL returns true if the current environment is WSL https://github.com/Microsoft/WSL/issues/423#issuecomment-221627364

func IsWindows

func IsWindows() bool

IsWindows returns true if the current OS is windows.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL