MCPcopy Create free account
hub / github.com/cli/cli / IsTerminal

Function IsTerminal

internal/update/update.go:192–194  ·  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

190
191// IsTerminal determines if a file descriptor is an interactive terminal / TTY.
192func IsTerminal(f *os.File) bool {
193 return isatty.IsTerminal(f.Fd()) || isatty.IsCygwinTerminal(f.Fd())
194}

Callers 2

ShouldCheckForUpdateFunction · 0.85

Calls 1

FdMethod · 0.65

Tested by

no test coverage detected