Lightweight terminal emulator