X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=engine.cpp;fp=engine.cpp;h=d595be332eed785c27037710396d1a7dd46c845e;hb=82bf18e3ef0a52345519f91a682e64cc385b56bb;hp=f128c4684040346110d519c56f45c9506e953866;hpb=643cdf74ccd4fc2d565168716fb5645917dee834;p=mothur.git diff --git a/engine.cpp b/engine.cpp index f128c46..d595be3 100644 --- a/engine.cpp +++ b/engine.cpp @@ -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