diff options
author | Jeff Quast <contact@jeffquast.com> | 2015-10-06 10:17:50 -0700 |
---|---|---|
committer | Jeff Quast <contact@jeffquast.com> | 2015-10-06 10:17:50 -0700 |
commit | ae932d179adc4c602f9a4298076cdc5a82f9351a (patch) | |
tree | 389f0a2ee8ba6722e600f5a8235c1e3b6026db5b /pexpect/pty_spawn.py | |
parent | 0b7fee3c974d89b7f7f51fef9a1893e25ed980da (diff) | |
download | pexpect-git-ae932d179adc4c602f9a4298076cdc5a82f9351a.tar.gz |
2 new tools: display-{fpathconf.maxcanon}.py
tests/test_maxcanon.py has been deleted and turned into
an "autodetection" tool of sorts, no longer attempting
to assert exacting values, but determine it programmatically.
Diffstat (limited to 'pexpect/pty_spawn.py')
-rw-r--r-- | pexpect/pty_spawn.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/pexpect/pty_spawn.py b/pexpect/pty_spawn.py index 7fc27fe..299016c 100644 --- a/pexpect/pty_spawn.py +++ b/pexpect/pty_spawn.py @@ -492,9 +492,9 @@ class spawn(SpawnBase): This value may be discovered using fpathconf(3):: - >>> from os import fpathconf - >>> print(fpathconf(0, 'PC_MAX_CANON')) - 256 + >>> from os import fpathconf + >>> print(fpathconf(0, 'PC_MAX_CANON')) + 256 On such a system, only 256 bytes may be received per line. Any subsequent bytes received will be discarded. BEL (``'\a'``) is then @@ -505,10 +505,10 @@ class spawn(SpawnBase): Canonical input processing may be disabled altogether by executing a shell, then stty(1), before executing the final program:: - >>> bash = pexpect.spawn('/bin/bash', echo=False) - >>> bash.sendline('stty -icanon') - >>> bash.sendline('base64') - >>> bash.sendline('x' * 5000) + >>> bash = pexpect.spawn('/bin/bash', echo=False) + >>> bash.sendline('stty -icanon') + >>> bash.sendline('base64') + >>> bash.sendline('x' * 5000) ''' time.sleep(self.delaybeforesend) |