Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
570
func
isTerminal(f *os.File) bool {
571
return
ghTerm.IsTerminal(f) || isCygwinTerminal(f.Fd())
572
}
573
574
func
isCygwinTerminal(fd uintptr) bool {
575
return
isatty.IsCygwinTerminal(fd)
Callers
2
IsStdinTTY
Method · 0.85
IsStderrTTY
Method · 0.85
Calls
2
isCygwinTerminal
Function · 0.85
Fd
Method · 0.65
Tested by
no test coverage detected