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.

classification
Title: curses.use_env implementation error
Type: behavior Stage:
Components: Extension Modules Versions: Python 2.6
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: akuchling Nosy List: akuchling, kanru
Priority: normal Keywords: patch

Created on 2009-12-30 10:12 by kanru, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
test.py kanru, 2009-12-30 10:12
test_ctypes.py kanru, 2009-12-30 10:12
_curses.patch kanru, 2009-12-30 10:12
Messages (5)
msg97024 - (view) Author: Kan-Ru Chen (kanru) Date: 2009-12-30 10:12
According to doc: 
http://docs.python.org/library/curses.html#curses.use_env

curses.use_env() must be called before initscr(), curses man page also 
says so.

But python gives error: _curses.error: must call initscr() first

test.py is the test program, the output should change if your term 
size changed

test_ctypes.py shows the desired behavior.

ps. curses.COLS and curses.LINES doesn't change, but that's another 
story.
msg99781 - (view) Author: A.M. Kuchling (akuchling) * (Python committer) Date: 2010-02-22 16:43
Committed to trunk in rev.78318.
msg99782 - (view) Author: A.M. Kuchling (akuchling) * (Python committer) Date: 2010-02-22 16:43
Backported to 2.6 maint in rev78321.
msg99783 - (view) Author: A.M. Kuchling (akuchling) * (Python committer) Date: 2010-02-22 16:53
Ported to 3.x trunk in rev78322.
msg99787 - (view) Author: A.M. Kuchling (akuchling) * (Python committer) Date: 2010-02-22 16:59
Ported to 3.1-maint in rev78323.  Whew!
History
Date User Action Args
2022-04-11 14:56:55adminsetgithub: 51846
2010-02-22 16:59:54akuchlingsetstatus: open -> closed
resolution: fixed
messages: + msg99787
2010-02-22 16:53:55akuchlingsetmessages: + msg99783
2010-02-22 16:44:14akuchlingsetassignee: akuchling
2010-02-22 16:43:59akuchlingsetmessages: + msg99782
2010-02-22 16:43:38akuchlingsetmessages: + msg99781
2009-12-30 12:40:10r.david.murraysetpriority: normal
nosy: + akuchling
2009-12-30 10:12:52kanrusetfiles: + _curses.patch
keywords: + patch
2009-12-30 10:12:39kanrusetfiles: + test_ctypes.py
2009-12-30 10:12:21kanrucreate