Re: [PATCH 5/5] keyboard input: when an unknown sequence is seen, purge all buffered input

2012-10-25 Thread Denys Vlasenko
On Wed, Oct 24, 2012 at 9:54 AM, Oswald Buddenhagen wrote: > On Mon, Oct 22, 2012 at 04:49:45PM +0200, Denys Vlasenko wrote: >> 50 milliseconds seem to work well. > > why don't you use the existing timeout? it exists exactly for this > purpose. Good idea, I just sent an updated patch #5. (It also

Re: [PATCH 5/5] keyboard input: when an unknown sequence is seen, purge all buffered input

2012-10-24 Thread Oswald Buddenhagen
On Mon, Oct 22, 2012 at 04:49:45PM +0200, Denys Vlasenko wrote: > 50 milliseconds seem to work well. > why don't you use the existing timeout? it exists exactly for this purpose. ___ mc-devel mailing list https://mail.gnome.org/mailman/listinfo/mc-devel

[PATCH 5/5] keyboard input: when an unknown sequence is seen, purge all buffered input

2012-10-22 Thread Denys Vlasenko
When we see an unknown sequence, it is not enough to drop already received part - there can be more of it coming over e.g. a serial line. To prevent interpreting it as a random garbage, eat and discard all chars that follow. Small, but non-zero timeout is needed to reconnect escape sequence split