]> git.donarmstrong.com Git - mothur.git/blobdiff - getlabelcommand.cpp
added checks for ^C to quit command instead of program
[mothur.git] / getlabelcommand.cpp
index d306250f5b82b48cd6b353c4af0619907e2b9086..1c08eb1fab8905674700bdc440a93ebd38b88a4f 100644 (file)
@@ -64,6 +64,9 @@ int GetlabelCommand::execute(){
                int numBins = 0;
                int count = -1;
                while(in.good()) {
+                       
+                       if (m->control_pressed) { in.close();  return 0; }
+                       
                        if(count > numBins)
                                count = 0;
                        if(count == 0) {