From 3178d3af43d9343a1ee219909ed992c54f8092aa Mon Sep 17 00:00:00 2001 From: chrys Date: Thu, 19 Jul 2018 23:05:43 +0200 Subject: [PATCH] sync --- src/fenrirscreenreader/screenDriver/ptyDriver.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/fenrirscreenreader/screenDriver/ptyDriver.py b/src/fenrirscreenreader/screenDriver/ptyDriver.py index b93e9581..f32aa59f 100644 --- a/src/fenrirscreenreader/screenDriver/ptyDriver.py +++ b/src/fenrirscreenreader/screenDriver/ptyDriver.py @@ -143,12 +143,14 @@ class driver(screenDriver): def handleSigwinch(self, *args): os.write(self.signalPipe[1], b'w') def terminalEmulation(self,active , eventQueue): + try: old_attr = termios.tcgetattr(sys.stdin) tty.setraw(0) lines, columns = self.getTerminalSize(0) if self.command == '': self.command = screen_utils.getShell() + self.env['runtime']['debug'].writeDebugOut('Process starting.. ' + self.command,debug.debugLevel.INFO) terminal, p_pid, self.p_out = self.openTerminal(columns, lines, self.command) lines, columns = self.resizeTerminal(self.p_out) terminal.resize(lines, columns)