working terminal over sdl 1.2 using virtual screen