• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

.github/workflows/H03-May-2022-2519

docs/H03-May-2022-510225

ptyprocess/H03-May-2022-999715

tests/H03-May-2022-355242

.gitignoreH A D09-Dec-201556 86

LICENSEH A D09-Dec-2015905 1713

PKG-INFOH A D01-Jan-1970208 87

README.rstH A D09-Dec-2015541 1612

pyproject.tomlH A D28-Dec-2020746 2522

readthedocs.ymlH A D22-Jun-201823 32

setup.pyH A D01-Jan-1970479 2114

README.rst

1Launch a subprocess in a pseudo terminal (pty), and interact with both the
2process and its pty.
3
4Sometimes, piping stdin and stdout is not enough. There might be a password
5prompt that doesn't read from stdin, output that changes when it's going to a
6pipe rather than a terminal, or curses-style interfaces that rely on a terminal.
7If you need to automate these things, running the process in a pseudo terminal
8(pty) is the answer.
9
10Interface::
11
12    p = PtyProcessUnicode.spawn(['python'])
13    p.read(20)
14    p.write('6+6\n')
15    p.read(20)
16