MCPcopy
hub / github.com/nektos/act / checkIfTerminal

Function checkIfTerminal

pkg/runner/logger.go:263–270  ·  view source on GitHub ↗
(w io.Writer)

Source from the content-addressed store, hash-verified

261}
262
263func checkIfTerminal(w io.Writer) bool {
264 switch v := w.(type) {
265 case *os.File:
266 return term.IsTerminal(int(v.Fd()))
267 default:
268 return false
269 }
270}

Callers 1

isColoredMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…