Eric Price added the comment:
Hmm, I'm not seeing comments in the review?
You're right about the order. When we don't have sigaction, python's signal
handler will reinstall itself, so we need to reinstall this one after calling
the old handler.
--
Added file: ht
Eric Price added the comment:
Well, I could piggyback on the existing flags if I just wanted to support
readline -- there are already two flags for readline 4.0 -- but if our real
goal is to be compatible with editline, we probably need another flag.
I think you're right that it s
Eric Price added the comment:
(To be clear, it now works in general for Python signal handlers, and when C
handlers are inserted but not deleted.)
For a conditional ifdef, does that mean I should add another test/variable in
configure.ac
Eric Price added the comment:
Hmm, OK. I've made a new version of the patch that chains signal handlers. I
think that should make it match previous functionality, and work with basic
combined usage or python signal handlers.
It probably still won't work if you, say, want to star
Eric Price added the comment:
rl_resize_terminal was added in readline 4.0, released in 1999. I think we can
rely on it. =)
I don't know editline, but it probably doesn't include the readline 6.3 change
that makes this necessary, so your patch for it could just IFDEF out that line
Eric Price added the comment:
At the moment, it just overwrites any existing SIGWINCH handler.
I don't know how to do anything better -- one could try to store an existing
SIGWINCH handler and call it, but it still wouldn't really work for an
application that wanted to add and remov
Changes by Eric Price :
Removed file: http://bugs.python.org/file40844/rl_sigwinch_update.patch
___
Python tracker
<http://bugs.python.org/issue23735>
___
___
Python-bug
Eric Price added the comment:
SIGWINCH handler for readline. Fixed indentation issues.
--
Added file: http://bugs.python.org/file40870/rl_sigwinch_update.patch
___
Python tracker
<http://bugs.python.org/issue23
Changes by Eric Price :
Removed file: http://bugs.python.org/file40843/rl_sigwinch_update.patch
___
Python tracker
<http://bugs.python.org/issue23735>
___
___
Python-bug
Eric Price added the comment:
Hmm, hopefully the review tool works now. (I was generating the patch manually
from a source tarball, not a checkout.)
--
Added file: http://bugs.python.org/file40844/rl_sigwinch_update.patch
___
Python tracker
<h
Changes by Eric Price :
Removed file: http://bugs.python.org/file40837/rl_sigwinch_update.patch
___
Python tracker
<http://bugs.python.org/issue23735>
___
___
Python-bug
Eric Price added the comment:
Right, thanks, I've updated the patch.
--
Added file: http://bugs.python.org/file40843/rl_sigwinch_update.patch
___
Python tracker
<http://bugs.python.org/is
Eric Price added the comment:
This patch seems to fix the issue for me, by installing a signal handler for
SIGWINCH that sets a flag which is checked while waiting for input.
One could make a simpler patch that just calls rl_resize_terminal() from the
signal handler. That would essentially
13 matches
Mail list logo