zsh-workers
 help / color / mirror / code / Atom feed
* prompt reprinting on SIGWINCH
@ 2001-05-25 14:56 Clint Adams
  2001-05-25 15:33 ` Bart Schaefer
  0 siblings, 1 reply; 2+ messages in thread
From: Clint Adams @ 2001-05-25 14:56 UTC (permalink / raw)
  To: zsh-workers; +Cc: 97880-forwarded

Is this really a bug?

----- Forwarded message from Neil Conway <nconway@klamath.dyndns.org> -----

This bug occurs using rxvt and KDE2's 'konsole', so my guess is it
effects all X terminal emulators and zsh.

First, load and enable the new prompt system:

  autoload -U promptinit
  promptinit

Then switch to any prompt:

  prompt elite2

Then resize your rxvt window. You should something like this:

(nconway@metro)(111/pts)(09:36pm:05/17/01)-
(nconway@metro)(111/pts)(09:36pm:05/17/01)-
(nconway@metro)(111/pts)(09:36pm:05/17/01)-
(nconway@metro)(111/pts)(09:36pm:05/17/01)-
(nconway@metro)(111/pts)(09:36pm:05/17/01)-
(nconway@metro)(111/pts)(09:36pm:05/17/01)-
(nconway@metro)(111/pts)(09:36pm:05/17/01)-
(nconway@metro)(111/pts)(09:36pm:05/17/01)-
(nconway@metro)(111/pts)(09:36pm:05/17/01)-
(nconway@metro)(111/pts)(09:36pm:05/17/01)-
(nconway@metro)(111/pts)(09:36pm:05/17/01)-
(nconway@metro)(111/pts)(09:36pm:05/17/01)-
(nconway@metro)(111/pts)(09:36pm:05/17/01)-
(nconway@metro)(111/pts)(09:36pm:05/17/01)-
(nconway@metro)(111/pts)(09:36pm:05/17/01)-
(nconway@metro)(111/pts)(09:36pm:05/17/01)-
(nconway@metro)(111/pts)(09:36pm:05/17/01)-
(nconway@metro)(111/pts)(09:36pm:05/17/01)-
(nconway@metro)(111/pts)(09:36pm:05/17/01)-
(nconway@metro)(111/pts)(09:36pm:05/17/01)-
(nconway@metro)(111/pts)(09:36pm:05/17/01)-
(nconway@metro)(111/pts)(09:36pm:05/17/01)-
(nconway@metro)(111/pts)(09:36pm:05/17/01)-
(nconway@metro)(111/pts)(09:36pm:05/17/01)-
(%:~)-

(Every time the size of the window is adjusted, another prompt is
printed).

Feel free to contact me for more info.

Cheers,

Neil


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

* Re: prompt reprinting on SIGWINCH
  2001-05-25 14:56 prompt reprinting on SIGWINCH Clint Adams
@ 2001-05-25 15:33 ` Bart Schaefer
  0 siblings, 0 replies; 2+ messages in thread
From: Bart Schaefer @ 2001-05-25 15:33 UTC (permalink / raw)
  To: Clint Adams, zsh-workers; +Cc: 97880-forwarded

On May 25, 10:56am, Clint Adams wrote:
}
} Is this really a bug?
} 
} ----- Forwarded message from Neil Conway <nconway@klamath.dyndns.org> -----
} 
} (Every time the size of the window is adjusted, another prompt is
} printed).


No, this is not really a bug.  It also has nothing to do with the themed
prompt system; the prompt is always reprinted whenever the window is
resized.  However, you can't *see* this happening unless the prompt has
a newline character in it (which most of the themed prompts happen to).

The prompt is reprinted because it might contain conditionals that depend
on the width of the terminal, or because there might be an RPS1 (right-
side prompt) that has to be repositioned.

-- 
Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com

Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net   


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

end of thread, other threads:[~2001-05-25 15:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-05-25 14:56 prompt reprinting on SIGWINCH Clint Adams
2001-05-25 15:33 ` Bart Schaefer

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