MCPcopy Index your code
hub / github.com/docker/cli / restoreTerminal

Function restoreTerminal

cmd/docker/docker.go:468–472  ·  view source on GitHub ↗

restoreTerminal restores the terminal if it was in raw mode; this prevents local echo from being disabled for the current terminal after forceful termination. It's a no-op if there's no prior state to restore.

(streams command.Streams)

Source from the content-addressed store, hash-verified

466// local echo from being disabled for the current terminal after forceful
467// termination. It's a no-op if there's no prior state to restore.
468func restoreTerminal(streams command.Streams) {
469 streams.In().RestoreTerminal()
470 streams.Out().RestoreTerminal()
471 streams.Err().RestoreTerminal()
472}
473
474//nolint:gocyclo
475func runDocker(ctx context.Context, dockerCli *command.DockerCli) error {

Callers 2

tryPluginRunFunction · 0.70

Calls 4

InMethod · 0.65
OutMethod · 0.65
ErrMethod · 0.65
RestoreTerminalMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…