Re-factored scrolling to simulate a real terminal