[MacPorts] #48807: libedit does not restore terminal state on exit (affects python)

MacPorts noreply at macports.org
Tue Sep 12 10:04:02 UTC 2017


#48807: libedit does not restore terminal state on exit (affects python)
-------------------------------------------------+-------------------------
  Reporter:  yselivanov@…                        |      Owner:
                                                 |  MarcusCalhoun-Lopez
      Type:  defect                              |     Status:  closed
  Priority:  Normal                              |  Milestone:
 Component:  ports                               |    Version:  2.3.3
Resolution:  fixed                               |   Keywords:
      Port:  libedit python26 python27 python    |
  python34 python35 python36                     |
-------------------------------------------------+-------------------------
Changes (by jmroot):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"86fdc2922ed2b932b8c1d7a676e9ca3acc8ed85a/macports-ports"
 86fdc2922ed2b932b8c1d7a676e9ca3acc8ed85a/macports-ports]:
 {{{
 #!ConfigurableCommitTicketReference repository="macports-ports"
 revision="86fdc2922ed2b932b8c1d7a676e9ca3acc8ed85a"
 libedit: fix misbehaviour with callback-based API

 rl_callback_read_char does el_set(e, EL_UNBUFFERED, 1) after running the
 client-supplied callback. However, if the callback ran
 rl_callback_handler_remove, this undoes part of what that function did.
 So,
 don't do it if the callback has been removed.

 This fixes python's issues with not restoring terminal state on exit and
 incorrect prompt display, and should avoid reintroducing the problem
 described
 in <http://gnats.netbsd.org/48957>.

 Fixes: https://trac.macports.org/ticket/48807
 }}}

--
Ticket URL: <https://trac.macports.org/ticket/48807#comment:141>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list