Message73667
| Author |
shish |
| Recipients |
shish |
| Date |
2008年09月23日.20:59:28 |
| SpamBayes Score |
1.7404297e-09 |
| Marked as misclassified |
No |
| Message-id |
<1222203569.91.0.225970694441.issue3948@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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) |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2008年09月23日 20:59:29 | shish | set | recipients:
+ shish |
| 2008年09月23日 20:59:29 | shish | set | messageid: <1222203569.91.0.225970694441.issue3948@psf.upfronthosting.co.za> |
| 2008年09月23日 20:59:29 | shish | link | issue3948 messages |
| 2008年09月23日 20:59:28 | shish | create |
|