GNU bug report logs - #30544
26.0.91; ansi-term duplicates 2 line zsh prompts any time windows change (maybe other times)

Previous Next

Package: emacs;

Reported by: Aaron Jensen <aaronjensen <at> gmail.com>

Date: Tue, 20 Feb 2018 02:09:01 UTC

Severity: minor

Tags: confirmed, fixed

Found in versions 26.0.91, 25.1

Fixed in version 26.1

Done: Noam Postavsky <npostavs <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Aaron Jensen <aaronjensen <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 30544 <at> debbugs.gnu.org, Noam Postavsky <npostavs <at> gmail.com>
Subject: bug#30544: 26.0.91; ansi-term duplicates 2 line zsh prompts any time windows change (maybe other times)
Date: Wed, 14 Mar 2018 13:25:16 -0700
On Wed, Mar 14, 2018 at 11:30 AM, Eli Zaretskii <eliz <at> gnu.org> wrote:
> I think the problem in term.el is because we send the TIOCSWINSZ ioctl
> when we shouldn't, see window-adjust-process-window-size-function and
> set-process-window-size.  We had similar issues in the past, see
> bug#24465.

Hmm, this is tricky. For my case, I'd only want to send TIOCSWINSZ if
the width changes. However, if someone ran a full screen application
in a term, they'd want it to send that if the height or width changed
I imagine.

I guess my wondering is what is different about term.el vs iTerm.
iTerm has similar artifacts in zsh if the width is adjusted, but not
when the height is adjusted.

AFAICT the only things they do different are they rate limit the
setting and they prevent setting it if the size is already as it
should be.

https://github.com/gnachman/iTerm2/blob/f8a5930b5c47fa6420f423fcb33320029abdcd5b/sources/PTYTask.m#L873




This bug report was last modified 7 years and 47 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.