thousandlemons/Java-Console-View

Ability to execute async task from ActionView and provide ability to stop the async task

Opened this issue · 1 comments

Hi! I really like the library and command line menu creation is made easy. I have a very specific requirement wherein I start an async task from ActionView. The current behaviour is to return back to show a pause message and then return to the menu. Instead what I want is to prompt the user to for stopping the task. If the user presses some key, E.g. S the task will be somehow stopped and then the user should be presented with a pause message or taken back to the menu again. How can this be achieved?

The easiest way would be letting the user pressing control + C to terminate the program.