Handle Control-C better in the shell

Description

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:

  1. If a command is being executed from the interactive shell, cleanly exit the command back to the interactive shell

  2. 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.

Details

Assignee

Reporter

Affects versions

Fix versions

Priority

Components

Sentry

Created November 1, 2016 at 5:16 PM
Updated November 8, 2016 at 3:20 AM
Resolved November 8, 2016 at 3:20 AM