IngoMeyer441 / simple-term-menu

A Python package which creates simple interactive menus on the command line.
MIT License
492 stars 43 forks source link

status_bar does not consider | in menu entries #43

Open StephanHasler opened 2 years ago

StephanHasler commented 2 years ago

I have menu entries like: [ "Longer description 1|id_1", "Longer description 2|id_2" ]

Corresponding to the documentation the previewcommand callable gets passed the "id?". For consistency, I would expect a similar behavior for the status_bar callable. However, that gets passed "Longer description ?".

IngoMeyer441 commented 2 years ago

Thanks for reporting this. You are right, the status bar should get the part behind the bar. Will add this to my todo list...