Open robinovitch61 opened 3 months ago
because of this: https://github.com/charmbracelet/wish/blob/939d28f53e503d8d6dc92d148cd00c7d90cd230e/cmd.go#L64-L71
in any case, setting the output to stdout would not work, it needs to be the ssh session.
don't quite remember why we don't allow to set the cmd out and etc
ahh, just remembered why.
because it might run on a pty, in which case it'll be overridden by the slave IO anyway
Describe the bug For tea.ExecProcess, I've done something like this to capture output back to the application:
Which has worked nicely. But when I do something similar with a wish.Command and tea.Exec, it doesn't work:
In this second case, SavedOutput is empty. Any tips here?
Setup Please complete the following information along with version numbers, if applicable.
Note: you might encounter rendering issues if your locale does not use
UTF-8
encoding. Please check your locale (locale
on POSIX systems) to see what encoding is being used by your system.Expected behavior SavedOutput is not empty in the second case.