title: QProcess::execute("clear") Issue
body: <p>I'm writing a small console app in Qt and I want to be able to clear the terminal on a user command. I found this:</p>
  
  <p><a href="https://stackoverflow.com/questions/20028213/how-clear-screen-in-qt-console">How clear screen in QT console?</a></p>
  
  <p>which almost answers my question, but its not working.</p>
  
  <p>When the function "QProcess::execute("clear");" is run, I get this output to the terminal:</p>
  
  <p>TERM environment variable not set.</p>
  
  <p>I'm pretty new to Linux and though I've set environment variables before, its always been in the terminal before I ran the program. Here, I'd like to take care of this programmatically if possible.</p>
  
  <p>My guess is that I could use QProcess::setProcessEnvironment() but I'm not really sure how exactly.</p>
  
  <p>Is it possible to set the environment variables in this way, and if so how?</p>
  
  <p>Any help would be greatly appreciated!</p>
  
  <p>Here's the sample code I'm working with:</p>
  
  <pre><code>int main(int argc, char *argv[])
  {
      QCoreApplication a(argc, argv);
      QTextStream qin(stdin);
      QTextStream qout(stdout);
      QString cmd;
  
      while(1)
      {
          cmd = qin.readLine();
  
          qout&lt;&lt;"command is: "&lt;&lt;cmd&lt;&lt;endl;
  
          if(cmd == "clear")
          {
              QProcess::execute("clear");
          }
      }
      return a.exec();
  }
  </code></pre>