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: Sun, 01 Jun 2014 21:45:07 +0300 Message-ID: <834n04bhak.fsf@gnu.org> References: <83vbslbuqr.fsf@gnu.org> <20140531200947.GA779@aerie.jexium-island.net> <83lhtgbrd6.fsf@gnu.org> <20140601152657.GA15078@aerie.jexium-island.net> <838upgbnra.fsf@gnu.org> <20140601171244.GA9362@aerie.jexium-island.net> <20140601171817.GB9362@aerie.jexium-island.net> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1401648390 5391 80.91.229.3 (1 Jun 2014 18:46:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 1 Jun 2014 18:46:30 +0000 (UTC) Cc: 17497@debbugs.gnu.org To: dickey@his.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jun 01 20:46:21 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 1WrAls-0003Ug-Qz for geb-bug-gnu-emacs@m.gmane.org; Sun, 01 Jun 2014 20:46:16 +0200 Original-Received: from localhost ([::1]:41746 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WrAls-000075-F1 for geb-bug-gnu-emacs@m.gmane.org; Sun, 01 Jun 2014 14:46:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54276) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WrAlj-000063-WD for bug-gnu-emacs@gnu.org; Sun, 01 Jun 2014 14:46:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WrAle-00029N-G0 for bug-gnu-emacs@gnu.org; Sun, 01 Jun 2014 14:46:07 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:41185) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WrAle-00029H-Cq for bug-gnu-emacs@gnu.org; Sun, 01 Jun 2014 14:46:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WrAld-0007fA-Nh for bug-gnu-emacs@gnu.org; Sun, 01 Jun 2014 14:46:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 01 Jun 2014 18:46: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.140164832829392 (code B ref 17497); Sun, 01 Jun 2014 18:46:01 +0000 Original-Received: (at 17497) by debbugs.gnu.org; 1 Jun 2014 18:45:28 +0000 Original-Received: from localhost ([127.0.0.1]:40062 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WrAl6-0007dz-8R for submit@debbugs.gnu.org; Sun, 01 Jun 2014 14:45:28 -0400 Original-Received: from mtaout26.012.net.il ([80.179.55.182]:41340) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WrAl2-0007dg-Mv for 17497@debbugs.gnu.org; Sun, 01 Jun 2014 14:45:26 -0400 Original-Received: from conversion-daemon.mtaout26.012.net.il by mtaout26.012.net.il (HyperSendmail v2007.08) id <0N6I00A0068S5P00@mtaout26.012.net.il> for 17497@debbugs.gnu.org; Sun, 01 Jun 2014 21:41:57 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout26.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0N6I00BXV6LX7Y00@mtaout26.012.net.il>; Sun, 01 Jun 2014 21:41:57 +0300 (IDT) In-reply-to: <20140601171817.GB9362@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:89867 Archived-At: > Date: Sun, 01 Jun 2014 13:18:17 -0400 > From: Thomas Dickey > Cc: Eli Zaretskii , 17497@debbugs.gnu.org > > What ncurses does when it's getting behind is to drop updates - the > typeahead feature: > > The curses library does ``line-breakout optimization'' by looking for > typeahead periodically while updating the screen. If input is found, > and it is coming from a tty, the current update is postponed until re- > fresh or doupdate is called again. This allows faster response to com- > mands typed in advance. Normally, the input FILE pointer passed to > newterm, or stdin in the case that initscr was used, will be used to do > this typeahead checking. The typeahead routine specifies that the file > descriptor fd is to be used to check for typeahead instead. If fd is > -1, then no typeahead checking is done. So buffering output more aggressively could help, is that what you are saying? We currently fflush the stream every 900 bytes and also every 10 screen lines or so. Does that sound reasonable?