Andreas Stührk <andy-pyt...@hammerhartes.de> added the comment:

That behaviour is indeed caused by ncurses as it changes the buffer size of 
stdio. The rationale behind that is explained in a comment in 
ncurses/tinfo/setbuf.c 
(http://codesearch.google.com/codesearch/p?hl=en#5KTrgOW2hXs/pub/nslu2/sources/ncurses-5.4.tar.gz%7CqZkYBenqdbw/ncurses-5.4/ncurses/tinfo/setbuf.c&l=46)

That behaviour is also mentioned in the man-page of ncurses and one can disable 
it using the NCURSES_NO_SETBUF environment variable. If I set that environment 
variable, the example behaves as expected on my machine.

----------
nosy: +Trundle

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue10144>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to