MCPcopy 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
22func isTTY() bool {
23 return tty.IsStdoutTerminal()
24}
25
26// isStderrTTY checks if stderr is a terminal
27func isStderrTTY() bool {

Callers 6

UpdateMethod · 0.70
TestProgressBarUpdateFunction · 0.70
TestProgressBarEdgeCasesFunction · 0.70

Calls 1

IsStdoutTerminalFunction · 0.92