try {
window = terminal.getHeight() - 1;
halfWindow = window / 2;
keys = new KeyMap("less", false);
bindKeys(keys);
consoleInput = new NonBlockingInputStream(session.getKeyboard(), true);
consoleReader = new InputStreamReader(consoleInput);
// Use alternate buffer
System.out.print("\u001B[?1049h");
System.out.flush();