Text emulator, Fullscreen support, code cleanup etc.