Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to Clear terminal screen c++ on mac osx using codeblocks?

Tags:

c++

macos

I'm using codeblocks (c++) on a mac. I usually use system("cls") when using a windows machine. How can I use something similar on the mac? thanks.


1 Answers

macOS uses system("clear");

though there are better solutions

like image 62
Matthew Mccall Avatar answered Sep 02 '25 09:09

Matthew Mccall



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!