Avoid mixing up terminal.write command with user input

This commit is contained in:
Kristóf Tóth 2019-11-08 11:34:15 +01:00
parent ba4803d660
commit 1b274fa019
1 changed files with 3 additions and 0 deletions

View File

@ -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):