This should be easy, right?
In zsh for instance, you could put this in your .zshrc:
reset_widget() tput reset
zle -N reset_widget
bindkey "^L" reset_widget
However, this resets the terminal, but requires you hit the enter key to reshow the prompt.
Changing the command to echo -ne '\n' | tput reset has no effect either.
Is there a way to reset the terminal using a keyboard shortcut, without having to hit the enter key afterwards to show the prompt?


zsh -f.