Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: prompt reprinting on SIGWINCH



On May 25, 10:56am, Clint Adams wrote:
}
} Is this really a bug?
} 
} ----- Forwarded message from Neil Conway <nconway@xxxxxxxxxxxxxxxxxx> -----
} 
} (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   



Messages sorted by: Reverse Date, Date, Thread, Author