Allow Ctrl-C to interrupt executing tasks like downloading a file
Description
JLine3 has some features to be able to register a handler to the terminal to listen to signals like Ctrl-C. Which this, it is theoretically possible to register a listener that will still fire in a thread even if readline() isn't currently being called. This could allow CommandBox to set some global flag that advises the current task to end. Lucee might also have a way to interrupt the main thread as well.
JLine3 has some features to be able to register a handler to the terminal to listen to signals like Ctrl-C. Which this, it is theoretically possible to register a listener that will still fire in a thread even if readline() isn't currently being called. This could allow CommandBox to set some global flag that advises the current task to end. Lucee might also have a way to interrupt the main thread as well.
https://groups.google.com/d/topic/jline-users/YZQEzaQGdTY/discussion