MCPcopy Index your code
hub / github.com/coder/coder / restoreTerminal

Function restoreTerminal

pty/terminal_other.go:30–36  ·  view source on GitHub ↗

nolint:revive

(fd uintptr, state *TerminalState)

Source from the content-addressed store, hash-verified

28
29//nolint:revive
30func 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}

Callers 1

RestoreTerminalFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected