Bash 4.4 provide PS0:
The value of this parameter is expanded like PS1 and displayed by
interactive shells after reading a command and before the command
We will use it to restore cursor to block before executing a command, add this to your bashrc:
If you use tmux:
If you ...