Is there any way I can check if the console buffer has any text?
I want that so I can make a function to clear the console contents, don't know if it can work, it's a long shot. Like this for example:
1 2 3 4 5
|
void ClearScreen(){
while (console has contents){
cout<<"\b";
}
}
|
The short answer is no.
The longer answer is if you're using a console library, such as ncurses, you have a superior range of functions to do things like clearing the screen.
Topic archived. No new replies allowed.