Open nasyxx opened 6 years ago
Your code is fine here, this needs to be fixed in ptpython. It probably requires the prompt_toolkit line-prefixes branch to be merged, and then the layout needs to be rewritten so that it uses the same approach as prompt_toolkit.shortcuts.prompt for rendering the prompt. It's not a little undertaking, but hopefully this will be possible soon.
Thank you
When I custom a dynamic prompt with newlines in it, I mean '\n' in it, the width will be incorrect.
For example, if my custom prompt defines like this:
the excepted output should be:
but the fact is:
Could you show me where I should change to let this 'prompt' start from the second line
In [1]:
.