nolint:revive
(fd uintptr, state *TerminalState)
| 28 | |
| 29 | //nolint:revive |
| 30 | func restoreTerminal(fd uintptr, state *TerminalState) error { |
| 31 | if state == nil || state.state == nil { |
| 32 | return nil |
| 33 | } |
| 34 | |
| 35 | return term.Restore(int(fd), state.state) |
| 36 | } |