Closed holdenhinkle closed 2 years ago
I updated LocalTerminalBackend#out
to:
@override
Stream<String> get out => pty.output.map((data) => utf8.decode(data));
But that didn't work.
Ah, I see why I was getting that StateError (Bad state: Stream has already been listened to.)
error. It's because it's already been listened to in Terminal
:
backend?.out.listen(write);
Yeah, I'm missing something...
Hi there,
I was excited to discover
xterm
andflutter_pty
today. Thanks for all of your work.I'm trying to connect
xterm
andflutter_pty
and I'm having a difficult time getting the input to render to the screen. I'm guessing I haven't implementedLocalTerminalBackend#out
correctly.Also, wherever I try to call
pty.output.listen
I get the following error:Here's my code:
I'm sure I'm doing something wrong. Any help getting this working is greatly appreciated. Thanks!