Get terminal output and print it #171
Answered
by
xtyxtyx
nicolas-duc
asked this question in
Q&A
-
Hi, I'm looking for a way to get terminal output while keeping my terminal active : When I use this code :
I've the following result : But when I try to retreive the output, all the stream goes to my flutter console output, but nothing is displayed on my terminal :
Do you have any idea to solve it ? Thanks a lot ! |
Beta Was this translation helpful? Give feedback.
Answered by
xtyxtyx
Apr 17, 2023
Replies: 1 comment 1 reply
-
Hi, You can try this: pty.output.cast<List<int>>().transform(const Utf8Decoder()) .listen((chunk) {
terminal.write(chunk);
print(chunk);
}); |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
nicolas-duc
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
You can try this: