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

Multi-line items are buggy #87

Open
johannes-braunias opened this issue Jan 12, 2024 · 1 comment
Open

Multi-line items are buggy #87

johannes-braunias opened this issue Jan 12, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@johannes-braunias
Copy link

I set up a menu with multi-line entires and there are some bugs.

  • When moving the cursor, the entries show up multiple times
  • The arrow seems to be misplaced
  • Long text seems to be cut
import simple_term_menu
terminal_menu = simple_term_menu.TerminalMenu(['Entry 1\n    Line 1\nLine 2\nLine 3 and a very loooooooooooooooooooooooooooooooooooooooooong text', 'Entry 2\n    Line 1\nLine 2\nLine3 with an even loooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooonger text, which seems to be cut before the end.'], multi_select=False, multi_select_cursor_brackets_style=('fg_black',), multi_select_cursor_style=('fg_black', 'bold'))
terminal_menu.show()
@IngoMeyer441
Copy link
Owner

Sorry for my late reply. Currently, simple-term-menu simply assumes that all menu entries are one-liners. Therefore, long texts are cut to keep every entry on one line. I tag your issue as enhancement request, since it would definitely be reasonable to allow multi-line strings.

@IngoMeyer441 IngoMeyer441 added the enhancement New feature or request label Jan 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants