From a25c2a083a79932271a808394ecd2c522b140403 Mon Sep 17 00:00:00 2001 From: Carson Fleming Date: Sat, 14 Jan 2023 14:01:01 -0800 Subject: Dont send prompt after exiting PTY mode; TCP stacks it and causes strange behavior --- pkctl.py | 2 -- 1 file changed, 2 deletions(-) (limited to 'pkctl.py') 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()) -- cgit v1.2.3