[PATCH 1/6] server: Move setting current screen_buffer into a helper.