I'm creating a program in xcode using c++ that will have a lot of information printing in the console. I want to be able to program a system("clear") so that the console will clear itself so that it's clean looking for the user. For instance, if I have a user create a username, after it's created, I want the console to clear itself, and then the program moves on to the next step. The problem is that when I try to use system("clear") it says "TERM environment variable not set.". I don't know how to fix this or if it's even possible to accomplish what I'm trying to do. Thanks in advance.