Re-engineering of terminal emulator, phase 1.