Skip to content

Multi-line prompt #1400

Answered by wez
zzhaolei asked this question in Q&A
Dec 14, 2021 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

This sounds OK to me; until the shell redraws its prompt, how is anything to know that there should be two lines in the prompt?
Usually you can press CTRL-L to force a line editor to redraw, or perhaps just start typing text.

You may want to consider using:

{
        key = "k",
        mods = "SUPER",
        action = {
            Multiple={
                wezterm.action {
                    ClearScrollback = "ScrollbackAndViewport"
                },
                SendKey={
                    key="l",
                    mods="CTRL",
                }
             }
         }
}

to automate that.

See:
https://wezfurlong.org/wezterm/config/lua/keyassignment/Multiple.html
https://wez…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@zzhaolei
Comment options

Answer selected by zzhaolei
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants