Jacek Caban : server: Move setting current screen_buffer into a helper.