Sami Zerrade <szerr...@gmail.com> added the comment:

This is being caused by the following 2 new lines in the initscr() function of 
Lib/curses/__init__.py:


setupterm(term=_os.environ.get("TERM", "unknown"),
            fd=_sys.__stdout__.fileno())

Commenting them out will cause the behavior from version 2.5.  


In general, invoking the C curses library's setupterm() function after the C 
initscr() function has been called will cause the terminal to break the next 
time that endwin() is called.  In this particular case, the first call to the 
Python initscr() function provides the call to the C initscr() and the second 
call to Python's initscr() provides the call to setupterm().  The bug can be 
fixed by having the Python initscr() function in __init__.py make sure that 
initscr hasn't been called before making the call to setupterm().

----------
nosy: +Sami.Zerrade

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

Reply via email to