what is clrscr() equivalent in gcc? I tried for system("clear") but it exits prgm

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sarfraj
    New Member
    • May 2012
    • 1

    what is clrscr() equivalent in gcc? I tried for system("clear") but it exits prgm

    what is clrscr() equivalent in gcc? I tried for system("clear") but it exits prgm it should not exit ,what should I use ?please help?
  • Banfa
    Recognized Expert Expert
    • Feb 2006
    • 9067

    #2
    What platform (OS) are you programming on?

    In general terms there should not be much need to clear the screen but if you do need to take control of the character screen on Linux you could use the Curses library.

    If you are using Windows you could try system("cls");

    Comment

    Working...