Tell me more ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

In the interactive shell oh PHP Delete key is not working and produce ~ instead. Anyone know how to get this key to work? I am using Ubuntu 13.04 if this does matter.

share|improve this question
 
have you tried ctrl + backspace ? –  h3rrmiller Jul 3 at 11:58
 
@h3rrmiller Is working with Ctrl+D, but still I want to use Delete key. –  Radu Rădeanu Jul 3 at 12:14
 
Can you explain how you get to the php prompt? –  slm Jul 5 at 18:47
 
Can you post the contents of either your ~/.inputrc (if you have one), or /etc/inputrc –  Poundex Jul 5 at 19:54
 
@sim From gnome-terminal with php -a –  Radu Rădeanu Jul 5 at 20:27
show 3 more comments

1 Answer

up vote 1 down vote accepted
+50

Have you tried running rlwrap -a around the PHP interactive shell? rlwrap fixes many of these types of problems for me in various REPLs.

share|improve this answer
 
I've installed first rlwrap with sudo apt-get rlwrap and I started PHP interactive shell with rlwrap -a php -a and now every key and shortcut key is working like in the default bash shell. Thank you! –  Radu Rădeanu Jul 9 at 5:00

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.