From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#17497: 24.4.50; TTY menu glitches Date: Thu, 05 Jun 2014 18:00:15 +0300 Message-ID: <83vbsf5rls.fsf@gnu.org> 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> <20140605082151.GA4417@aerie.jexium-island.net> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1401980488 9386 80.91.229.3 (5 Jun 2014 15:01:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 5 Jun 2014 15:01:28 +0000 (UTC) Cc: 17497@debbugs.gnu.org, dickey@his.com To: dickey@his.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jun 05 17:01:18 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 1WsZAL-00048L-P6 for geb-bug-gnu-emacs@m.gmane.org; Thu, 05 Jun 2014 17:01:17 +0200 Original-Received: from localhost ([::1]:41930 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WsZAL-0005OX-Ao for geb-bug-gnu-emacs@m.gmane.org; Thu, 05 Jun 2014 11:01:17 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40388) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WsZAC-0005Kj-Ms for bug-gnu-emacs@gnu.org; Thu, 05 Jun 2014 11:01:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WsZA6-0001TZ-Fd for bug-gnu-emacs@gnu.org; Thu, 05 Jun 2014 11:01:08 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:46994) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WsZA6-0001TI-CV for bug-gnu-emacs@gnu.org; Thu, 05 Jun 2014 11:01:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WsZA5-0008AY-RS for bug-gnu-emacs@gnu.org; Thu, 05 Jun 2014 11:01:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 05 Jun 2014 15:01:01 +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.140198044331363 (code B ref 17497); Thu, 05 Jun 2014 15:01:01 +0000 Original-Received: (at 17497) by debbugs.gnu.org; 5 Jun 2014 15:00:43 +0000 Original-Received: from localhost ([127.0.0.1]:45871 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WsZ9i-00089a-RP for submit@debbugs.gnu.org; Thu, 05 Jun 2014 11:00:42 -0400 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:64493) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WsZ9d-00089B-8B for 17497@debbugs.gnu.org; Thu, 05 Jun 2014 11:00:37 -0400 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0N6P00500AIP4L00@a-mtaout22.012.net.il> for 17497@debbugs.gnu.org; Thu, 05 Jun 2014 18:00:26 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0N6P0044SB0QH790@a-mtaout22.012.net.il>; Thu, 05 Jun 2014 18:00:26 +0300 (IDT) In-reply-to: <20140605082151.GA4417@aerie.jexium-island.net> X-012-Sender: halo1@inter.net.il 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:90055 Archived-At: > Date: Thu, 05 Jun 2014 04:21:51 -0400 > From: Thomas Dickey > Cc: Thomas Dickey , 17497@debbugs.gnu.org, > Eli Zaretskii > > > 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. I don't think this is the problem in this case. The arrow keys are clearly decoded correctly and obeyed, as we see the reaction to them, which is to redraw certain portions of the screen. It's not like an arrow key we get from the keyboard is sent verbatim to the terminal; rather, Emacs interprets that key as a command to change the background of two screen lines, and then sends the related commands, including cursor motion, to the terminal. IOW, the cursor motion commands sent to the terminal are not what we receive from the keyboard, they are generated by Emacs using a non-trivial logic in cmgoto (which could decide that it is better to send a single newline character, if it needs to move down just one line, or move to the upper-left corner of the screen, for example). Moreover, using C-n and C-p, which are single bytes, doesn't make the problem go away. So some other factor is at work here. Keyboard input is unrelated, at least as far as Emacs's code is concerned.