golang / go

The Go programming language
https://go.dev
BSD 3-Clause "New" or "Revised" License
124.03k stars 17.67k forks source link

x/crypto/ssh/terminal: cannot handle xterm based terminals on Windows #13088

Open frederich opened 9 years ago

frederich commented 9 years ago

At work, I use a combination of Windows + Cygwin/MSYS2 to get my job done. Both Cygwin and MSYS2 using a mintty which is a xterm-256color terminal. My preferred backup tool on this setup is restic. Restic use x/crypto/ssh/terminal for password authentication. This works fine with a standard Dos Box, but not with my bash (Posix) setup see restic issue #330.

So I've changed the terminal code to use the util_linux.go version, but syscall.Termios is not defined.

davecheney commented 9 years ago

Related to #13104

h0nIg commented 7 years ago

it seems that the #13104 was solved, will there be an update?

gza commented 7 years ago

this could be a workaround: https://github.com/cloudfoundry/cli/issues/171#issuecomment-284881967