zsh-workers
 help / color / mirror / code / Atom feed
* PATCH:  (one-liner) adjustwinsize doesn't update prompt string
@ 2005-08-06 17:20 Dan Bullok
  2005-08-08 10:32 ` Peter Stephenson
  0 siblings, 1 reply; 4+ messages in thread
From: Dan Bullok @ 2005-08-06 17:20 UTC (permalink / raw)
  To: zsh-workers

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

zsh 4.2.5 does not re-evaluate the prompt string when the window size changes.    
When the window size changes, it seems to me that zle should know about it, 
and redisplay the prompt appropriately.  Most of the two line prompts get 
very screwed up on a window resize, and you have to hit enter for them to 
behave again.

There's another closely related issue that's bugging me, which I don't have a 
fix for.  When the window is resized, zsh keeps moving the prompt down a line 
at a time.  This isn't a big deal, except that it often ends up causing the 
display to scroll up so that I can't see anything but the messed up prompt 
bits on screen.  Is it necessary to do this when the display is updated?  Is 
there a way to prevent it without messing everything else up?  I've looked at 
zrefresh for a couple of hours, but I'm completely confused by it. 
-Dan

[-- Attachment #2: zsh-4.2.5-zrefresh.diff --]
[-- Type: text/x-diff, Size: 344 bytes --]

diff -ur zsh-4.2.5.ORIG/Src/utils.c zsh-4.2.5/Src/utils.c
--- zsh-4.2.5.ORIG/Src/utils.c	2005-03-21 12:49:00.000000000 -0600
+++ zsh-4.2.5/Src/utils.c	2005-08-06 07:43:46.000000000 -0500
@@ -1054,7 +1054,7 @@
 	winchanged =
 #endif /* TIOCGWINSZ */
 	    resetneeded = 1;
-	zrefresh();
+	trashzle();
     }
 }
 
Only in zsh-4.2.5/Src: utils.c~

[-- Attachment #3: prompt_stretchy_setup --]
[-- Type: application/x-shellscript, Size: 1036 bytes --]

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

end of thread, other threads:[~2005-08-09 10:06 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-08-06 17:20 PATCH: (one-liner) adjustwinsize doesn't update prompt string Dan Bullok
2005-08-08 10:32 ` Peter Stephenson
2005-08-08 17:58   ` Dan Bullok
2005-08-09 10:05     ` Peter Stephenson

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).