If multi_select_on_accept=False, None returns even if terminal is single select
Code to reproduce
from simple_term_menu import TerminalMenu
menu_index=TerminalMenu(
menu_entries=['elem1', 'elem2'],
multi_select=False, ### Note that multi_select is False
multi_select_select_on_accept=False,
multi_select_empty_ok=True,
clear_screen=True,
).show()
assert menu_index is not None
If
multi_select_on_accept=False
,None
returns even if terminal is single selectCode to reproduce