Message161020
Just to confirm: curses SIGWINCH handling is still (2.7/3.2) broken after importing readline.
Readline seems to set the LINES/COLUMNS environment vars, and this confuses curses, even if curses is imported after readline.
Clearing the LINES/COLUMNS vars after import readline fixes the issue:
os.environ['LINES'] = os.environ['COLUMNS'] = ''
or
os.unsetenv('LINES'); os.unsetenv('COLUMNS')
(or other variations).
I spent a couple hours tearing my hair out over this, before I found this report.
It may be possible for Python to work around this readline behavior by saving LINES/COLUMNS and restoring them after initializing readline.
Or maybe this should just be documented somewhere. |
|
Date |
User |
Action |
Args |
2012-05-17 21:51:38 | poq | set | recipients:
+ poq, akuchling, pbazant, r.david.murray, BreamoreBoy |
2012-05-17 21:51:38 | poq | set | messageid: <1337291498.92.0.0356226481381.issue2675@psf.upfronthosting.co.za> |
2012-05-17 21:51:38 | poq | link | issue2675 messages |
2012-05-17 21:51:38 | poq | create | |
|