Open scopatz opened 8 years ago
The cursor in multiline mode starts doing weird things if the prompt text is too large for the terminal size. For example, for a small terminal, just cd'ing into a directory will place the cursor at the end of the second line as seen by <C> below.
<C>
scopatz@localhost ~ $ xonsh --shell-type=prompt_toolkit scopatz@localhost ~ $ cd xonsh/xonsh/ptk/__pycache__ / scopatz@localhost ~/xonsh/xonsh/ptk/__pycache__ xonf ig $ <C>
Then if you start typing, it will overwrite the first line:
scopatz@localhost ~ $ xonsh --shell-type=prompt_toolkit scopatz@localhost ~ $ cd xonsh/xonsh/ptk/__pycache__ / scopatz@localhost ~/xonsh/xonsh/ptk/__pycache__ echo xonfig $ <C>
Resizing the terminal so that the prompt fits on one line, fixes the prompt dynamically:
scopatz@localhost ~/xonsh/xonsh/ptk/__pycache__ xonfig $ echo
This is on prompt-toolkit v0.57
I believe that @adqm and @gforsyth first noticed this issue.
The cursor in multiline mode starts doing weird things if the prompt text is too large for the terminal size. For example, for a small terminal, just cd'ing into a directory will place the cursor at the end of the second line as seen by
<C>
below.Then if you start typing, it will overwrite the first line:
Resizing the terminal so that the prompt fits on one line, fixes the prompt dynamically:
This is on prompt-toolkit v0.57