hoaproject / Console

The Hoa\Console library.
https://hoa-project.net/
366 stars 32 forks source link

bug in readline and ctrl + a #6

Closed marmotz closed 10 years ago

marmotz commented 10 years ago

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...

Hywan commented 10 years ago

Hello :-),

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

Thanks!

marmotz commented 10 years ago

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

Hywan commented 10 years ago

Hello :-),

Does the bug still appear since this patch d83c8f19fcd1bd856eeb4ba969fe9efb6f732f22?

marmotz commented 10 years ago

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

Hywan commented 10 years ago

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

marmotz commented 10 years ago

I'm agree