mirror of
https://github.com/avatao-content/baseimage-tutorial-framework
synced 2024-11-22 14:21:33 +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)
|
LOG.error('IGNORING MESSAGE: Invalid message received: %s', message)
|
||||||
|
|
||||||
def handle_write(self, 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'])
|
self.terminado_server.pty.write(message['command'])
|
||||||
|
|
||||||
def cleanup(self):
|
def cleanup(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user