#47827: python34 @3.4.3_2 ANSI escape code are disabled on input() with readline module ------------------------+------------------- Reporter: maoutwo@… | Owner: jwa@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: Port: python34 | ------------------------+------------------- Comment (by nad@…): I can reproduce the problem (on 10.10) as long as port `py34-readline` is not also installed. By default, MacPorts Pythons are linked with the MacPorts-provided BSD `libedit` library. The `py*-readline` ports replace the corresponding Python readline modules with ones linked with the (MacPorts-provided) GNU `readline` instead of `libedit`. The Pythons from python.org installers currently link with the Apple-supplied `libedit` in OS X; those versions of `libedit` are older than the current MacPorts one. So, one workaround is to just install `py34-readline`. That is currently required for some other ports, like `py34-ipython`, anyway. There has been at least one other issue reported previously on the Python bug tracker that seemed to implicate the newer version of libedit provided in MacPorts (http://bugs.python.org/issue23599). I meant to investigate it further before taking action, like reporting upstream, but I haven't gotten to it yet. Feel free to jump in. -- Ticket URL: <https://trac.macports.org/ticket/47827#comment:2> MacPorts <https://www.macports.org/> Ports system for OS X