From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson Newsgroups: gmane.emacs.bugs Subject: bug#44908: emacs -nw: view-lossage polluted by termcap / terminfo jazz Date: Sat, 28 Nov 2020 03:25:45 +0800 Message-ID: <87mtz2d2km.5.fsf@jidanni.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40625"; mail-complaints-to="usenet@ciao.gmane.io" To: 44908@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Nov 27 22:48:22 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kilbJ-000ASo-Rz for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 27 Nov 2020 22:48:22 +0100 Original-Received: from localhost ([::1]:59070 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kilbH-0007Lg-Sb for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 27 Nov 2020 16:48:19 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38764) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kilb1-0007LX-62 for bug-gnu-emacs@gnu.org; Fri, 27 Nov 2020 16:48:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:34853) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kilb0-0006ZS-T3 for bug-gnu-emacs@gnu.org; Fri, 27 Nov 2020 16:48:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kilb0-0007Pk-LU for bug-gnu-emacs@gnu.org; Fri, 27 Nov 2020 16:48:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 27 Nov 2020 21:48:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 44908 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.160651364428428 (code B ref -1); Fri, 27 Nov 2020 21:48:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 27 Nov 2020 21:47:24 +0000 Original-Received: from localhost ([127.0.0.1]:46392 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kilaN-0007OR-OR for submit@debbugs.gnu.org; Fri, 27 Nov 2020 16:47:24 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:58450) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kilaH-0007OF-F1 for submit@debbugs.gnu.org; Fri, 27 Nov 2020 16:47:17 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38586) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kilaH-0007JN-6D for bug-gnu-emacs@gnu.org; Fri, 27 Nov 2020 16:47:17 -0500 Original-Received: from dog.elm.relay.mailchannels.net ([23.83.212.48]:37764) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kilaF-0006WS-6R for bug-gnu-emacs@gnu.org; Fri, 27 Nov 2020 16:47:16 -0500 X-Sender-Id: dreamhost|x-authsender|jidanni@jidanni.org Original-Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 05BF064360E for ; Fri, 27 Nov 2020 21:47:13 +0000 (UTC) Original-Received: from pdx1-sub0-mail-a59.g.dreamhost.com (100-98-118-91.trex.outbound.svc.cluster.local [100.98.118.91]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 8DB28643663 for ; Fri, 27 Nov 2020 21:47:12 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jidanni@jidanni.org Original-Received: from pdx1-sub0-mail-a59.g.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.18.10); Fri, 27 Nov 2020 21:47:12 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jidanni@jidanni.org X-MailChannels-Auth-Id: dreamhost X-Lyrical-Hysterical: 7ebc40c770f2dfef_1606513632812_2348153978 X-MC-Loop-Signature: 1606513632812:675764786 X-MC-Ingress-Time: 1606513632812 Original-Received: from pdx1-sub0-mail-a59.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a59.g.dreamhost.com (Postfix) with ESMTP id 1B83B7F00A for ; Fri, 27 Nov 2020 13:47:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=jidanni.org; h=from:to :subject:date:message-id:mime-version:content-type; s= jidanni.org; bh=xG78vQ5D9IRC7Ll0Mkudo90e8no=; b=DRFe8dA8sT23sgmF zzzrldGQrTY+mt1r2pJI7YHmLM88KaFk8pmbgz9yn+Z9gA57ozXH4y4bC0XPrOyH 9xF0/huJCS78SaEhcS/VvvPJswB5VCDoFlDmHGBuIlHEE0V0H52yydFqr3ooimTV SvBq5Hz41o4DMDyMTz1hAjMFxgM= Original-Received: from jidanni.org (114-41-34-173.dynamic-ip.hinet.net [114.41.34.173]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jidanni@jidanni.org) by pdx1-sub0-mail-a59.g.dreamhost.com (Postfix) with ESMTPSA id A78A77EDC6 for ; Fri, 27 Nov 2020 13:47:11 -0800 (PST) X-DH-BACKEND: pdx1-sub0-mail-a59 Received-SPF: pass client-ip=23.83.212.48; envelope-from=jidanni@jidanni.org; helo=dog.elm.relay.mailchannels.net X-Spam_score_int: -7 X-Spam_score: -0.8 X-Spam_bar: / X-Spam_report: (-0.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_BL_SPAMCOP_NET=1.347, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:194458 Archived-At: $ emacs -Q -nw abc123 C-h l shows: ESC [ > ESC [ > 4 1 ; 3 6 2 ; 0 c ESC ] 1 1 ; r g b : 0 0 0 0 / 0 0 0 0 / 0 0 0 0 ESC \ a ;; self-insert-command b ;; self-insert-command c ;; self-insert-command 1 ;; self-insert-command 2 ;; self-insert-command 3 ;; self-insert-command C-h l ;; view-lossage Notice the super-barfy first line? The defendant swears he did not type that. All he typed was the "a". So please keep your termcap junk to yourself and don't pollute the C-h l output. > Well, we need to intiatialze the terminal. emacs -nw is for engineers > who are used to bugs anyway. Yeah, but as you see, you are "not in control of your bladder." If you were, then the first line wouldn't shove the the innocent user's "a ;; self-insert-command" all the way to the right. > Well it is just the first line of the evening. Surely they will type > more before wanting to hit C-h l. That way they usually won't notice > the bug. In fact if they type just a couple of lines of text then that > jazz will be pushed so far up that, well, let's just say nobody will > ever know. emacs-version "27.1"