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: Sun, 01 Jun 2014 15:46:00 -0400 Message-ID: <20140601194600.GA4565@aerie.jexium-island.net> 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> <834n04bhak.fsf@gnu.org> 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=KsGdsel6WgEHnImy X-Trace: ger.gmane.org 1401652047 10080 80.91.229.3 (1 Jun 2014 19:47:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 1 Jun 2014 19:47:27 +0000 (UTC) Cc: 17497@debbugs.gnu.org, dickey@his.com To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jun 01 21:47: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 1WrBiv-0004xs-4r for geb-bug-gnu-emacs@m.gmane.org; Sun, 01 Jun 2014 21:47:17 +0200 Original-Received: from localhost ([::1]:41875 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WrBiu-0006Gw-NN for geb-bug-gnu-emacs@m.gmane.org; Sun, 01 Jun 2014 15:47:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33111) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WrBim-0006Fz-4i for bug-gnu-emacs@gnu.org; Sun, 01 Jun 2014 15:47:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WrBih-0006F0-95 for bug-gnu-emacs@gnu.org; Sun, 01 Jun 2014 15:47:08 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:41204) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WrBih-0006Es-6H for bug-gnu-emacs@gnu.org; Sun, 01 Jun 2014 15:47:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WrBig-00018a-99 for bug-gnu-emacs@gnu.org; Sun, 01 Jun 2014 15:47: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: Sun, 01 Jun 2014 19:47: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.14016519914315 (code B ref 17497); Sun, 01 Jun 2014 19:47:02 +0000 Original-Received: (at 17497) by debbugs.gnu.org; 1 Jun 2014 19:46:31 +0000 Original-Received: from localhost ([127.0.0.1]:40081 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WrBiA-00017V-9p for submit@debbugs.gnu.org; Sun, 01 Jun 2014 15:46:31 -0400 Original-Received: from vms173013pub.verizon.net ([206.46.173.13]:54411) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WrBi7-00017B-Qw for 17497@debbugs.gnu.org; Sun, 01 Jun 2014 15:46:28 -0400 Original-Received: from localhost.localdomain ([unknown] [96.241.179.238]) by vms173013.mailsrvcs.net (Sun Java(tm) System Messaging Server 7u2-7.02 32bit (built Apr 16 2009)) with ESMTPA id <0N6I00BI99KOCY21@vms173013.mailsrvcs.net> for 17497@debbugs.gnu.org; Sun, 01 Jun 2014 14:46:05 -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 s51Jk0mR004599 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Sun, 01 Jun 2014 15:46:00 -0400 Original-Received: (from tom@localhost) by localhost.localdomain (8.14.3/8.14.3/Submit) id s51Jk0aW004597; Sun, 01 Jun 2014 15:46:00 -0400 Content-disposition: inline In-reply-to: <834n04bhak.fsf@gnu.org> 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:89868 Archived-At: --KsGdsel6WgEHnImy Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Jun 01, 2014 at 09:45:07PM +0300, Eli Zaretskii wrote: > > Date: Sun, 01 Jun 2014 13:18:17 -0400 > > From: Thomas Dickey > > Cc: Eli Zaretskii , 17497@debbugs.gnu.org > >=20 > > What ncurses does when it's getting behind is to drop updates - the > > typeahead feature: > >=20 > > The curses library does ``line-breakout optimization'' by look= ing for > > typeahead periodically while updating the screen. If input is = found, > > and it is coming from a tty, the current update is postponed un= til re- > > fresh or doupdate is called again. This allows faster response = to com- > > mands typed in advance. Normally, the input FILE pointer pa= ssed to > > newterm, or stdin in the case that initscr was used, will be use= d to do > > this typeahead checking. The typeahead routine specifies that t= he file > > descriptor fd is to be used to check for typeahead instead. If = fd is > > -1, then no typeahead checking is done. >=20 > So buffering output more aggressively could help, is that what you are > saying? >=20 > We currently fflush the stream every 900 bytes and also every 10 > screen lines or so. Does that sound reasonable? I don't think that will be enough: the output stream simply is not fast enough to keep up. The typeahead feature is crude, but works. A more elegant approach (perhaps complicated) would be to keep track of the changes since the beginning of a repaint, and store _those_ into a buffer which could be discarded if it is not written before the next input character is detected. --=20 Thomas E. Dickey http://invisible-island.net ftp://invisible-island.net --KsGdsel6WgEHnImy 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) iEYEARECAAYFAlOLgvgACgkQcCNT4PfkjtuVagCgwDQTZ5dTNFn+5pzHE7UZGGxq +/MAoNrr6wEAVDjb6Nu/Nns4TCCkLl9p =dEK+ -----END PGP SIGNATURE----- --KsGdsel6WgEHnImy--