Skip to content

Commit fb6f177

Browse files
Merge pull request docker-archive-public#4094 from gbraad/fix-termsize-windows
Fix docker-archive-public#3937 invalid handle for termsize in Windows
2 parents 9f441e6 + c82b52c commit fb6f177

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libmachine/ssh/client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ func (client *NativeClient) OutputWithPty(command string) (string, error) {
201201
defer closeConn(conn)
202202
defer session.Close()
203203

204-
fd := int(os.Stdin.Fd())
204+
fd := int(os.Stdout.Fd())
205205

206206
termWidth, termHeight, err := terminal.GetSize(fd)
207207
if err != nil {

0 commit comments

Comments
 (0)