xcode c++ problem

W

WilliS

Guest
wondering if anyone knows of a working clear screeen command that works with xcode...ive tried a few..but i dont know what will work...

maybe my included libraries are wrong...anyone know?

system("CLR"); ?
clrscr(); ?
 
OP
D

dr_springfield

Guest
system("clear"); works on the terminal...

...but not in xcode, it says Terminal Environment Variable not set. I tried setting the TERM variable (set by adding TERM variable setting to executable thru Xcode) to ansi, and then vt100, but both of those output something like [H[J instead of clearing the terminal. Not sure how to do it with Xcode.
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top