3

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.

1 Answer 1

2

For those who are still experiencing this issue, I raised a bug at php.net and got an answer there - https://bugs.php.net/bug.php?id=65191&thanks=6

My ~/.editrc:

    bind \\e[3~ ed-delete-next-char
    bind \\e[1;5C vi-next-word
    bind \\e[1;5D vi-prev-word

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .