On list prompts, only clearing the last line of the message when cursor is moved
Opened this issue · 1 comments
whinee commented
OS: Arch Linux x86_64 5.17.1-arch1-1
Inquirer version: 2.9.2
What I did:
I placed a newline at the message of a list prompt. See the following code:
import inquirer
answer = inquirer.list_input(
message="This will modify the file.\nAre you sure?",
choices=[
["Yes", "y"],
["No", "n"],
["Cancel", "c"],
]
)
print(answer)
What did I expect:
For the whole message to clear when moving the cursor.
What did I see:
When I ran the code given above, it will display a normal list prompt. However, when I move the cursor, only the last line of the message is being cleared.
Upon further inspection, the same is true for messages with more newlines in it.
Additional Information:
I have not tested this with other prompts. I am using kitty terminal.