0

I am using 'system("clear");' command to clean the output screen yet the last line printed is displayed.I am using Geany text editor using GNU gcc compiler.Please help and tell me clear the whole screen.

I am a college student and doing coding for the first time. Thanks in advance.

karel
  • 122,292
  • 133
  • 301
  • 332

1 Answers1

0

system("clear") fails. Try using printf("\033c"). This works in geany.

amc
  • 7,292
Sooraj
  • 1