Java-Console-View icon indicating copy to clipboard operation
Java-Console-View copied to clipboard

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

Open shirishpandharikar opened this issue 2 years ago • 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?

shirishpandharikar avatar Apr 13 '22 14:04 shirishpandharikar

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

thousandlemons avatar Apr 13 '22 16:04 thousandlemons