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

Function isTerminal

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

Source from the content-addressed store, hash-verified

605}
606
607func isTerminal(f *os.File) bool {
608 return ghTerm.IsTerminal(f) || isCygwinTerminal(f.Fd())
609}
610
611func isCygwinTerminal(fd uintptr) bool {
612 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