This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Sami.Zerrade
Recipients Sami.Zerrade, yury
Date 2010-01-30.10:38:34
SpamBayes Score 6.1664826e-07
Marked as misclassified No
Message-id <1264847916.58.0.40818664695.issue7567@psf.upfronthosting.co.za>
In-reply-to
Content
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().
History
Date User Action Args
2010-01-30 10:38:36Sami.Zerradesetrecipients: + Sami.Zerrade, yury
2010-01-30 10:38:36Sami.Zerradesetmessageid: <1264847916.58.0.40818664695.issue7567@psf.upfronthosting.co.za>
2010-01-30 10:38:35Sami.Zerradelinkissue7567 messages
2010-01-30 10:38:34Sami.Zerradecreate