Closed Siecje closed 6 years ago
Thanks for reporting @Siecje ! This looks like it only affects the prompt_toolkit backend -- the prompt is being drawn in the wrong place due to the lack of a trailing newline and then it's being redrawn for some reason after hitting Enter.
I agree with @gforsyth. This seems to be a PTK only thing. Have you opened an issue with them?
Since this seems like it is a WONT-FIX from prompt-toolkit, I feel that this is now a feature request similar to #448. Pull requests still welcome!
I'm going to close this as a WONT-FIX
due to the upstream WONT-FIX
.
Note, however, that a workaround / solution was put in in #2412
With the prompt_toolkit
backend you can set $XONSH_APPEND_NEWLINE=True
to force the insertion of a newline if there is not one present and avoid the overdrawing of the prompt.
better default behaviour proposed over at #2605
If the prompt doesn't start at the beginning of a line the characters before the prompt will disappear when you press enter.
For example
If I press enter (with a command or without)
}~/./xonsh $
line becomes~/./xonsh $
xonfig