Adeodato Simó wrote: > * Adeodato Simó [Wed, 12 Nov 2008 22:37:47 +0100]: > > Ping? Any ideas about this #3 issue, which is the most important one for > me? Thanks in advance. > > > 3. Losing scrollback with Ctrl-L. > > > If I type Ctrl-L to clear the screen (or run `clear`), the lines that > > were visible in the screen prior to clearing are not added to the > > scrollback buffer, i.e. they are lost. This can be checked by running: > > > % yes hello | head -n $LINES; yes bye | head -n $LINES; clear > > > If you then scroll back, you will see no more than one "bye".
If you use zsh this works for ctrl-l
# clear screen (w/ ctrl-l) with screen contents pushed into terminal's
# scrollback buffer. The clear-screen name is necessary.
clear-screen() { zle -I;repeat $((LINES-2)) echo;clear }
zle -N clear-screen
--
John Eikenberry
[[email protected] - http://zhar.net]
[PGP public key @ http://zhar.net/jae_at_zhar_net.gpg]
______________________________________________________________
"Perfection is attained, not when no more can be added, but when no more can be
removed." -- Antoine de Saint-Exupery
signature.asc
Description: Digital signature
_______________________________________________ rxvt-unicode mailing list [email protected] http://lists.schmorp.de/cgi-bin/mailman/listinfo/rxvt-unicode
