0

How to use clear screen function.

New compliers doesn't support conio.h . then how to use clrscr function.

30th Jun 2016, 4:31 PM
Karan V B
Karan V B - avatar
5 Answers
+ 1
if you're using windows you can use system ("cls") if Linux there's an ecape code that clears the screen but I forget what it is at this time
30th Jun 2016, 5:22 PM
destro
+ 1
on linux: system("clear");
30th Jun 2016, 5:34 PM
Jonasz Potoniec
Jonasz Potoniec - avatar
0
i'm pretty sure printing blank lines isn't a proper way but it's centrally better than function system() which you should not use
30th Jun 2016, 5:45 PM
Jonasz Potoniec
Jonasz Potoniec - avatar
- 1
how to make our program more color full. new compliers doesn't support graphics.h
1st Jul 2016, 1:04 AM
Karan V B
Karan V B - avatar
- 2
alternatively you could always print out some blank lines which makes the program more portable
30th Jun 2016, 5:38 PM
destro