From 1b274fa019d9926f38b2087f070e18c21d2635c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krist=C3=B3f=20T=C3=B3th?= Date: Fri, 8 Nov 2019 11:34:15 +0100 Subject: [PATCH] Avoid mixing up terminal.write command with user input --- tfw/components/terminal/terminal_handler.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tfw/components/terminal/terminal_handler.py b/tfw/components/terminal/terminal_handler.py index 8044fae..98d35ac 100644 --- a/tfw/components/terminal/terminal_handler.py +++ b/tfw/components/terminal/terminal_handler.py @@ -42,6 +42,9 @@ class TerminalHandler: LOG.error('IGNORING MESSAGE: Invalid message received: %s', message) def handle_write(self, message): + concat = message.get('concat', False) + if not concat: + self.terminado_server.pty.write('\x15') self.terminado_server.pty.write(message['command']) def cleanup(self):