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

Function NewStateFrom

src/pkg/term/term.go:42–49  ·  view source on GitHub ↗
(oldState *unix.Termios, options ...Option)

Source from the content-addressed store, hash-verified

40}
41
42func NewStateFrom(oldState *unix.Termios, options ...Option) *unix.Termios {
43 newState := *oldState
44 for _, option := range options {
45 option(&newState)
46 }
47
48 return &newState
49}
50
51func SetState(file *os.File, state *unix.Termios) error {
52 fileFD := file.Fd()

Callers 3

TestNewStateFromNOPFunction · 0.85
TestSetStateDifferentFunction · 0.85

Calls

no outgoing calls

Tested by 3

TestNewStateFromNOPFunction · 0.68
TestSetStateDifferentFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…