diff --git a/scripts/mosh b/scripts/mosh index 6741f7c..75d9051 100755 --- a/scripts/mosh +++ b/scripts/mosh @@ -140,6 +140,9 @@ if ( defined $fake_proxy ) { PeerPort => $port, Proto => "tcp" ) or die "$0: connect to host $ip port $port: $!\n"; + binmode($sock); + binmode(STDIN); + binmode(STDOUT); sub cat { my ( $from, $to ) = @_;