How do you clear the screen with c++? I'm using a mac os x 10.3.9 and writing a program in c++ ... I am currently using the basic system("clear") command but I get an error during runtime:
"TERM environment variable not set."
I'm sure this means that the environment for "TERMINAL" (mac os x's command-line tool) is not set...
how do I set the environment for TERMINAL within my program?
Your code is not the problem... your OS isn't initializing the $TERM environment variable for your console like it should. You need to ask on a Mac forum... (I think).