protected void doStart(String user) throws Exception {
final Terminal terminal = terminalFactory.getTerminal();
// unwrap stream so it can be recognized by the terminal and wrapped to get
// special keys in windows
InputStream unwrappedIn = unwrapBIS(unwrap(System.in));
InputStream in = terminal.wrapInIfNeeded(unwrappedIn);
PrintStream out = unwrap(System.out);
PrintStream err = unwrap(System.err);
Runnable callback = new Runnable() {
public void run() {
try {