MCPcopy
hub / github.com/cloudfoundry/cli / getWindowDimensions

Method getWindowDimensions

cf/ssh/ssh.go:441–451  ·  view source on GitHub ↗
(terminalFd uintptr)

Source from the content-addressed store, hash-verified

439}
440
441func (c *secureShell) getWindowDimensions(terminalFd uintptr) (width int, height int) {
442 winSize, err := c.terminalHelper.GetWinsize(terminalFd)
443 if err != nil {
444 winSize = &term.Winsize{
445 Width: 80,
446 Height: 43,
447 }
448 }
449
450 return int(winSize.Width), int(winSize.Height)
451}
452
453type secureDialer struct{}
454

Callers 2

InteractiveSessionMethod · 0.95
resizeMethod · 0.95

Calls 1

GetWinsizeMethod · 0.65

Tested by

no test coverage detected