[Bug 10976] vi may lose ESCape key input

bugzilla at busybox.net bugzilla at busybox.net
Fri May 25 14:51:53 UTC 2018


https://bugs.busybox.net/show_bug.cgi?id=10976

--- Comment #6 from Mike Berger <mabnhdev at gmail.com> ---
(In reply to Denys Vlasenko from comment #5)

No, it's more than the entire sequence being ignored - read_key() silently
drops the bad ESC sequence PLUS any other data that happens to be buffered.

I really don't want to make this bug about the behavior of read_key().  I think
read_key() behavior is suitable for any application that does not perform it's
own ESC processing.  It is unsuitable for any application that must perform its
own ESC handling - like vi.

The point of this bug is that vi is not behaving correctly in some corner cases
because it is using an input function that processes ESC keys in a
non-deterministic way.

In most cases, the ESC is merely passed through and everything works fine. 
But, I've provided a case where vi does not behave properly.  The vi applet
needs to see the ESC key, not a processed ESC sequence.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the busybox-cvs mailing list