Refresh terminal after change of height