(oldState *unix.Termios, options ...Option)
| 40 | } |
| 41 | |
| 42 | func 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 | |
| 51 | func SetState(file *os.File, state *unix.Termios) error { |
| 52 | fileFD := file.Fd() |
no outgoing calls
searching dependent graphs…