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

Function SetState

src/pkg/term/term.go:51–56  ·  view source on GitHub ↗
(file *os.File, state *unix.Termios)

Source from the content-addressed store, hash-verified

49}
50
51func SetState(file *os.File, state *unix.Termios) error {
52 fileFD := file.Fd()
53 fileFDInt := int(fileFD)
54 err := unix.IoctlSetTermios(fileFDInt, unix.TCSETS, state)
55 return err
56}
57
58func WithVMIN(vmin uint8) Option {
59 return func(state *unix.Termios) {

Callers 2

TestSetStateDifferentFunction · 0.85
TestSetStateNOPFunction · 0.85

Calls

no outgoing calls

Tested by 2

TestSetStateDifferentFunction · 0.68
TestSetStateNOPFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…