magmax/python-inquirer

Inquirer.Text duplicates on line break

fynnfluegge opened this issue · 3 comments

If a user enters a value for inquirer.Text and the value exceeds the terminal width, the inquirer prompt is duplicated on each character in the new line:

Screenshot 2023-10-07 at 13 09 18

However, it still works fine and the value is read properly but for the user it might be very confusing.


Inquirer Version

3.1.3

Platform

macOS Ventura 13.4

Python version

3.11.4

this is a known issue in the renderer. You cannot use line-breaks anywhere or it will cause issues.

#348 discusses this and PRs fixing it are welcome

Duplicate of #26

Hey there @fynnfluegge, I opened another repository that is a fork of this one that hopefully will be more responsive (Issues/PRs/..).

Feel free to take a look and ask any questions: https://github.com/guysalt/python-inquirer3

Just letting you know that i already fix that bug and made couple of other improvements! (like trim_header and trim_options options)

I still have a lot of work to do, and have plenty ideas:)