[MacPorts] #48807: python messes with terminal state on exit
MacPorts
noreply at macports.org
Sun Sep 10 23:06:36 UTC 2017
#48807: python messes with terminal state on exit
-------------------------------------------------+-------------------------
Reporter: yselivanov@… | Owner:
| jyrkiwahlstedt
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.3.3
Resolution: | Keywords: haspatch
Port: python26 python27 python python34 |
python35 python36 libedit |
-------------------------------------------------+-------------------------
Comment (by jmroot):
Further findings:
* I'm leaning towards the missing deprep being a bug in libedit's
readline emulation. The readline docs say that rl_callback_handler_install
will prep the terminal and rl_callback_handler_remove will deprep it. They
are silent on whether an explicit call to rl_prep_terminal should need a
matching call to rl_deprep_terminal, but the actual behaviour of readline
is that it does not, so that's what libedit should emulate.
* What's going in with the prompt is that after a line is entered by the
user, libedit prints a new prompt before python has a chance to print its
output. Just using the readline() function doesn't have this issue, only
the callback-based API. I'm attaching a reduced test program.
--
Ticket URL: <https://trac.macports.org/ticket/48807#comment:137>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list