New submission from Archana Pandey <archi.pandey9...@gmail.com>:
use of setwinsize function returns empty if the values of rows and cols differes from(24,80). Issue occurs only on SLES 12.4. sample code: #!/usr/bin/env python from pexpect import pxssh try: s = pxssh.pxssh() hostname = 'someIp' username = 'username' password = 'password' s.login(hostname, username, password) s.setwinsize(1000,1000) # setting default winsize works s.sendline('uname -r') # run a command s.prompt() # match the prompt print(s.before) # print everything before the prompt. s.logout() except pxssh.ExceptionPxssh as e: print("pxssh failed on login.") print(e) ---------- components: Library (Lib) messages: 360356 nosy: archi-pandey priority: normal severity: normal status: open title: Pexpect : setwinsize() not working in SLES 12.4 kernel 4.12.14-94.41-default type: behavior versions: Python 3.6 _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue39404> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com