From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48055) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bKA5K-0007WZ-13 for qemu-devel@nongnu.org; Mon, 04 Jul 2016 16:03:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bKA5H-0002jO-Uj for qemu-devel@nongnu.org; Mon, 04 Jul 2016 16:03:13 -0400 Received: from mx1.redhat.com ([209.132.183.28]:60081) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bKA5H-0002jK-P8 for qemu-devel@nongnu.org; Mon, 04 Jul 2016 16:03:11 -0400 Message-ID: <1467662589.15123.194.camel@redhat.com> From: Gerd Hoffmann Date: Mon, 04 Jul 2016 22:03:09 +0200 In-Reply-To: <20160704153448.GB2039@morn.lan> References: <1467370471-20554-1-git-send-email-kraxel@redhat.com> <1467370471-20554-3-git-send-email-kraxel@redhat.com> <20160701170739.GB11200@morn.lan> <1467623805.15123.166.camel@redhat.com> <20160704153448.GB2039@morn.lan> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 Subject: Re: [Qemu-devel] [SeaBIOS] [RFC PATCH 2/2] serial console, input List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Kevin O'Connor Cc: seabios@seabios.org, qemu-devel@nongnu.org Hi, > Does the original code flush the multi-byte sequence on a timeout? I > suspect it is important that one can hit ESC without having to type > another key. Also, I'd prefer to avoid backwards gotos if possible. Yes, sort of. If it didn't match an escape sequence and hasn't seen additional data on this particular sercon_handle_event call it goes on interpret the buffer content as single byte. So, effectively the timeout is the clock_update() call interval. cheers, Gerd