diff options
| author | Erik Bernoth <erik.bernoth@gmail.com> | 2014-09-21 10:05:06 +0200 |
|---|---|---|
| committer | Erik Bernoth <erik.bernoth@gmail.com> | 2014-09-21 10:09:47 +0200 |
| commit | 00a50fd2a3db40d51ef1a004b20c253993e7eec4 (patch) | |
| tree | bdbdd6a9e4cd6e73f9b5073384edbee7dc623e13 | |
| parent | ae950f0b759f5ecb5237c7366e866225373afebc (diff) | |
| download | pexpect-00a50fd2a3db40d51ef1a004b20c253993e7eec4.tar.gz | |
enable echo deactivation in pxssh
I've learned from #112 that you can deactivate echoing of the input via
constructer parameter. This patch enables pxssh to do the same.
In spawn there is an alternative to the constructor parameter, which is
`set_echo(False)`. Sadly that doesn't work, at least in my experiments with
localhost.
Signed-off-by: Erik Bernoth <erik.bernoth@gmail.com>
| -rw-r--r-- | pexpect/pxssh.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pexpect/pxssh.py b/pexpect/pxssh.py index ec8c525..9a6edc7 100644 --- a/pexpect/pxssh.py +++ b/pexpect/pxssh.py @@ -86,9 +86,9 @@ class pxssh (spawn): ''' def __init__ (self, timeout=30, maxread=2000, searchwindowsize=None, - logfile=None, cwd=None, env=None): + logfile=None, cwd=None, env=None, echo=True): - spawn.__init__(self, None, timeout=timeout, maxread=maxread, searchwindowsize=searchwindowsize, logfile=logfile, cwd=cwd, env=env) + spawn.__init__(self, None, timeout=timeout, maxread=maxread, searchwindowsize=searchwindowsize, logfile=logfile, cwd=cwd, env=env, echo=echo) self.name = '<pxssh>' |
