create byte command detection infra and try out fire a command

This commit is contained in:
chrys
2018-03-24 22:50:27 +01:00
parent 88c12a3331
commit 11681120ca
3 changed files with 15 additions and 2 deletions

View File

@ -150,6 +150,9 @@ class driver(screenDriver):
print('pre stdin')
try:
msgBytes = self.readAll(sys.stdin.fileno())
eventQueue.put({"Type":fenrirEventType.ByteInput,
"Data":msgBytes
})
except (EOFError, OSError):
running = False
break