Java: DirectTerminal