MCPcopy Index your code
hub / github.com/cli/cli / IsTerminal

Function IsTerminal

internal/update/update.go:183–185  ·  view source on GitHub ↗

IsTerminal determines if a file descriptor is an interactive terminal / TTY.

(f *os.File)

Source from the content-addressed store, hash-verified

181
182// IsTerminal determines if a file descriptor is an interactive terminal / TTY.
183func IsTerminal(f *os.File) bool {
184 return isatty.IsTerminal(f.Fd()) || isatty.IsCygwinTerminal(f.Fd())
185}

Callers 2

ShouldCheckForUpdateFunction · 0.85

Calls 1

FdMethod · 0.65

Tested by

no test coverage detected