- mothurOutEndLine();
- mothurOut("mothur > ");
-
- //get input char by char so you can check for use of arrow keys
- //if (_kbhit()){
- // _getch(); // edit : if you want to check the arrow-keys you must call getch twice because special-keys have two values
- // return _getch();
- //}
- //return 0; // if no key is pressed
- //setbuf(stdin, NULL); //no buffering
-/*if(ch==0)
-{
-ch=getch();
-if(ch==72) cout<<"up";
-else if(ch==75) cout<<"left";
-else if(ch==77) cout<<"right";
-else if(ch==80) cout<<"down";
-cout<<endl;
-}
-else break;
-}
-delay(2000);
-return 0;
-}*/
-
- //int letter = 0;
- //while ((letter != 10) && (letter != 13)) {
- // letter = getch();
-
- // cout << "char code = " << letter << endl;
-
- // input += char(letter);
- //}
- // input = input.substr(0, input.length()-1); //cut off newline char
-
- //cout << input << endl;
-
- getline(cin, input);
- if (cin.eof()) { input = "quit()"; }
-
- //save command
- //previousInputs.push_back(input);