I am using pxssh on linux host to execute commands on a linux host.
The following snippet prints true twice.
<pyton>
host = pxssh()
host.login('myhost.domain.com', 'root', 'rootpassword')
host.sendline('ls -l')
host.prompt()
if '\x07' in host.before:
print True
if '\x1b' in host.before:
print True
</python>
I am getting escape sequences such as '\x1b' and '\x07' in pxssh.before. Connecting to the host and executing 'ls -l' from a terminal produces proper output. Please inspect.
Logged In: YES
user_id=1245001
Originator: YES
The unwanted escape sequences do not appear if Python is run from an Emacs shell.