(terminalFd uintptr)
| 231 | } |
| 232 | |
| 233 | func (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 | |
| 245 | func (c *SecureShell) handleForwardConnection(conn net.Conn, targetAddr string) { |
| 246 | defer conn.Close() |
no test coverage detected