STINNER Victor <victor.stin...@haypocalc.com> added the comment: Using strace, I see that stty calls ioctl(TIOCGWINSZ) on stdin (fd=0) if it failed on stdout (fd=1), whereas Python only tries stdout.
Attached patch implements a similar idea. ---------- Added file: http://bugs.python.org/file24503/get_terminal_size_pipe.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue13609> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com