MCPcopy Index your code
hub / github.com/cloudfoundry/cli / getWindowDimensions

Method getWindowDimensions

util/clissh/ssh.go:233–243  ·  view source on GitHub ↗
(terminalFd uintptr)

Source from the content-addressed store, hash-verified

231}
232
233func (c *SecureShell) getWindowDimensions(terminalFd uintptr) (width int, height int) {
234 winSize, err := c.terminalHelper.GetWinsize(terminalFd)
235 if err != nil {
236 winSize = &term.Winsize{
237 Width: 80,
238 Height: 43,
239 }
240 }
241
242 return int(winSize.Width), int(winSize.Height)
243}
244
245func (c *SecureShell) handleForwardConnection(conn net.Conn, targetAddr string) {
246 defer conn.Close()

Callers 2

InteractiveSessionMethod · 0.95
resizeMethod · 0.95

Implementers 4

secureShellcf/ssh/ssh.go
FakeSecureShellcf/ssh/sshfakes/fake_secure_shell.go
FakeSecureShellClientactor/sharedaction/sharedactionfakes/f
SecureShellutil/clissh/ssh.go

Calls 1

GetWinsizeMethod · 0.65

Tested by

no test coverage detected