Closed gene1wood closed 2 years ago
Would it be preferable to wrap, or to have the width of the default screen increase? seems to me like it may be good to have an option since ive used this library in a project as a quick-and-dirty way to display a selectable table of items by having each item be a string with tabs in it to move them into columns. This is a case where having things auto-wrap wouldn't be as great, but i also see the value in it.
on first look, it seems like these lines are where the logic would need to check for line width and split it into two lines, but maybe theres some more complexity needed to make sure the second line doesnt show up as a separate selectable menu item:
seems like simply inserting newlines every 80 chars isnt quite enough.
simply truncating it is another possible option. visually cleaner but also far less usable
well it works.
edit: see linked PR for a list of issues that should be resolved before fixing
@MoralCode Nice fix! Thanks for it!
If an item is of a length greater than the screen width (default of 80 characters it doesn't wrap it merely sticks out the side of the box
Steps to reproduce
Install
v0.5.1
withpip install console-menu
Create code likeExpected results
A menu like
Actual results