Ticket #2988: stop generating garbage input from unknown ESC sequences - Denys Vlasenko <vda.linux@googlemail.com> - 2012-10-22 1749.patch

File stop generating garbage input from unknown ESC sequences - Denys Vlasenko <vda.linux@googlemail.com> - 2012-10-22 1749.patch, 811 bytes (added by slavazanko, 12 years ago)
Line 
1From: Denys Vlasenko <vda.linux@googlemail.com>
2Date: Mon, 22 Oct 2012 16:49:40 +0200
3Subject: [PATCH 0/5] keyboard input: stop generating garbage input from unknown ESC sequences
4
5I got tired of seeing garbage when I press function key MC doesn't know.
6This changeset attempts to eradicate this problem.
7
8Denys Vlasenko (5):
9  keyboard input: simplify code, no logic changes
10  keyboard input: add commented-out debugging logging mechanism.
11  keyboard input: remove unreachable code
12  keyboard input: treat only ESC<char><end> or <ESC><char><ESC> as
13    valid
14  keyboard input: when an unknown sequence is seen, purge all buffered
15    input
16
17 lib/tty/key.c |  204 ++++++++++++++++++++++++++++++++++++++-------------------
18 1 files changed, 136 insertions(+), 68 deletions(-)
19
20--
211.7.7.6
22