[MacPorts] #47827: python34 @3.4.3_2 ANSI escape code are disabled on input() with readline module

MacPorts noreply at macports.org
Sun May 24 16:43:22 PDT 2015


#47827: python34 @3.4.3_2 ANSI escape code are disabled on input() with readline
module
-----------------------+--------------------------------
 Reporter:  maoutwo@…  |      Owner:  macports-tickets@…
     Type:  defect     |     Status:  new
 Priority:  Normal     |  Milestone:
Component:  ports      |    Version:  2.3.3
 Keywords:             |       Port:  python34
-----------------------+--------------------------------
 On OS X 10.9.5 with XCode 6.2, python34 @3.4.3_2 disables ANSI escape code
 on input() with readline module.

 For example, the following command is executed by python34 @3.4.3_2 and
 Python 3.4.3 from python.org.

 {{{
 python -c 'import readline; input("\x1b[31;1mthis is a bold red prompt>
 \x1b[m");'
 }}}

 python34 @3.4.3_2 displays the following. ANSI escape code are displayed.

 {{{
 [31;1mthis is a bold red prompt> [m
 }}}

 Python 3.4.3 from python.org displayes the following. And the output is
 red and bold.

 {{{
 this is a bold red prompt>
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/47827>
MacPorts <https://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list