Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/git-bug/git-bug
/ isTerminal
Function
isTerminal
commands/execenv/env.go:159–161 ·
view source on GitHub ↗
(file *os.File)
Source
from the content-addressed store, hash-verified
157
}
158
159
func
isTerminal(file *os.File) bool {
160
return
isatty.IsTerminal(file.Fd()) || isatty.IsCygwinTerminal(file.Fd())
161
}
Callers
3
IsTerminal
Method · 0.85
IsTerminal
Method · 0.85
TestIsTerminal
Function · 0.85
Calls
1
IsTerminal
Method · 0.65
Tested by
1
TestIsTerminal
Function · 0.68