From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thomas Dickey Newsgroups: gmane.emacs.bugs Subject: bug#17497: 24.4.50; TTY menu glitches Date: Thu, 05 Jun 2014 04:21:51 -0400 Message-ID: <20140605082151.GA4417@aerie.jexium-island.net> References: <838upgbnra.fsf@gnu.org> <20140601171244.GA9362@aerie.jexium-island.net> <20140601171817.GB9362@aerie.jexium-island.net> <20140603184749.GA3646@aerie.jexium-island.net> <20140604083102.GA4928@aerie.jexium-island.net> <20140604202616.GA4589@aerie.jexium-island.net> Reply-To: dickey@his.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary=OXfL5xGRrasGEqWY X-Trace: ger.gmane.org 1401956603 29297 80.91.229.3 (5 Jun 2014 08:23:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 5 Jun 2014 08:23:23 +0000 (UTC) Cc: 17497@debbugs.gnu.org, Thomas Dickey To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jun 05 10:23:17 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WsSxA-0000VP-Ma for geb-bug-gnu-emacs@m.gmane.org; Thu, 05 Jun 2014 10:23:16 +0200 Original-Received: from localhost ([::1]:39083 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WsSxA-0002mZ-8k for geb-bug-gnu-emacs@m.gmane.org; Thu, 05 Jun 2014 04:23:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43333) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WsSx2-0002kW-9R for bug-gnu-emacs@gnu.org; Thu, 05 Jun 2014 04:23:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WsSww-0008HO-Uu for bug-gnu-emacs@gnu.org; Thu, 05 Jun 2014 04:23:08 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:45813) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WsSww-0008HK-Re for bug-gnu-emacs@gnu.org; Thu, 05 Jun 2014 04:23:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WsSww-0001Da-BS for bug-gnu-emacs@gnu.org; Thu, 05 Jun 2014 04:23:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Thomas Dickey Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 05 Jun 2014 08:23:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 17497 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 17497-submit@debbugs.gnu.org id=B17497.14019565384585 (code B ref 17497); Thu, 05 Jun 2014 08:23:02 +0000 Original-Received: (at 17497) by debbugs.gnu.org; 5 Jun 2014 08:22:18 +0000 Original-Received: from localhost ([127.0.0.1]:44690 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WsSwD-0001Bs-Nn for submit@debbugs.gnu.org; Thu, 05 Jun 2014 04:22:18 -0400 Original-Received: from vms173015pub.verizon.net ([206.46.173.15]:35603) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WsSwB-0001BZ-97 for 17497@debbugs.gnu.org; Thu, 05 Jun 2014 04:22:15 -0400 Original-Received: from localhost.localdomain ([unknown] [96.241.179.238]) by vms173015.mailsrvcs.net (Sun Java(tm) System Messaging Server 7u2-7.02 32bit (built Apr 16 2009)) with ESMTPA id <0N6O00BWJSKGY5G0@vms173015.mailsrvcs.net> for 17497@debbugs.gnu.org; Thu, 05 Jun 2014 03:21:57 -0500 (CDT) Original-Received: from localhost.localdomain (aerie [127.0.0.1]) by localhost.localdomain (8.14.3/8.14.3/Debian-9.4) with ESMTP id s558LqJT004471 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Thu, 05 Jun 2014 04:21:52 -0400 Original-Received: (from tom@localhost) by localhost.localdomain (8.14.3/8.14.3/Submit) id s558Lp4i004469; Thu, 05 Jun 2014 04:21:51 -0400 Content-disposition: inline In-reply-to: User-Agent: Mutt/1.5.20 (2009-06-14) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:90029 Archived-At: --OXfL5xGRrasGEqWY Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Jun 04, 2014 at 08:47:42PM -0400, Stefan Monnier wrote: > >> > Curses applications behave differently if you type those > >> > three characters, one-by-one, because of timing. > >> We try pretty hard to avoid using such timeouts in Emacs, so by and > >> large this doesn't apply to Emacs at all. > > As it happens, that rule of thumb doesn't apply to terminals: > > https://github.com/mirrors/emacs/blob/master/src/keyboard.c > > (it's implemented there, at any rate) >=20 > Where do you see the timeouts? start with static bool get_input_pending (int); The code's waiting for a while to ensure that it gets all of the bytes in a cursor-key/function-key/mouse-event sequence. =20 > Or rather, no, don't bother, because even there might be problem in how > we process the input escape sequences, these are unrelated to the > display glitches we see. So let's focus on the display glitches. You could cut the discussion short by making the check that I suggested: logging the decoded character/special-key values to look for instances where the decoding returns individual bytes. --=20 Thomas E. Dickey http://invisible-island.net ftp://invisible-island.net --OXfL5xGRrasGEqWY Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iEYEARECAAYFAlOQKJ8ACgkQcCNT4PfkjtuQXgCeLCrCgyzbOcB4XXkVKx/7ZQE3 nSAAoMhm9R3nBI8wKGwy57suPA14o0Tf =Uqvk -----END PGP SIGNATURE----- --OXfL5xGRrasGEqWY--