Cannot call the parser from callbacks that are themselves called from the parser
This commit is contained in:
parent
c24e16e8cd
commit
22c1ee7dc8
@ -99,14 +99,12 @@ class Callbacks:
|
|||||||
if self.pty:
|
if self.pty:
|
||||||
for line in get_ssh_data(msg):
|
for line in get_ssh_data(msg):
|
||||||
self.pty.write_to_child(line)
|
self.pty.write_to_child(line)
|
||||||
self.pty.process_input_from_child(timeout=0)
|
|
||||||
|
|
||||||
def handle_remote_echo(self, msg):
|
def handle_remote_echo(self, msg):
|
||||||
from base64 import standard_b64decode
|
from base64 import standard_b64decode
|
||||||
if self.pty:
|
if self.pty:
|
||||||
data = standard_b64decode(msg)
|
data = standard_b64decode(msg)
|
||||||
self.pty.write_to_child(data)
|
self.pty.write_to_child(data)
|
||||||
self.pty.process_input_from_child(timeout=0)
|
|
||||||
|
|
||||||
|
|
||||||
def filled_line_buf(ynum=5, xnum=5, cursor=Cursor()):
|
def filled_line_buf(ynum=5, xnum=5, cursor=Cursor()):
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user