1 Launch a subprocess in a pseudo terminal (pty), and interact with both the
4 Sometimes, piping stdin and stdout is not enough. There might be a password
5 prompt that doesn't read from stdin, output that changes when it's going to a
6 pipe rather than a terminal, or curses-style interfaces that rely on a terminal.
7 If you need to automate these things, running the process in a pseudo terminal
12 p = PtyProcessUnicode.spawn(['python'])