powerlevel10k icon indicating copy to clipboard operation
powerlevel10k copied to clipboard

TRANSIENT PROMPT not working (old prompt hasn't cleaned) with zle output

Open Jacke opened this issue 2 years ago • 0 comments

Hello there. Thanks for the amazing prompt! I have a script that prints a shell version.

function zle_eval {
    zle -I
    eval "$SHELL --version"
}
_display-shell-version() { zle_eval $SHELL --version }

zle -N _display-shell-version

bindkey '^X^V' _display-shell-version

When I use it with TRANSIENT PROMPT, it keeps the old prompt (see screenshot). Is it possible to clean up the previous line?

Screenshot 2023-03-22 at 17 40 53 Screenshot 2023-03-22 at 17 41 39 Desired behaviour (without "echo" command)

Jacke avatar Mar 22 '23 11:03 Jacke