From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Nicholas Papadonis Newsgroups: gmane.emacs.help Subject: Re: ^L showing up in Emacs M-x shell-mode, with ksh but not bash Date: Tue, 5 Nov 2019 11:58:57 -0500 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="108101"; mail-complaints-to="usenet@blaine.gmane.org" Cc: help-gnu-emacs@gnu.org, Korn Shell To: Kurtis Rader Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Nov 05 17:59:26 2019 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iS2Av-000RxJ-F5 for geh-help-gnu-emacs@m.gmane.org; Tue, 05 Nov 2019 17:59:25 +0100 Original-Received: from localhost ([::1]:46378 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iS2Au-0006oz-Ap for geh-help-gnu-emacs@m.gmane.org; Tue, 05 Nov 2019 11:59:24 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35082) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iS2Ah-0006oh-On for help-gnu-emacs@gnu.org; Tue, 05 Nov 2019 11:59:13 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iS2Ag-00083G-2p for help-gnu-emacs@gnu.org; Tue, 05 Nov 2019 11:59:11 -0500 Original-Received: from mail-oi1-x243.google.com ([2607:f8b0:4864:20::243]:34433) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iS2Af-000831-T7 for help-gnu-emacs@gnu.org; Tue, 05 Nov 2019 11:59:10 -0500 Original-Received: by mail-oi1-x243.google.com with SMTP id l202so18180476oig.1 for ; Tue, 05 Nov 2019 08:59:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=fIAtUcxrgkcrXhXJrnWEmFXN5MuxTamuZfXS0POnTs4=; b=KyFBXDh1pZE3zUvtrzA/Vaei9iANdbF3ek866z1m8QsTSAUtuyllpMJ+TfrWu4V5Aq Tbhdcns4aCqtZVXab3ojT7ve+BR0yRs//8hW8ZEDmuk3YHljYcaLOomxPA0uWKi1bdRT +y0+U+BpiNvOqJ4aOSkFyT80kDyuuH0xt2oxZp+RW+DdE2z2A8VnGX5SDY+7fWRuCY0F KKI/eJKS4rVOon2XVKbEzXkPgpjSZbVMIGgCiYVesY2jIw66Ya6LruM7R4mH8wn6gyhs i4/BD1K+ilGQjVj0ycPqTDrOaqN0o3bo2DruzvmI4Qs8Ymib2co46cYngbEtj5E5IvpH joAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=fIAtUcxrgkcrXhXJrnWEmFXN5MuxTamuZfXS0POnTs4=; b=Q99rkM5YBs0PvZASUS6atUhcZcIVDtdpm53LW9Es7TbCne5AilOydFigCCaz9NuerP vnC9QpfZ0lmgEtFjzyMF1VVPAYcNGRGWydRZo0VSrThIxSLoCt867bN5K+tF9imOfd76 nfCcqBGyaFCj+XyN1rJM9ETyiPktDjF3x44fVaAMCNQjfKf9bHPr3i7r7HTkrxBZaTww bXx+VVhYpKTS6e/sk5Q8qw2g44NoqA/ptKAHQJv2mE6YOeVq8lylO5l5I/B/hKTmaNnf Yec94b/Dl936MnTKR/ZN2kGfE8HjIX6LqZRJwUqbUI9mbbQThiuj4zr8yE1W/FzyIQ++ yx4A== X-Gm-Message-State: APjAAAWs2z7PmScMVSiijQuW8zXHF0+2sm475mvAh8iUzmINEqBSG52+ XehQxwMr/UlYkH+UaB3pY7IQT+I3JS/RZqivOVI= X-Google-Smtp-Source: APXvYqwPiWDcZoPFtc5LyOW3vVos7d+n/ScVFFCw9WNXAQ/5WncCrjlX2M87RA2h1rJLxWDyAa9On5m9tBUtqf3++Gc= X-Received: by 2002:a05:6808:182:: with SMTP id w2mr4692322oic.55.1572973149156; Tue, 05 Nov 2019 08:59:09 -0800 (PST) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::243 X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:121796 Archived-At: This is what the child ksh M-x shell process is doing when I resize the window. As you can see the write of "> " near the end. Hopefully some folks have more insight into this. select(1, [0], NULL, NULL, NULL) = ? ERESTARTNOHAND (To be restarted if no handler) --- SIGWINCH {si_signo=SIGWINCH, si_code=SI_KERNEL} --- rt_sigaction(SIGWINCH, {sa_handler=0x55e35c5a23b0, sa_mask=[], sa_flags=SA_RESTORER|SA_INTERRUPT, sa_restorer=0x7ffb3cb91060}, {sa_handler=0x55e35c5a23b0, sa_mask=[], sa_flags=SA_RESTORER|SA_INTERRUPT, sa_restorer=0x7ffb3cb91060}, 8) = 0 ioctl(2, TIOCGWINSZ, {ws_row=9, ws_col=102, ws_xpixel=0, ws_ypixel=0}) = 0 rt_sigprocmask(SIG_UNBLOCK, [WINCH], NULL, 8) = 0 rt_sigreturn({mask=[]}) = -1 EINTR (Interrupted system call) ioctl(2, TIOCGWINSZ, {ws_row=9, ws_col=102, ws_xpixel=0, ws_ypixel=0}) = 0 poll([], 0, 50) = 0 (Timeout) ioctl(2, TIOCGWINSZ, {ws_row=9, ws_col=102, ws_xpixel=0, ws_ypixel=0}) = 0 lseek(3, 0, SEEK_END) = 2 lseek(3, 0, SEEK_CUR) = 2 lseek(3, 2, SEEK_SET) = 2 read(3, "", 65536) = 0 lseek(3, 2, SEEK_SET) = 2 read(3, "", 65536) = 0 select(1, [0], NULL, NULL, {tv_sec=0, tv_usec=0}) = 0 (Timeout) write(2, "> ", 3) = 3 select(1, [0], NULL, NULL, NULL On Mon, Nov 4, 2019 at 8:57 PM Kurtis Rader wrote: > On Mon, Nov 4, 2019 at 4:19 PM Nicholas Papadonis < > nick.papadonis.ml@gmail.com> wrote: > >> When Emacs is invoked in an X-session and when I resize a M-x shell-mode >> *shell* window by more then a single line of text, $PS2 is being output in >> the shell mode window. When I type then a number of "^L"s are >> also output in the shell mode window. >> >> I'm using /bin/ksh93 in Debian. >> >> This behavior does not occur with bash. >> >> Does anyone know why this is happening? Also, more ways to debug it? >> > > No idea what's happening, but I wouldn't leap to the conclusion that $PS2 > is being displayed. Given the presence of the [ctrl-L] chars it's just as > likely that both chars are being sent to the shell. Possibly > bracketed-paste mode is enabled by the emacs shell mode. If you start the > shell, then in a different window strace it what appears in the trace when > you resize the window? Also, you might want to try the current development > version that you'll find at https://github.com/att/ast/ > . It's easy to build if you're > willing to install Meson. > > P.S., You might want to take a look at https://asciinema.org for > capturing terminal sessions for playback. > > -- > Kurtis Rader > Caretaker of the exceptional canines Junior and Hank >