MCPcopy
hub / github.com/containers/toolbox / IsTerminal

Function IsTerminal

src/pkg/term/term.go:34–40  ·  view source on GitHub ↗
(file *os.File)

Source from the content-addressed store, hash-verified

32}
33
34func IsTerminal(file *os.File) bool {
35 if _, err := GetState(file); err != nil {
36 return false
37 }
38
39 return true
40}
41
42func NewStateFrom(oldState *unix.Termios, options ...Option) *unix.Termios {
43 newState := *oldState

Callers 2

TestIsTerminalTerminalFunction · 0.85

Calls 1

GetStateFunction · 0.85

Tested by 2

TestIsTerminalTerminalFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…