aegirhall / console-menu

A simple Python menu system for building terminal user interfaces.
MIT License
365 stars 58 forks source link

How to properly exit the menu #69

Closed gustavobsch closed 2 years ago

gustavobsch commented 2 years ago

Hi, after running a FunctionItem I want to stop the entire program. However the current behavior goes back to the previous menu once FunctionItem has completed.

What's the proper way to exit the entire program once FunctionItem has completed?

I'm currently using os._exit() to exit the program, not sure this is the clean way to do it.

Thanks

the1gofer commented 2 years ago

checkout out should_exit