title: How can I "intercept" Ctrl+C in a CLI application?
body: <p>How can I <em>intercept</em> <kbd>Ctrl</kbd>+<kbd>C</kbd> (which normally would kill the process)
  in a CLI (command line interface) Java application?</p>
  
  <p>Does a multi-platform solution exist (Linux, Solaris, Windows)?</p>
  
  <p>I'm using <code>Console</code>'s <code>readLine()</code>, but if necessary, I could use some other method
  to read characters from standard input.</p>