Merge pull request #4094 from gbraad/fix-termsize-windows
Fix #3937 invalid handle for termsize in Windows
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user