hoaproject / Console

The Hoa\Console library.

Home Page:https://hoa-project.net/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

bug in readline and ctrl + a

marmotz opened this issue · comments

I test the code in http://hoa-project.net/Literature/Hack/Console.html#Usage_basique:

<?php

require 'vendor/autoload.php';

$rl = new Hoa\Console\Readline\Readline();

do {

    $line = $rl->readLine('> ');
    echo '< ', $line, "\n\n";

} while(false !== $line && 'quit' !== $line);

After the prompt, I type some characters then I press CTRL+a.
The cursor go just over ">".
From there, all I can press was written in first character and delete previous character

Unfortunately, I can't reproduce it...

Hello :-),

Did you press Esc or a special mapping? What terminal do you have? What platform are you running on?

Thanks!

I don't remember. I just tested to press Esc but it does not reproduce the bug.

I'm using terminator (http://gnometerminator.blogspot.fr/p/introduction.html) in Archlinux

Hello :-),

Does the bug still appear since this patch d83c8f1?

Well... As I can't reproduce this bug...

I suggest to close this issue and re-open it if the problem appears again. Do you agree?

I'm agree