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

Re: clearing the screen without losing anything?



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