()
| 431 | } |
| 432 | |
| 433 | func (c *secureShell) terminalType() string { |
| 434 | term := os.Getenv("TERM") |
| 435 | if term == "" { |
| 436 | term = "xterm" |
| 437 | } |
| 438 | return term |
| 439 | } |
| 440 | |
| 441 | func (c *secureShell) getWindowDimensions(terminalFd uintptr) (width int, height int) { |
| 442 | winSize, err := c.terminalHelper.GetWinsize(terminalFd) |