Merge pull request #4094 from gbraad/fix-termsize-windows

Fix #3937 invalid handle for termsize in Windows
This commit is contained in:
Nathan LeClaire
2017-05-31 16:02:08 -07:00
committed by GitHub

View File

@@ -201,7 +201,7 @@ func (client *NativeClient) OutputWithPty(command string) (string, error) {
defer closeConn(conn)
defer session.Close()
fd := int(os.Stdin.Fd())
fd := int(os.Stdout.Fd())
termWidth, termHeight, err := terminal.GetSize(fd)
if err != nil {