expectrl
expectrl copied to clipboard
A rust library for controlling interactive programs in a pseudo-terminal
Even though it was tested on Windows and OSX. Running a test suite may help to spot some issues. For example on my machine on widows it passes all tests....
related to #35 - we'd like to be able to get access to the session's stream - we're using it to put a process to a background with - we...
I think for people who don't uses Regex, it could be good to not include it as a dependency to decrease a crate size. ```toml [features] default = ["regex"] regex...
It requires an investigation if this is valuable at first. But the idea can be found in pexpect. https://pexpect.readthedocs.io/en/stable/api/pxssh.html
The code below run as expected, printing the `git diff` help, then `result StillAlive`, then exiting. fn main() { let mut cmd = std::process::Command::new("git"); cmd.args(["diff"]); cmd.current_dir("/tmp"); let mut session =...
The issue is we can't `Send+Clone` `&mut Self` for `future` which will be spawned in handler. We need to use some kind of `mutex` but we can't use the one...
My guess for some reason when we do an expect of initial prompt something is changed so type ENTER causes a production of CTRL-M(^M) where without it it causes \r\n