zsh-workers
 help / color / mirror / code / Atom feed
From: Dan Bullok <dan@bullok.com>
To: zsh-workers@sunsite.dk
Subject: PATCH:  (one-liner) adjustwinsize doesn't update prompt string
Date: Sat, 6 Aug 2005 12:20:23 -0500	[thread overview]
Message-ID: <200508061220.24187.dan@bullok.com> (raw)

[-- 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 --]

             reply	other threads:[~2005-08-06 17:36 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-08-06 17:20 Dan Bullok [this message]
2005-08-08 10:32 ` Peter Stephenson
2005-08-08 17:58   ` Dan Bullok
2005-08-09 10:05     ` Peter Stephenson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200508061220.24187.dan@bullok.com \
    --to=dan@bullok.com \
    --cc=zsh-workers@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).