MCPcopy Create free account
hub / github.com/github/gh-aw / IsStdoutTerminal

Function IsStdoutTerminal

pkg/tty/tty.go:15–17  ·  view source on GitHub ↗

IsStdoutTerminal returns true if stdout is connected to a terminal.

()

Source from the content-addressed store, hash-verified

13
14// IsStdoutTerminal returns true if stdout is connected to a terminal.
15func IsStdoutTerminal() bool {
16 return term.IsTerminal(int(os.Stdout.Fd()))
17}
18
19// IsStderrTerminal returns true if stderr is connected to a terminal.
20func IsStderrTerminal() bool {

Callers 5

isTTYFunction · 0.92
NewAddWizardCommandFunction · 0.92

Calls

no outgoing calls