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"



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