Set the Jline option reader.setHandleUserInterrupt( true ); so when the user hits Ctrl-C, there will be a jline.console.UserInterruptException thrown instead of killing the entire process (or being ignored like Windows). Then handle it like so:
If a command is being executed from the interactive shell, cleanly exit the command back to the interactive shell
If no command is being executed, simply exit CommandBox
Gliffy Diagrams
Activity
Show:
Brad WoodNovember 1, 2016 at 8:40 PM
can you please help test this on Mac and Linux.
Fixed
Pinned fields
Click on the next to a field label to start pinning.
Set the Jline option reader.setHandleUserInterrupt( true ); so when the user hits Ctrl-C, there will be a jline.console.UserInterruptException thrown instead of killing the entire process (or being ignored like Windows). Then handle it like so:
If a command is being executed from the interactive shell, cleanly exit the command back to the interactive shell
If no command is being executed, simply exit CommandBox