mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-02 20:53:37 +02:00
Have ctrl_l clear the current prompt line so it is not saved in the scrollback
This commit is contained in:
@@ -4033,7 +4033,7 @@ the screen, instead of just clearing the screen. For ZSH, in :file:`~/.zshrc`, a
|
||||
.. code-block:: zsh
|
||||
|
||||
ctrl_l() {
|
||||
builtin print -rn -- $'\e[H\e[22J' > "$TTY"
|
||||
builtin print -rn -- $'\r\e[0J\e[H\e[22J' >"$TTY"
|
||||
builtin zle .reset-prompt
|
||||
builtin zle -R
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user