This may seem weird, but echoing stdin is part of how tty devices work.
That's why you see what you're typing at a terminal. The output is
printed on the next line, but your Python script only reads one line, so
it doesn't see it.

You can disable tty echo with the setecho method:
http://pexpect.readthedocs.org/en/latest/api/pexpect.html#pexpect.spawn.setecho

** Changed in: pexpect (Ubuntu)
       Status: New => Invalid

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/352073

Title:
  python-pexpect just duplicates stdin

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/pexpect/+bug/352073/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to