Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: clearing the screen without losing anything?
- X-seq: zsh-users 12446
- From: Andy Spiegl <zsh.Andy@xxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: clearing the screen without losing anything?
- Date: Wed, 16 Jan 2008 17:50:08 +0100
- In-reply-to: <080116080815.ZM12247@xxxxxxxxxxxxxxxxxxxxxx> <237967ef0801160756s54995f6cq220a541e6261c8c@xxxxxxxxxxxxxx>
- Kreccount: 1
- Mail-followup-to: zsh-users@xxxxxxxxxx
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20080116151349.GD16058@xxxxxxxxx> <080116080815.ZM12247@xxxxxxxxxxxxxxxxxxxxxx> <20080116151349.GD16058@xxxxxxxxx> <237967ef0801160756s54995f6cq220a541e6261c8c@xxxxxxxxxxxxxx>
Great! I combined Mikael's and Bart's solution into:
clear-screen() { zle -I;repeat $((LINES-2)) echo;clear }
zle -N clear-screen
Bart's solution works, too, but the prompt ends up in the bottom line
instead of the first line.
Wonderful, I am happy now :-)
Andy.
--
Many would never speak with a full mouth, but do it with an empty head.
(Orson Welles)
Messages sorted by:
Reverse Date,
Date,
Thread,
Author