Skip to content

Get terminal output and print it #171

Answered by xtyxtyx
nicolas-duc asked this question in Q&A
Discussion options

You must be logged in to vote

Hi,

You can try this:

pty.output.cast<List<int>>().transform(const Utf8Decoder()) .listen((chunk) {
  terminal.write(chunk);
  print(chunk);
});

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@nicolas-duc
Comment options

Answer selected by nicolas-duc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants