Open mirumirumi opened 1 year ago
Additional information.
It appears that the bug is not whether there is a newline character in the prompt string, but whether the entire line, including the prompt and default string, is newlined on the terminal.
However, I do not know why the reproducibility was not 100% in this case (previous reports always reproduced).
I found a strange behavior. I don't know if it is something that can be controlled by the crate, but I will report it.
Description
This works fine:
The cursor moves correctly even if the string being entered is deleted.
However, this does not work fine:
Press the backspace key anywhere,
The movable range of the cursor is displaced. (The second image shows the left end of the cursor, which appears to actually have letters, but cannot be moved.)
I have checked everything with Windows Terminal, iTerm2 on Mac, and VS Code's built-in terminal.
Reproduction
https://github.com/mirumirumi/reproduction-dialoguer
Thank you.