Re-implement VT100 emulator