You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
on Linux, which returns me the correct size of the terminal when using for instance bash. However, this same call will fail on Windows cmd and powershell with an "invalid handle" error.
It seems that "golang.org/x/crypto/ssh/terminal" can not succesfully perform the following function:
The text was updated successfully, but these errors were encountered:
bradfitz
changed the title
Unable to do getSize of terminal on a Windows host using cmd/powershell targeting CentOS/RHEL
x/crypto/ssh/terminal: GetSize doesn't work on Windows?
May 17, 2017
Will debug util_windows.go. (IDE redirect to the general util.go)
The value I got for the fd was 8 for my PowerShell, and 80 for a cmd instance. Creating a new cmd, returns a different fd (76) for cmd. But all of the calls return "The handle is invalid." as error.
What version of Go are you using (
go version
)?go1.7.5
What operating system and processor architecture are you using (
go env
)?Compared functionality between two platforms:
go on linux/amd64
go on windows/amd64
What did you do?
I am doing the following:
on Linux, which returns me the correct size of the terminal when using for instance bash. However, this same call will fail on Windows
cmd
andpowershell
with an "invalid handle" error.It seems that
"golang.org/x/crypto/ssh/terminal"
can not succesfully perform the following function:More information about this can be found at: minishift/minishift-centos-iso#95 (comment) and minishift/minishift-centos-iso#95 (comment). This seems to be an issue when using Red Hat's provided ssh server with the go native implementation: docker/machine#3937
What did you expect to see?
I expected the command to pass
What did you see instead?
At the moment it fails with an
invalid handle
.The text was updated successfully, but these errors were encountered: