Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Jacke opened this issue Mar 22, 2023 · 0 comments
Open

Comments

@Jacke
Copy link

Jacke commented Mar 22, 2023

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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant