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

Function fillConsoleSize

cli/command/container/exec.go:132–137  ·  view source on GitHub ↗
(execOptions *client.ExecCreateOptions, dockerCli command.Cli)

Source from the content-addressed store, hash-verified

130}
131
132func fillConsoleSize(execOptions *client.ExecCreateOptions, dockerCli command.Cli) {
133 if execOptions.TTY {
134 height, width := dockerCli.Out().GetTtySize()
135 execOptions.ConsoleSize = client.ConsoleSize{Height: height, Width: width}
136 }
137}
138
139func interactiveExec(ctx context.Context, dockerCli command.Cli, execOptions *client.ExecCreateOptions, execID string) error {
140 // Interactive exec requested.

Callers 2

RunExecFunction · 0.85
interactiveExecFunction · 0.85

Calls 2

GetTtySizeMethod · 0.80
OutMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…