zsh-workers
 help / color / mirror / code / Atom feed
* zsh 5.6 doesn't get terminal size change information with "less"
@ 2018-09-12  0:44 ` Vincent Lefevre
  2018-09-12  8:34   ` Peter Stephenson
  0 siblings, 1 reply; 8+ messages in thread
From: Vincent Lefevre @ 2018-09-12  0:44 UTC (permalink / raw)
  To: zsh-workers

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.

-- 
Vincent Lefèvre <vincent@vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: zsh 5.6 doesn't get terminal size change information with "less"
  2018-09-12  0:44 ` zsh 5.6 doesn't get terminal size change information with "less" Vincent Lefevre
@ 2018-09-12  8:34   ` Peter Stephenson
  2018-09-12 14:12     ` Daniel Shahaf
  0 siblings, 1 reply; 8+ messages in thread
From: Peter Stephenson @ 2018-09-12  8:34 UTC (permalink / raw)
  To: zsh-workers

On Wed, 12 Sep 2018 02:44:21 +0200
Vincent Lefevre <vincent@vinc17.net> 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);
 		    }
 		}
 	    }

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: zsh 5.6 doesn't get terminal size change information with "less"
  2018-09-12  8:34   ` Peter Stephenson
@ 2018-09-12 14:12     ` Daniel Shahaf
  2018-09-12 14:18       ` Peter Stephenson
  0 siblings, 1 reply; 8+ messages in thread
From: Daniel Shahaf @ 2018-09-12 14:12 UTC (permalink / raw)
  To: zsh-workers

Peter Stephenson wrote on Wed, 12 Sep 2018 09:34 +0100:
> That attachtty() was new back in April --- it needs an
> adjustwinsize() alongside it, like many of those in jobs.c.

Sounds like a 5.6.2 is in order.  When shall that be cut?

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: zsh 5.6 doesn't get terminal size change information with "less"
  2018-09-12 14:12     ` Daniel Shahaf
@ 2018-09-12 14:18       ` Peter Stephenson
  2018-09-12 14:24         ` Daniel Shahaf
  0 siblings, 1 reply; 8+ messages in thread
From: Peter Stephenson @ 2018-09-12 14:18 UTC (permalink / raw)
  To: zsh-workers

On Wed, 12 Sep 2018 14:12:53 +0000
Daniel Shahaf <d.s@daniel.shahaf.name> wrote:
> Peter Stephenson wrote on Wed, 12 Sep 2018 09:34 +0100:
> > That attachtty() was new back in April --- it needs an
> > adjustwinsize() alongside it, like many of those in jobs.c.  
> 
> Sounds like a 5.6.2 is in order.  When shall that be cut?

We could wait to the weekend, but I'm on holiday next week.

pws

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: zsh 5.6 doesn't get terminal size change information with "less"
  2018-09-12 14:18       ` Peter Stephenson
@ 2018-09-12 14:24         ` Daniel Shahaf
  2018-09-12 14:40           ` Peter Stephenson
  0 siblings, 1 reply; 8+ messages in thread
From: Daniel Shahaf @ 2018-09-12 14:24 UTC (permalink / raw)
  To: zsh-workers

Peter Stephenson wrote on Wed, 12 Sep 2018 15:18 +0100:
> On Wed, 12 Sep 2018 14:12:53 +0000
> Daniel Shahaf <d.s@daniel.shahaf.name> wrote:
> > Peter Stephenson wrote on Wed, 12 Sep 2018 09:34 +0100:
> > > That attachtty() was new back in April --- it needs an
> > > adjustwinsize() alongside it, like many of those in jobs.c.  
> > 
> > Sounds like a 5.6.2 is in order.  When shall that be cut?
> 
> We could wait to the weekend, but I'm on holiday next week.

Today and Fri both work for me.  For future reference, does anyone
besides you have upload access to zsh.org/pub/?

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: zsh 5.6 doesn't get terminal size change information with "less"
  2018-09-12 14:24         ` Daniel Shahaf
@ 2018-09-12 14:40           ` Peter Stephenson
  2018-09-12 14:57             ` Bart Schaefer
  2018-09-12 15:01             ` Daniel Shahaf
  0 siblings, 2 replies; 8+ messages in thread
From: Peter Stephenson @ 2018-09-12 14:40 UTC (permalink / raw)
  To: zsh-workers

On Wed, 12 Sep 2018 14:24:29 +0000
Daniel Shahaf <d.s@daniel.shahaf.name> wrote:
> Peter Stephenson wrote on Wed, 12 Sep 2018 15:18 +0100:
> > On Wed, 12 Sep 2018 14:12:53 +0000
> > Daniel Shahaf <d.s@daniel.shahaf.name> wrote:  
> > > Peter Stephenson wrote on Wed, 12 Sep 2018 09:34 +0100:  
> > > > That attachtty() was new back in April --- it needs an
> > > > adjustwinsize() alongside it, like many of those in jobs.c.    
> > > 
> > > Sounds like a 5.6.2 is in order.  When shall that be cut?  
> > 
> > We could wait to the weekend, but I'm on holiday next week.  
> 
> Today and Fri both work for me.  For future reference, does anyone
> besides you have upload access to zsh.org/pub/?

Better be Friday, but I won't get around to tidying up till somewhat
later.

I believe Bart has access, or used to.

pws

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: zsh 5.6 doesn't get terminal size change information with "less"
  2018-09-12 14:40           ` Peter Stephenson
@ 2018-09-12 14:57             ` Bart Schaefer
  2018-09-12 15:01             ` Daniel Shahaf
  1 sibling, 0 replies; 8+ messages in thread
From: Bart Schaefer @ 2018-09-12 14:57 UTC (permalink / raw)
  To: Peter Stephenson; +Cc: Zsh hackers list

[-- Attachment #1: Type: text/plain, Size: 390 bytes --]

On Wed, Sep 12, 2018, 7:40 AM Peter Stephenson <p.stephenson@samsung.com>
wrote:

> On Wed, 12 Sep 2018 14:24:29 +0000
> Daniel Shahaf <d.s@daniel.shahaf.name> wrote:
> > Today and Fri both work for me.  For future reference, does anyone
> > besides you have upload access to zsh.org/pub/?
>
> I believe Bart has access, or used to.
>

I don't think I've ever had access to zsh.org, sorry.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: zsh 5.6 doesn't get terminal size change information with "less"
  2018-09-12 14:40           ` Peter Stephenson
  2018-09-12 14:57             ` Bart Schaefer
@ 2018-09-12 15:01             ` Daniel Shahaf
  1 sibling, 0 replies; 8+ messages in thread
From: Daniel Shahaf @ 2018-09-12 15:01 UTC (permalink / raw)
  To: zsh-workers

Peter Stephenson wrote on Wed, 12 Sep 2018 15:40 +0100:
> Better be Friday, but I won't get around to tidying up till
> somewhat later.

That's fine.  I'll tag/upload/announce on Fri and you can upload to
zsh.org after the announcement.

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2018-09-12 15:02 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <CGME20180912005142epcas1p1ae6ae9743cca80301c302104047c03c6@epcas1p1.samsung.com>
2018-09-12  0:44 ` zsh 5.6 doesn't get terminal size change information with "less" Vincent Lefevre
2018-09-12  8:34   ` Peter Stephenson
2018-09-12 14:12     ` Daniel Shahaf
2018-09-12 14:18       ` Peter Stephenson
2018-09-12 14:24         ` Daniel Shahaf
2018-09-12 14:40           ` Peter Stephenson
2018-09-12 14:57             ` Bart Schaefer
2018-09-12 15:01             ` Daniel Shahaf

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

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 NNTP newsgroup(s).