AnsiWindowsTerminal t = new KarafWindowsTerminal();
t.setDirectConsole(true);
t.init();
term = t;
} else {
NoInterruptUnixTerminal t = new NoInterruptUnixTerminal();
t.init();
term = t;
}
} catch (Throwable e) {
System.out.println("Using an unsupported terminal: " + e.toString());
term = new UnsupportedTerminal();