Bug #79648 [Opn]: Control + Arrows not working in Interactive PHP `php -a`

From: Date: Thu, 28 May 2020 17:11:11 +0000
Subject: Bug #79648 [Opn]: Control + Arrows not working in Interactive PHP `php -a`
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-227223@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=79648&edit=1 ID: 79648 Updated by: cmb@php.net Reported by: d28b312d at opayq dot com Summary: Control + Arrows not working in Interactive PHP `php -a` Status: Open Type: Bug Package: Readline related Operating System: Windows 10 + Cygwin PHP Version: Irrelevant Block user comment: N Private report: N New Comment: > The Cygwin PHP version is compiled with libedit […] Why? Did you ask the maintainers? Previous Comments: ------------------------------------------------------------------------ [2020-05-28 16:21:39] d28b312d at opayq dot com 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 this bug report at https://bugs.php.net/bug.php?id=79648&edit=1

« previous php.bugs (#227223) next »