rexpect icon indicating copy to clipboard operation
rexpect copied to clipboard

Copying child process output

Open danobi opened this issue 5 years ago • 1 comments

pexpect has child.logfile* APIs to log child process output to a file-like destination. I looked around the docs but I didn't seem to find anything similar for rexpect.

Is there any chance this could be supported?

danobi avatar Sep 28 '20 19:09 danobi

I think this is very important for this crate to be useful. I'll start looking at it.

I'm looking at pulling in termcolor crate, to output e.g. black output for stdout, green for stdin, and yellow for control-characters, or something like that.

I think it is very useful in pexpect for debugging and while developing scripts.

ekarlsn avatar Oct 19 '22 19:10 ekarlsn