Leightweight terminal emulator