mirror of
https://github.com/avatao-content/baseimage-tutorial-framework
synced 2024-12-22 06:51:56 +00:00
Avoid mixing up terminal.write command with user input
This commit is contained in:
parent
ba4803d660
commit
1b274fa019
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user