php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #71076 REPL arrow history navigation problem
Submitted: 2015-12-09 21:06 UTC Modified: 2015-12-19 13:31 UTC
From: miraagewow at gmail dot com Assigned:
Status: Closed Package: CGI/CLI related
PHP Version: 7.0.0 OS: Ubuntu 14.04
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
47 - 44 = ?
Subscribe to this entry?

 
 [2015-12-09 21:06 UTC] miraagewow at gmail dot com
Description:
------------
"php -a" and other REPLs (e.g. Psysh) are having issues with history navigation.
Once some command is entered, arrow history navigation results in (example for up/down arrows):

^[[A^[[B


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2015-12-10 00:57 UTC] rasmus@php.net
-Status: Open +Status: Feedback
 [2015-12-10 00:57 UTC] rasmus@php.net
Looks ok here on Ubuntu and Debian. How did you build your PHP 7? Did you compile in readline support?
 [2015-12-10 09:28 UTC] miraagewow at gmail dot com
I've installed from famous PPA https://launchpad.net/~ondrej/+archive/ubuntu/php-7.0
 [2015-12-19 13:31 UTC] miraagewow at gmail dot com
-Status: Feedback +Status: Closed
 [2015-12-19 13:31 UTC] miraagewow at gmail dot com
Solution was found. I was missing php-readline extensions. After I've installed it - works awesome.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 18 05:01:28 2024 UTC