[New-bugs-announce] [issue39404] Pexpect : setwinsize() not working in SLES 12.4 kernel 4.12.14-94.41-default
Archana Pandey
report at bugs.python.org
Tue Jan 21 02:01:51 EST 2020
New submission from Archana Pandey <archi.pandey9190 at 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 <report at bugs.python.org>
<https://bugs.python.org/issue39404>
_______________________________________
More information about the New-bugs-announce
mailing list