mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-19 06:54:58 +02:00
A new escape code that moves the current contents of the screen into the scrollback before clearing it
This commit is contained in:
@@ -3997,8 +3997,7 @@ clearing the screen, for example, for ZSH add the following to :file:`~/.zshrc`:
|
||||
.. code-block:: zsh
|
||||
|
||||
scroll-and-clear-screen() {
|
||||
printf '\\n%.0s' {1..$LINES}
|
||||
zle clear-screen
|
||||
printf "\e[H\e[22J"
|
||||
}
|
||||
zle -N scroll-and-clear-screen
|
||||
bindkey '^l' scroll-and-clear-screen
|
||||
|
||||
Reference in New Issue
Block a user