summaryrefslogtreecommitdiff
path: root/pkctl.py
diff options
context:
space:
mode:
authorCarson Fleming <cflems@cflems.net>2023-01-14 14:01:01 -0800
committerCarson Fleming <cflems@cflems.net>2023-01-14 14:01:01 -0800
commita25c2a083a79932271a808394ecd2c522b140403 (patch)
tree0b44417869f0d7d43a57c9089edf1f9cf446477b /pkctl.py
parent533b217fdff44349b8310c0f8bc75b085519142c (diff)
downloadpk-a25c2a083a79932271a808394ecd2c522b140403.tar.gz
Dont send prompt after exiting PTY mode; TCP stacks it and causes strange behavior
Diffstat (limited to 'pkctl.py')
-rw-r--r--pkctl.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/pkctl.py b/pkctl.py
index 79e325d..3709a3b 100644
--- a/pkctl.py
+++ b/pkctl.py
@@ -121,8 +121,6 @@ def attach_cmd():
tty.tcsetattr(sys.stdin.fileno(), tty.TCSAFLUSH, stdin_mode)
pty_mode = False
print('turned off pty mode due to npty command')
- if len(data) > 6:
- pnnl(str(data[6:], 'utf-8'))
elif not pty_mode and data == b'\xc0\xdepty':
pty_mode = True
stdin_mode = tty.tcgetattr(sys.stdin.fileno())