Bug #79648 [NEW]: Control + Arrows not working in Interactive PHP `php -a`
| From: | d28b312d at opayq dot com | Date: | Thu, 28 May 2020 16:21:39 +0000 |
| Subject: | Bug #79648 [NEW]: Control + Arrows not working in Interactive PHP `php -a` | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-227222@lists.php.net to get a copy of this message | ||
From: d28b312d at opayq dot com
Operating system: Windows 10 + Cygwin
PHP version: Irrelevant
Package: Readline related
Bug Type: Bug
Bug description:Control + Arrows not working in Interactive PHP
php -a
Description:
------------
The Cygwin PHP version is compiled with libedit which in itself isn't
bad but it seems on Cygwin it's outputting symbols such as ;5C and
;5D instead of moving the cursor.
I have a valid inputrc file (used by bash for readline) and that works
fine so for bash this is all working.
I tried creating an editrc file ~/.editrc and it seems PHP doesn't
load this, nor does it obey the EDITRC env var either.
bind "\e[1;5D" vi-prev-word
bind "\e[1;5C" vi-next-word
My TERM Is 'xterm-256color' and this happens on any terminal (mintty
or cmd).
Expected result:
----------------
Control + Arrows to work
Actual result:
--------------
/c/src/somesource (master) [0] $ php -a
Interactive shell
php > ;5D;5C;5D;5C
--
Edit bug report at https://bugs.php.net/bug.php?id=79648&edit=1
--
Fix committed: https://bugs.php.net/fix.php?id=79648&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=79648&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=79648&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=79648&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=79648&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=79648&r=support
Expected behavior: https://bugs.php.net/fix.php?id=79648&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=79648&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=79648&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=79648&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=79648&r=phptooold
Daylight Savings: https://bugs.php.net/fix.php?id=79648&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=79648&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=79648&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=79648&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=79648&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=79648&r=mysqlcfg