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

Method GetTtySize

cli/streams/out.go:66–68  ·  view source on GitHub ↗

GetTtySize returns the height and width in characters of the TTY, or zero for both if no TTY is connected.

()

Source from the content-addressed store, hash-verified

64// GetTtySize returns the height and width in characters of the TTY, or
65// zero for both if no TTY is connected.
66func (o *Out) GetTtySize() (height uint, width uint) {
67 return o.cs.terminalSize()
68}
69
70// SetIsTerminal overrides whether a terminal is connected. It is used to
71// override this property in unit-tests, and should not be depended on for

Callers 6

resizeTTYFunction · 0.80
resizeTtyFunction · 0.80
MonitorTtySizeFunction · 0.80
fillConsoleSizeFunction · 0.80
createContainerFunction · 0.80
printImageTreeFunction · 0.80

Calls 1

terminalSizeMethod · 0.80

Tested by

no test coverage detected