magmax / python-inquirer

A collection of common interactive command line user interfaces, based on Inquirer.js (https://github.com/SBoudrias/Inquirer.js/)
MIT License
1.01k stars 97 forks source link

Inquirer.Text duplicates on line break #471

Open fynnfluegge opened 12 months ago

fynnfluegge commented 12 months ago

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

Cube707 commented 12 months ago

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

Cube707 commented 12 months ago

Duplicate of #26

guysalt commented 11 months ago

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:)