From: Eli Zaretskii <eliz@gnu.org>
To: LdBeth <andpuke@foxmail.com>
Cc: 59150@debbugs.gnu.org
Subject: bug#59150: 28.1; Comint shell silently send ^L
Date: Wed, 09 Nov 2022 19:06:56 +0200 [thread overview]
Message-ID: <83fsest5u7.fsf@gnu.org> (raw)
In-Reply-To: <tencent_3F3B398AF7EC618CE9B05B11FC95B9BD770A@qq.com> (message from LdBeth on Wed, 09 Nov 2022 10:26:53 -0600)
> Date: Wed, 09 Nov 2022 10:26:53 -0600
> From: LdBeth <andpuke@foxmail.com>
>
>
> 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.
next prev parent reply other threads:[~2022-11-09 17:06 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-09 16:26 bug#59150: 28.1; Comint shell silently send ^L LdBeth
2022-11-09 17:06 ` Eli Zaretskii [this message]
2022-11-09 23:01 ` LdBeth
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=83fsest5u7.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=59150@debbugs.gnu.org \
--cc=andpuke@foxmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).