Closed
Description
Symfony added "readline" support for console in #15382. The feature works OK when using the arrow keys, but it suffers some issues:
- It doesn't limit the arrow keys movement:
- If you delete or type new characters after arrow key movements, this happens:
This is the test script that I used with symfony/console 2.8.x@dev
:
require_once __DIR__.'/vendor/autoload.php';
use Symfony\Component\Console\Question\Question;
use Symfony\Component\Console\Helper\QuestionHelper;
use Symfony\Component\Console\Input\ArgvInput;
use Symfony\Component\Console\Output\ConsoleOutput;
$helper = new QuestionHelper();
$question = new Question('Enter the name of the bundle: ', '');
$bundle = $helper->ask(new ArgvInput(), new ConsoleOutput(), $question);
My readline
configuration: