callback.onExit(0);
super.shutdown();
}
};
JLineProcessor processor = new JLineProcessor(true, shell, reader, new PrintStream(out, false, encoding), "\r\n");
processor.run();
} catch (java.io.InterruptedIOException e) {
// Expected behavior because of the onExit callback in the shutdown above
// clear interrupted status on purpose
Thread.interrupted();
} catch (Exception e) {