Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 0.3.2

Bug #16028 arrows don't work on os x
Submitted: 2009-03-12 21:28 UTC
From: quinn Assigned:
Status: Bogus Package: PHP_Shell (version 0.3.0)
PHP Version: 5.2.5 OS: os x 10.5.6
Roadmaps: (Not assigned)    
Subscription  


 [2009-03-12 21:28 UTC] quinn (Quinn Shanahan)
Description: ------------ using the arrow keys causes strange characters to be written to the screen, rather than navigating through whats been typed or the command history. Test script: --------------- :php-shell.sh PHP-Shell - Version 0.3.0 (c) 2006, Jan Kneschke <jan@kneschke.de> >> use '?' to open the inline help >> array(); array ( ) >> ^[[A^[[C^[[B^[[D^[[B

Comments

 [2010-08-03 12:01 UTC] jespino (Jesús Espino)
I think this is not a bug. You need to have installed the readline library in your php. You can check in the php-shell runing the function function_exists('readline'), if it return false, then you have not support for readline, and you can't use arrow keys. The solution is compile the php with readline support or install a precompiled php package with readline support activated.
 [2010-08-08 20:39 UTC] jespino (Jesús Espino)
-Status: Open +Status: Bogus
Thank you for taking the time to write to us, but this is not a bug. This is the expected behavior when the PHP has been compiled without readline library support.