summaryrefslogtreecommitdiff
path: root/pexpect/pxssh.py
diff options
context:
space:
mode:
authornoah <noah@656d521f-e311-0410-88e0-e7920216d269>2006-02-19 01:11:11 +0000
committernoah <noah@656d521f-e311-0410-88e0-e7920216d269>2006-02-19 01:11:11 +0000
commitda71b36a779c7ecbb9bda9937aa693d58416c6f7 (patch)
tree30048c5bbd83972c048b36931031b23a6a48b522 /pexpect/pxssh.py
parent350438b7ec6ef6429e24c00e048c6bacf0cde579 (diff)
downloadpexpect-da71b36a779c7ecbb9bda9937aa693d58416c6f7.tar.gz
Keeping track of multiple instances of pxssh and synchronizing the
window sizes on the SIGWINCH of the parent process is more complicated than is first seemed. I'm not really sure that this should be the responsibility of pxssh. I might add it back later. It's a nice feature, but it makes things more complicated. git-svn-id: http://pexpect.svn.sourceforge.net/svnroot/pexpect/trunk@366 656d521f-e311-0410-88e0-e7920216d269
Diffstat (limited to 'pexpect/pxssh.py')
-rw-r--r--pexpect/pxssh.py24
1 files changed, 0 insertions, 24 deletions
diff --git a/pexpect/pxssh.py b/pexpect/pxssh.py
index cc10723..ff8b021 100644
--- a/pexpect/pxssh.py
+++ b/pexpect/pxssh.py
@@ -112,27 +112,3 @@ class pxssh (spawn):
return 0
return 1
-def setwinsize_all(a,b):
- """This sets the terminal window size of all instances of pxssh.
- """
- for p in pexpect.instances:
- p.setwinsize(a,b)
-
-def handle_sigwinch(sig, data):
- ### TODO:sospecho que entra en conflicto con newt
- ### TODO:I suspect that it enters conflict with newt
- # Check for buggy platforms (see pexpect.setwinsize()).
- if 'TIOCGWINSZ' in dir(termios):
- TIOCGWINSZ = termios.TIOCGWINSZ
- else:
- TIOCGWINSZ = 1074295912 # assume
- s = struct.pack ("HHHH", 0, 0, 0, 0)
- a = struct.unpack ('HHHH', fcntl.ioctl(sys.stdout.fileno(), TIOCGWINSZ , s))
- setwinsize_all (a[0],a[1])
-
-def install_sigwinch_passthrough ():
- """This installs a signal handler for SIGWINCH which echos the signal to
- any child pxssh instances.
- """
- signal.signal(signal.SIGWINCH, handle_sigwinch)
-