-
Notifications
You must be signed in to change notification settings - Fork 610
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Troubles printing a shell to a view #190
Comments
I too am encountering this exact same issue. Would be happy to put up a PR if somebody can point me in the right direction |
@bLuka were you able to find a workaround for this issue? thanks! |
@diegoacuna Unfortunately I didn't found any workaround. I dug a bit into the sources in a couple of hours, in order to understand the matter, but found nothing accurate. @jroimartin Any idea? I'd still be happy to have this issue fixed :-) |
IIUC, the main loop only responds to termbox and user events. Would it be reasonable to have |
Hello,
I'm having troubles trying to run a shell inside a view.
I'm going through a pseudo-terminal (currently using kr/pty's module here: https://github.com/kr/pty).
I had an issue passing my view as the dest of my
io.Copy
, having the pseudo-terminal as source. I needed to rewriteio.Copy
using Gui.Update on each write.Next, I am able to print the prompt, but unable to print any other following output (like commands I'd type). It seems
fmt.Fprint
doesn't like forwarding my pseudo-terminal output to my view.Everything works absolutely fine when I replace the
io.Writer
of my view byos.Stdout
.Would gocui be able to handle this use case?
The text was updated successfully, but these errors were encountered: