mirror of
https://github.com/AsahiLinux/m1n1
synced 2024-11-22 14:43:08 +00:00
proxy.py: add a ttymode() call to switch to a dump terminal print
TODO: implement input Signed-off-by: Hector Martin <marcan@marcan.st>
This commit is contained in:
parent
674a82a2bb
commit
e1f0be37b4
1 changed files with 7 additions and 0 deletions
|
@ -133,6 +133,13 @@ class UartInterface:
|
||||||
sys.stdout.write(chr(c))
|
sys.stdout.write(chr(c))
|
||||||
sys.stdout.flush()
|
sys.stdout.flush()
|
||||||
|
|
||||||
|
def ttymode(self):
|
||||||
|
self.tty_enable = True
|
||||||
|
self.dev.timeout = None
|
||||||
|
while True:
|
||||||
|
sys.stdout.buffer.write(self.readfull(1))
|
||||||
|
sys.stdout.buffer.flush()
|
||||||
|
|
||||||
def reply(self, cmd):
|
def reply(self, cmd):
|
||||||
reply = b''
|
reply = b''
|
||||||
while True:
|
while True:
|
||||||
|
|
Loading…
Reference in a new issue