Java xterm emulator