Fix non-scrolling terminal bug