From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#59150: 28.1; Comint shell silently send ^L Date: Wed, 09 Nov 2022 19:06:56 +0200 Message-ID: <83fsest5u7.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22424"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 59150@debbugs.gnu.org To: LdBeth Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Nov 09 18:08:25 2022 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 1osoYr-0005fy-A3 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 09 Nov 2022 18:08:25 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1osoYa-0001Yp-Px; Wed, 09 Nov 2022 12:08:08 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1osoYU-0001X0-PJ for bug-gnu-emacs@gnu.org; Wed, 09 Nov 2022 12:08:04 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1osoYT-0001Bd-Ua for bug-gnu-emacs@gnu.org; Wed, 09 Nov 2022 12:08:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1osoYT-0002cM-Mo for bug-gnu-emacs@gnu.org; Wed, 09 Nov 2022 12:08:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 09 Nov 2022 17:08:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 59150 X-GNU-PR-Package: emacs Original-Received: via spool by 59150-submit@debbugs.gnu.org id=B59150.16680136289991 (code B ref 59150); Wed, 09 Nov 2022 17:08:01 +0000 Original-Received: (at 59150) by debbugs.gnu.org; 9 Nov 2022 17:07:08 +0000 Original-Received: from localhost ([127.0.0.1]:40749 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1osoXb-0002b4-JX for submit@debbugs.gnu.org; Wed, 09 Nov 2022 12:07:07 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:38468) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1osoXZ-0002aY-Dt for 59150@debbugs.gnu.org; Wed, 09 Nov 2022 12:07:06 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1osoXS-0000Lb-Mn; Wed, 09 Nov 2022 12:06:59 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=83AmoQbCO9ckHzzDBug9Vc+JOWqIr40bnfOPjZJDGBg=; b=PFEo+kESce5o tIXRyDB73U/WIZXe56eaDiab8s/1zZ/zLRr2dSFhVwvF460S2kgH0PfQxVfON9dw0zW6PiriYyKQk 2DOEG49QqYH/9ML5xY/j5jHwDHNdqihlVE52frQkMgN24fHpEkbnAySc3crEjc4cR0niptG2+cFGx ThbnBlVe1kzevm1TwrEFXI1a1deHlh7e+1gtqNGaB/YbDWf1IHT+f3tkUVlY15b5jtQr4atRQSnb/ A7lOIj+U0h9xiyuCOqe6ukdmGYHLSdfYuQU2YEhjjHOlOEk+IJUye7tcBcFqknt/gSxyi5zq1a5eu iL8e5HVxGFVVDV1dDYZnYQ==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1osoXS-0001rB-4X; Wed, 09 Nov 2022 12:06:58 -0500 In-Reply-To: (message from LdBeth on Wed, 09 Nov 2022 10:26:53 -0600) 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:247446 Archived-At: > Date: Wed, 09 Nov 2022 10:26:53 -0600 > From: LdBeth > > > To produce this bug, set login shell to ksh93u+ (which is the default > ksh on macOS and available on some package managers), I'm not sure if > other versions of ksh can reproduce this. > > However I believe this might also affect all other command line > programs that does not translate Control L as "refresh" command. > > Also I have only tried the Emacs GUI on macOS. > > Procedures to reproduce the issue: > > 1. Start M-x shell, resize the window by dragging mouse several times > > 2. then several "> " occurs: > > $ > > > > > > > > > > > 3. then type a command like "ls", and press enter key > > 4. the shell would respond: > > ^L^L^L^L^Lls: not found > > > I guess it is somewhere in shell.el has configured the behavior so > whenever window size has changed the shell prompt is refreshed. > > However this does not work out for shell programs not like bash, and > the popup minibuffer like `ivy' or `which-key' would also cause > sending "^L". > > This would annoying when have the shell opened as a split window while > editing files, although I believe set default shell to bash > is a workaround, I think this is still a bug of Emacs and worth to be > reported. This is not a bug, this is Emacs communicating to the shell that the size of the terminal has changed. You can customize this behavior via the option window-adjust-process-window-size-function.