From:             azhdanov at terricone dot com
Operating system: Linux
PHP version:      5.4.16
Package:          *General Issues
Bug Type:         Bug
Bug description:"Delete", "ctrl"+ arrows don't work in interactive interpreter

Description:
------------
When running PHP interactive interpreter with:
    
    php -a
    
"Delete" button doesn't work (produces `~` instead), jumping over words
with 
"Ctrl"+"Left Arrow" and "Ctrl"+"Right Arrow" doesn't work either (`;5D` and

`;5C`, respectively). It annoys me a lot - I use `php -a` every day. 
Worth noting, that other interpreters (irb, ipython, etc.) work good.

The problem occurs in each distro I tried - (K)Ubuntu (PHP 5.4.9-4ubuntu2.1
(cli) 
(built: Jun 11 2013 13:10:01)), Fedora (PHP 5.3.3 (cli) (built: Nov 29 2012

04:12:23)), RHEL (PHP 5.3.3 (cli) (built: Nov 29 2012 04:12:23)). Works
good on 
Mac though.

Expected result:
----------------
Ctrl+arrows should move the cursor by words, delete should delete current 
character.

Actual result:
--------------
Ctrl+left arrow produces ;5D
Ctrl+right arrow produces ;5C
Delete produces ~

-- 
Edit bug report at https://bugs.php.net/bug.php?id=65191&edit=1
-- 
Try a snapshot (PHP 5.4):   
https://bugs.php.net/fix.php?id=65191&r=trysnapshot54
Try a snapshot (PHP 5.3):   
https://bugs.php.net/fix.php?id=65191&r=trysnapshot53
Try a snapshot (trunk):     
https://bugs.php.net/fix.php?id=65191&r=trysnapshottrunk
Fixed in SVN:               https://bugs.php.net/fix.php?id=65191&r=fixed
Fixed in release:           https://bugs.php.net/fix.php?id=65191&r=alreadyfixed
Need backtrace:             https://bugs.php.net/fix.php?id=65191&r=needtrace
Need Reproduce Script:      https://bugs.php.net/fix.php?id=65191&r=needscript
Try newer version:          https://bugs.php.net/fix.php?id=65191&r=oldversion
Not developer issue:        https://bugs.php.net/fix.php?id=65191&r=support
Expected behavior:          https://bugs.php.net/fix.php?id=65191&r=notwrong
Not enough info:            
https://bugs.php.net/fix.php?id=65191&r=notenoughinfo
Submitted twice:            
https://bugs.php.net/fix.php?id=65191&r=submittedtwice
register_globals:           https://bugs.php.net/fix.php?id=65191&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=65191&r=php4
Daylight Savings:           https://bugs.php.net/fix.php?id=65191&r=dst
IIS Stability:              https://bugs.php.net/fix.php?id=65191&r=isapi
Install GNU Sed:            https://bugs.php.net/fix.php?id=65191&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=65191&r=float
No Zend Extensions:         https://bugs.php.net/fix.php?id=65191&r=nozend
MySQL Configuration Error:  https://bugs.php.net/fix.php?id=65191&r=mysqlcfg

Reply via email to