Package org.crsh.util

Examples of org.crsh.util.InterruptHandler


      //
      final JLineProcessor processor = new JLineProcessor(ansi, shell, reader, out);

      //
      InterruptHandler interruptHandler = new InterruptHandler(new Runnable() {
        @Override
        public void run() {
          processor.interrupt();
        }
      });
      interruptHandler.install();

      //
      Thread thread = new Thread(processor);
      thread.setDaemon(true);
      thread.start();
View Full Code Here

TOP

Related Classes of org.crsh.util.InterruptHandler

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.