Subject: | Escape characters not supported correctly |
Date: | Mon, 2 Feb 2015 11:56:23 +0100 |
To: | bug-IO-Prompter [...] rt.cpan.org |
From: | Łukasz Wrzesiński <lukasz.wrzesinski [...] gmail.com> |
Found on version: IO-Prompter-0.004011
<http://search.cpan.org/~dconway/IO-Prompter-0.004011/>
Everything works fine until special key pressed (escape sequence sent to
the console with consumed \e).
Looks like escape character is counted but nothing is printed instead of
it. When you for example hit one of the arrow keys you will see [A, [B, [C
or [D (\e is consumed). Without special characters pressed backspace,
Ctrl-B, Ctrl-F, Ctrl-A, Ctrl-E works correctly. Each hit of special key
(i.e. arrow keys) allows user to delete one additional char too much
(consume prompt message) and totally mess up Ctrl-B, Ctrl-F, Ctrl-A, Ctrl-E
behavior.
Usually in terminals \e is replaced with ^[ sequence like in the following
example:
perl -e 'print <STDIN>;'
^[[C
Best Regards,
--
Łukasz Wrzesiński