better buffer for pty
This commit is contained in:
parent
ecacae23d0
commit
f70cb1670e
@ -177,7 +177,7 @@ class driver(screenDriver):
|
|||||||
# input
|
# input
|
||||||
if sys.stdin in r:
|
if sys.stdin in r:
|
||||||
try:
|
try:
|
||||||
msgBytes = self.readAll(sys.stdin.fileno())
|
msgBytes = self.readAll(sys.stdin.fileno(), len=4096)
|
||||||
except (EOFError, OSError):
|
except (EOFError, OSError):
|
||||||
active.value = False
|
active.value = False
|
||||||
break
|
break
|
||||||
@ -203,7 +203,7 @@ class driver(screenDriver):
|
|||||||
eventQueue.put({"Type":fenrirEventType.ScreenUpdate,
|
eventQueue.put({"Type":fenrirEventType.ScreenUpdate,
|
||||||
"Data":screen_utils.createScreenEventData(self.terminal.GetScreenContent())
|
"Data":screen_utils.createScreenEventData(self.terminal.GetScreenContent())
|
||||||
})
|
})
|
||||||
self.injectTextToScreen(msgBytes, screen=sys.stdout.fileno(),)
|
self.injectTextToScreen(msgBytes, screen=sys.stdout.fileno())
|
||||||
except Exception as e: # Process died?
|
except Exception as e: # Process died?
|
||||||
print(e)
|
print(e)
|
||||||
active.value = False
|
active.value = False
|
||||||
|
Loading…
Reference in New Issue
Block a user