How can I intercept Ctrl + C (which would normally kill a process) in the CLI (command line interface) of a Java application?
Is there a multi-platform solution (Linux, Solaris, Windows)?
I use Console
readLine()
, but if necessary I can use some other method to read characters from standard input.
java command-line command-line-interface copy-paste stdin
ivan_ivanovich_ivanoff Aug 01 '09 at 8:29 2009-08-01 08:29
source share