Subject: | bugreport Term::Screen::getch() |
Date: | Mon, 28 Nov 2016 18:09:12 +0100 |
To: | bug-Term-Screen [...] rt.cpan.org |
From: | René Uittenbogaard <ruittenb [...] gmail.com> |
Dear sir,
I believe I found a bug in your module Term::Screen.
When Term::Screen::getch() encounters a sequence of keys which looks
like an escape sequence, but the sequence is not recognized, then the
characters read up to that point are placed back on the wrong end of
the input buffer.
It is my impression that line 514:
$this->{IN} = CORE::reverse($partial_fn_str) . $this->{IN};
should be replaced with:
$this->{IN} = $this->{IN} . CORE::reverse($partial_fn_str);
Please view the provided attachment for reproducing the bug.
Thanks in advance,
René Uittenbogaard
Message body is not shown because sender requested not to inline it.