Clear screen in C

18,640

Visual Studio removed "common" conio.h functions, like clear screen, a long time ago.

system() is in stdlib.h if you want to use it.

However, if you want to do serious terminal output on Windows, check out something like this: http://www.projectpluto.com/win32a.htm

Share:
18,640
vin
Author by

vin

Updated on June 04, 2022

Comments

  • vin
    vin almost 2 years

    I am new to programming, and so I do encounter basic issues. In the program I am building, I need to clear the screen at a certain point, but it does not accept clrscr(); or system("cls"); what are other options available?? I have included stdio.h & conio.h. If it helps, the compiler I am using is Visual studio 2010.