bchao1 / bullet

🚅 Interactive prompts made simple. Build a prompt like stacking blocks.
https://pypi.org/project/bullet/
MIT License
3.55k stars 113 forks source link

Choices wrapping to the next line breaks the visuals #42

Open ZachAndrews98 opened 5 years ago

ZachAndrews98 commented 5 years ago

Really like this library but not sure if this is something that can be fixed or has even been thought about. If a choice in a Check (have yet to try with other classes) is longer than the terminal window and causes word wrapping then the visuals for selecting a choice breaks. I can't easily describe exactly what this looks like or paste the output from the terminal in this issue, so here is a screenshot of my terminal when this occurs.

wrap1

Here there are 5 options, the last of which is obviously the one that is causing the issue

The weird visual above, that occurs first, is from attempting to move the cursor down the list and the test4->test1 that gets printed into the terminal is from trying to move the cursor back up the list.

This is a purely visual issue and does not effect selecting an item as that is still possible (albeit a little more difficult) to do and have it return the correct choice.