From 640bffa05b82d0b12f15fdadcc75278eeb87c8d2 Mon Sep 17 00:00:00 2001 From: chrys87 Date: Thu, 24 Aug 2017 10:48:25 +0200 Subject: [PATCH] Update terminalManagement --- play zone/terminalManagement | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/play zone/terminalManagement b/play zone/terminalManagement index fcd455c9..9a5e6c5c 100644 --- a/play zone/terminalManagement +++ b/play zone/terminalManagement @@ -46,7 +46,7 @@ def open_terminal(command="bash", columns=80, lines=25): return Terminal(columns, lines, p_out), p_pid, p_out def HandleTerminal(): - debug = True + debug = False running = True #attr = termios.tcgetattr(sys.stdin.fileno()) try: @@ -57,7 +57,7 @@ def HandleTerminal(): #termios.tcdrain(p_pid) #termios.tcdrain(0) while running: - time.sleep(0.04) + #time.sleep(0.04) r, w, x = select.select([sys.stdin, p_out],[],[]) if r == []: continue @@ -90,9 +90,7 @@ def HandleTerminal(): running = False break #msgBytes = os.read(sys.stdin.fileno(), 1) - print('1') terminal.feed(msgBytes) - print('2') os.write(p_out.fileno(), msgBytes) if debug: print('after stdin')