]> git.donarmstrong.com Git - mothur.git/blobdiff - engine.cpp
a few modifications for 1.9
[mothur.git] / engine.cpp
index c6ceb59d051d6fb88fe1e169bdd9206da9d58ef8..b68bf61e4703fbd77133f8ba72c8488a78519d29 100644 (file)
@@ -99,6 +99,15 @@ bool InteractEngine::getInput(){
 /***********************************************************************/
 string Engine::getCommand()  {
        try {
+       #ifdef USE_MPI //mpirun doesn't work with readline
+                               string nextCommand = "";
+                               
+                               mout->mothurOut("mothur > ");
+                               getline(cin, nextCommand);
+                               mout->mothurOutJustToLog(toString(nextCommand));
+                               
+                               return nextCommand;
+       #else
                #if defined (__APPLE__) || (__MACH__) || (linux) || (__linux)
                        #ifdef USE_READLINE
                                char* nextCommand = NULL;
@@ -129,8 +138,7 @@ string Engine::getCommand()  {
                                
                                return nextCommand;
                #endif
-               
-               mout->mothurOutEndLine();
+       #endif
                                                
        }
        catch(exception& e) {