Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: zsh 5.6 doesn't get terminal size change information with "less"
- X-seq: zsh-workers 43450
- From: Peter Stephenson <p.stephenson@xxxxxxxxxxx>
- To: <zsh-workers@xxxxxxx>
- Subject: Re: zsh 5.6 doesn't get terminal size change information with "less"
- Date: Wed, 12 Sep 2018 09:34:01 +0100
- Cms-type: 201P
- Dkim-filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20180912083404euoutp021750a2fe6881e67d293db91266acd6f8~TmgUQbl6y2224822248euoutp02U
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1536741244; bh=xsiXJ7U5DliPSB+H3uBOO83cJd7eeXjSy0EqB4V9NHo=; h=Date:From:To:Subject:In-Reply-To:References:From; b=NgnocsZVP+goqPL9Dxfprz1IbHY0iIJdDnsGDy5dig5/sZs/Mm4le2p2/+P+0CaWQ uuI+3LpYw8V8W6M3OF66nlJCwmspbJNsj6qKX+MBjs1menvwMkPoqXLvnfXcOzv+vP FMaUZa5c5EcDyN/NV+efN64+LsRM5aB8oqcIdFxA=
- In-reply-to: <20180912004421.GA24221@zira.vinc17.org>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- Organization: SCSC
- References: <CGME20180912005142epcas1p1ae6ae9743cca80301c302104047c03c6@epcas1p1.samsung.com> <20180912004421.GA24221@zira.vinc17.org>
On Wed, 12 Sep 2018 02:44:21 +0200
Vincent Lefevre <vincent@xxxxxxxxxx> wrote:
> Another major regression in zsh 5.6 and zsh 5.6.1 (tested with both
> xterm and GNOME Terminal):
>
> 1. Open the terminal to some size.
> 2. View a file with "less" (do not quit).
> 3. Change the size of the terminal.
> 4. Quit "less".
>
> The terminal becomes unusable (at least if the size has been reduced)
> because zsh did not notice the change. If I echo $COLUMNS and $LINES,
> they still have their old values.
That attachtty() was new back in April --- it needs an
adjustwinsize() alongside it, like many of those in jobs.c.
pws
diff --git a/Src/signals.c b/Src/signals.c
index 20c6fdf..99aad0f 100644
--- a/Src/signals.c
+++ b/Src/signals.c
@@ -550,6 +550,7 @@ wait_for_processes(void)
* leader, however.
*/
attachtty(mypgrp);
+ adjustwinsize(0);
}
}
}
Messages sorted by:
Reverse Date,
Date,
Thread,
Author