Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/github/gh-aw
/ isTTY
Function
isTTY
pkg/console/console.go:22–24 ·
view source on GitHub ↗
isTTY checks if stdout is a terminal
()
Source
from the content-addressed store, hash-verified
20
21
// isTTY checks if stdout is a terminal
22
func
isTTY() bool {
23
return
tty.IsStdoutTerminal()
24
}
25
26
// isStderrTTY checks if stderr is a terminal
27
func
isStderrTTY() bool {
Callers
6
Update
Method · 0.70
TestProgressBarUpdate
Function · 0.70
TestProgressBarPercentageCalculation
Function · 0.70
TestProgressBarOutputFormat
Function · 0.70
TestProgressBarEdgeCases
Function · 0.70
TestProgressBarNonTTYFallback
Function · 0.70
Calls
1
IsStdoutTerminal
Function · 0.92
Tested by
5
TestProgressBarUpdate
Function · 0.56
TestProgressBarPercentageCalculation
Function · 0.56
TestProgressBarOutputFormat
Function · 0.56
TestProgressBarEdgeCases
Function · 0.56
TestProgressBarNonTTYFallback
Function · 0.56