[ python-Bugs-1633621 ] curses should reset curses.{COLS, LINES} when term. resized
SourceForge.net
noreply at sourceforge.net
Sat May 12 18:17:10 CEST 2007
Bugs item #1633621, was opened at 2007-01-12 00:38
Message generated for change (Comment added) made by machamalahalaba
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1633621&group_id=5470
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Python Library
Group: Python 2.5
Status: Closed
Resolution: Fixed
Priority: 3
Private: No
Submitted By: Matthias Klose (doko)
Assigned to: Nobody/Anonymous (nobody)
Summary: curses should reset curses.{COLS,LINES} when term. resized
Initial Comment:
[forwarded from http://bugs.debian.org/366698]
The curses module does not reset curses.COLS and curses.LINES when the terminal is resized.
----------------------------------------------------------------------
Comment By: blubb (machamalahalaba)
Date: 2007-05-12 18:17
Message:
Logged In: YES
user_id=1791654
Originator: NO
I'm still able to reproduce this bug with Python 2.5.1. The following
script always gives the same size:
import curses
while True:
scr = curses.initscr()
print curses.LINES, curses.COLS
scr.getch()
scr.getch()
curses.endwin()
----------------------------------------------------------------------
Comment By: Walter Dörwald (doerwalter)
Date: 2007-03-06 21:47
Message:
Logged In: YES
user_id=89016
Originator: NO
Checked in as revision 54180 and 54181 (2.5)
----------------------------------------------------------------------
Comment By: Scott Dial (geekmug)
Date: 2007-03-05 23:14
Message:
Logged In: YES
user_id=383208
Originator: NO
I've reviewed this patch and I believe it to be the correct patch. I
believe it would be prudent to add a test case for this. I'm unable to
attach, but here is a link to a patch for that:
http://scottdial.com/python-dev/curses-test.patch
----------------------------------------------------------------------
Comment By: Walter Dörwald (doerwalter)
Date: 2007-02-12 19:59
Message:
Logged In: YES
user_id=89016
Originator: NO
Here's a patch that implements the requested changes.
File Added: diff.txt
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1633621&group_id=5470
More information about the Python-bugs-list
mailing list