rexpect
rexpect copied to clipboard
Rust port of pexpect
When I put the unicode character "∀" into `cat`, the output doesn't roundtrip: ``` Input: ∀ 226 136 128 Output: 195 162 194 136 194 128 ``` Code: ```rust...
Previously, if the client program outputs unicode, the unicode output would be garbled when it is piped through `NBReader`. For more detail, see #105. Writing doesn't seem to have any...
We have some sporadically failing testcases, which blocks CI. Has been discussed in #101 among other PRs. But I'm opening an issue to keep the discussion in one place. I'm...
Excuse me, how can I execute 'ls -l' to output a directory list after logging into the server via ssh? I managed to execute 'ls -l' successfully, but I'm confused...
Hello, this is perhaps not an issue, but I've been experimenting with the crate and notice the following behavior: If I get a `PtyReplSession` with `spawn_bash(Some(timeout))`, and then use `p.execute(command,...
It would be nice if we could provide an easy way to test rexpect apps. Maybe something like this? ```rust fn main() -> Result { let mut p = rexpect::spawn("cat",...
`spawn_bash` assumes you're spawning a new terminal on the same machine running rexpect. I use pexpect to write integration tests for embedded targets and `pxssh` is really useful. Having the...
It would also be nice to borrow from `replwrap` and have a method to fold these three lines into one: ``` p.send_line("hostname")?; let hostname = p.read_line()?; p.wait_for_prompt()?; // go sure...
when call `rexpect::spawn`, how to pass env var to the process?
My use-case for this is for testing a shell that uses the `rustyline` crate for line-editing. For long inputs (greater than the terminal width), `rustyline` inserts newlines into its output,...