Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inquirer.Text duplicates on line break #471

Open
fynnfluegge opened this issue Oct 7, 2023 · 3 comments
Open

Inquirer.Text duplicates on line break #471

fynnfluegge opened this issue Oct 7, 2023 · 3 comments
Labels
bug Something isn't working duplicate This issue or pull request already exists python Pull requests that update Python code

Comments

@fynnfluegge
Copy link

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
Copy link
Collaborator

Cube707 commented Oct 9, 2023

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 Cube707 added bug Something isn't working duplicate This issue or pull request already exists python Pull requests that update Python code labels Oct 9, 2023
@Cube707
Copy link
Collaborator

Cube707 commented Oct 9, 2023

Duplicate of #26

@Cube707 Cube707 marked this as a duplicate of #26 Oct 9, 2023
@guysalt
Copy link

guysalt commented Oct 20, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working duplicate This issue or pull request already exists python Pull requests that update Python code
Projects
None yet
Development

No branches or pull requests

3 participants