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

Function isTerminal

pkg/iostreams/iostreams.go:570–572  ·  view source on GitHub ↗
(f *os.File)

Source from the content-addressed store, hash-verified

568}
569
570func isTerminal(f *os.File) bool {
571 return ghTerm.IsTerminal(f) || isCygwinTerminal(f.Fd())
572}
573
574func isCygwinTerminal(fd uintptr) bool {
575 return isatty.IsCygwinTerminal(fd)

Callers 2

IsStdinTTYMethod · 0.85
IsStderrTTYMethod · 0.85

Calls 2

isCygwinTerminalFunction · 0.85
FdMethod · 0.65

Tested by

no test coverage detected