rust-cli / rexpect

.github/workflows/ci.yml
https://docs.rs/rexpect
MIT License
328 stars 56 forks source link

add child.interact() e.g. to resize window when got SIGWINCH signal? #10

Open hujianxin opened 4 years ago

philippkeller commented 4 years ago

what do you want to accomplish?

Rexpect is no tty client in the sort that you can draw windows etc. So it cannot resize window. But you should be able to listen to signals and expect the SIGWINCH signal, but I did not check this out yet

hujianxin commented 4 years ago

Thanks for your replying. After looking around the doc, I found that rexpect has no the feature child.interact() which exists in pexpect. I'll give pexpect a try, thanks anyway.

philippkeller commented 4 years ago

that's actually a good one, I'm reopening the ticket, maybe there are more people interested so I can motivate myself to implement it or maybe there's a contributor adding this feature

allquixotic commented 4 years ago

I'll have to fall back to pexpect too because I am also looking for an interact() method equivalent...

rumbleFTW commented 9 months ago

Hey! Is the child.interact() implemented yet? I've been waiting for this feature for a long time.