Catching keyboard interrupts?

Is there a way to catch a keyboard interrupt in the JVM? For example, if I write a keyboard interrupt handler, execute the program, and hit Control-C, the handler is executed?

Thanks.
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories