What exactly do you mean by scrolling text? Anyways, to clear text you can either use CLS, which clears the entire console, or print spaces over the text. The second method works best to "erase" certain portions of the console.