From b0e920207e44d0b5e161ec5e37e19cff2e76bc40 Mon Sep 17 00:00:00 2001 From: chrys87 Date: Wed, 23 Aug 2017 09:28:35 +0200 Subject: [PATCH] Update terminalManagement --- play zone/terminalManagement | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/play zone/terminalManagement b/play zone/terminalManagement index 05ea4c78..e061c21b 100644 --- a/play zone/terminalManagement +++ b/play zone/terminalManagement @@ -57,12 +57,12 @@ def convert_to_text(dump): def HandleTerminal(): debug = False running = True - attr = termios.tcgetattr(sys.stdin.fileno()) + #attr = termios.tcgetattr(sys.stdin.fileno()) try: tty.setraw(0) terminal, p_pid, p_out = open_terminal() - termios.tcdrain(p_pid) - termios.tcdrain(0) + #termios.tcdrain(p_pid) + #termios.tcdrain(0) while running: r, w, x = select.select([sys.stdin, p_out],[],[],0) if r == []: @@ -93,7 +93,7 @@ def HandleTerminal(): print(e) running = False finally: - termios.tcsetattr(0, termios.TCSADRAIN, attr) + #termios.tcsetattr(0, termios.TCSADRAIN, attr) p_out.close() os.kill(p_pid, signal.SIGTERM)