MCPcopy
hub / github.com/go-task/task / IsTerminal

Function IsTerminal

internal/term/term.go:9–11  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7)
8
9func IsTerminal() bool {
10 return term.IsTerminal(int(os.Stdin.Fd())) && term.IsTerminal(int(os.Stdout.Fd())) //nolint:gosec
11}

Callers 2

canPromptMethod · 0.92
PromptMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…