]> git.donarmstrong.com Git - mothur.git/blobdiff - engine.cpp
1.18.1
[mothur.git] / engine.cpp
index f128c4684040346110d519c56f45c9506e953866..d595be332eed785c27037710396d1a7dd46c845e 100644 (file)
@@ -469,10 +469,12 @@ bool ScriptEngine::getInput(){
                        
                        if (input == "") { input = "quit()"; }
                        
-                       if ((!mout->gui) || (input != "quit()")) {
-                               mout->mothurOutEndLine();
-                               mout->mothurOut("mothur > " + input);
-                               mout->mothurOutEndLine();
+                       if (mout->gui) {
+                               if ((input.find("quit") != string::npos) || (input.find("set.logfile") != string::npos)) {}
+                               else if ((input.find("get.current") != string::npos) && (!mout->hasCurrentFiles())) {}
+                               else { mout->mothurOutEndLine(); mout->mothurOut("mothur > " + input); mout->mothurOutEndLine(); }
+                       }else{
+                               mout->mothurOutEndLine(); mout->mothurOut("mothur > " + input); mout->mothurOutEndLine();
                        }
                        
                        #ifdef USE_MPI