We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4158f1e commit 0487a4aCopy full SHA for 0487a4a
1 file changed
Exscript/protocols/protocol.py
@@ -1142,7 +1142,7 @@ def _open_posix_shell(self,
1142
handle_window_size):
1143
# We need to make sure to use an unbuffered stdin, else multi-byte
1144
# chars (such as arrow keys) won't work properly.
1145
- with os.fdopen(sys.stdin.fileno(), 'r', 0) as stdin:
+ with os.fdopen(sys.stdin.fileno(), 'rb', 0) as stdin:
1146
oldtty = termios.tcgetattr(stdin)
1147
1148
# Update the terminal size whenever the size changes.
@@ -1196,7 +1196,7 @@ def handle_sigwinch(signum, frame):
1196
if not is_handled:
1197
if not self.send_data is None:
1198
self.send_data.write(data)
1199
- channel.send(data)
+ channel.send(data.encode(self.encoding))
1200
finally:
1201
termios.tcsetattr(stdin, termios.TCSADRAIN, oldtty)
1202
0 commit comments