ootsoo Posted May 16, 2005 Posted May 16, 2005 hi people,I need a help frm u all!is there any functions that helps to clear 50 % of the cosole screen? i givefor (i=0;i<25;i++)cout<<"sample line<<endl;So this code prints 25 lines.i need to clear screen half of the screen.i.e it shld clear the line numbers 25 till 15. system("cls");clears the full screen,regards,ootsoo
Dany67 Posted May 20, 2005 Posted May 20, 2005 what about clearing all screen and rewriting only your first or last half ?
azagahl Posted May 21, 2005 Posted May 21, 2005 If the screen has 25 lines then you could print 10 blank lines and reprint the bottom 15 lines.What environment does this need to work in?Can you depend on ANSI support? Can you use libcurses? Is it a Windows console program??Console window manipulation is really platform-specific and isn't directly available in C++.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now