On 25-05-2007 15:04:24 +0200, Fabian Groffen wrote:
...
> raise an exception on the pty code, but only bails out on the
> termios.tcgetattr function because it gets an "invalid argument".

from the code pym/portage/__init__.py around line 2288

                from pty import openpty
                master_fd, slave_fd = openpty()
                # Disable the ECHO attribute so the terminal behaves properly
                # if the subprocess needs to read input from stdin.
                import termios
                term_attr = termios.tcgetattr(master_fd)
                term_attr[3] &= ~termios.ECHO
                termios.tcsetattr(master_fd, termios.TCSAFLUSH, term_attr)

if I comment out the complete termios (last four lines) it appears to
work, though I don't know what repercussions this has on the rest of the
code.  Judging from the comment, it feels not so right.

-- 
Fabian Groffen
Gentoo on a different level
-- 
[EMAIL PROTECTED] mailing list

Reply via email to