Is there any alternative for clrscr() and gotoxy in gcc ? I am using system("cls"); to clear screen but it doesn't identify cls as a valid command whereas in cmd cls is working perfectly on windows? can anyone please help ? i am using gcc as my compiler and using dev cpp and codeblocks as my IDEs. thanks in advance.
nitin1
15
Master Poster
Recommended Answers
Jump to PostOn linux systems, the shell command to clear the screen is "clear", not "cls". Sometimes a form-feed output will do this as well.
Jump to PostUse the PDCurses library for all the console control you could ever want.
All 7 Replies
rubberman
1,355
Nearly a Posting Virtuoso
Featured Poster
nitin1
15
Master Poster
Adak
419
Nearly a Posting Virtuoso
deceptikon
1,790
Code Sniper
Team Colleague
Featured Poster
vegaseat
1,735
DaniWeb's Hypocrite
Team Colleague
vegaseat
1,735
DaniWeb's Hypocrite
Team Colleague
deceptikon
1,790
Code Sniper
Team Colleague
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.