Implemented line scrolling in the CLI