]> git.donarmstrong.com Git - mothur.git/blobdiff - readtree.cpp
added checks for ^C to quit command instead of program
[mothur.git] / readtree.cpp
index 661a5a92583b7077a8e3b5c987f30c72c6f50a84..3062f6677fa8527b4eb59a9ab979458465bfb777 100644 (file)
@@ -283,6 +283,9 @@ int ReadNewickTree::readTreeString() {
 
 int ReadNewickTree::readNewickInt(istream& f, int& n, Tree* T) {
        try {
+               
+               if (m->control_pressed) { return -1; } 
+               
                int c = readNodeChar(f);
     
                if(c == '('){