Cannot call the parser from callbacks that are themselves called from the parser

This commit is contained in:
Kovid Goyal 2022-02-24 00:31:01 +05:30
parent c24e16e8cd
commit 22c1ee7dc8
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -99,14 +99,12 @@ class Callbacks:
if self.pty:
for line in get_ssh_data(msg):
self.pty.write_to_child(line)
self.pty.process_input_from_child(timeout=0)
def handle_remote_echo(self, msg):
from base64 import standard_b64decode
if self.pty:
data = standard_b64decode(msg)
self.pty.write_to_child(data)
self.pty.process_input_from_child(timeout=0)
def filled_line_buf(ynum=5, xnum=5, cursor=Cursor()):