[New-bugs-announce] [issue3948] readline steals sigwinch

Shish report at bugs.python.org
Tue Sep 23 22:59:29 CEST 2008

New submission from Shish <shish+python at shishnet.org>:

I have an app which wants to use a mostly curses interface with some 
parts readline, however, doing so much as "import readline" causes 
readline to claim ownership of sigwinch, thus breaking the ability of 
the app to resize.

Worse, it seems to claim it at the C level -- doing signal.getsignal
(signal.SIGWINCH) returns SIG_DFL, so I can't see anything I can do at 
the python level to manually set the signals to be handled in the way I 
want :-/

I would think it best to set the handler at the start (for 
compatability, and because the vast majority of apps will expect it 
that way), but set it via python's signal module, so that app writers 
can take the signal handler and call it in their own way (In my case, I 
want the app to listen for the signal, and the app's handler will call 
readline's and curses's handlers in turn)

components: Extension Modules
messages: 73667
nosy: shish
severity: normal
status: open
title: readline steals sigwinch
type: behavior
versions: Python 2.4

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list