Automatic commit
authorFrancois Fleuret <francois@fleuret.org>
Thu, 12 Mar 2009 16:30:47 +0000 (17:30 +0100)
committerFrancois Fleuret <francois@fleuret.org>
Thu, 12 Mar 2009 16:30:47 +0000 (17:30 +0100)
selector.cc

index b8011b8..807f1a7 100644 (file)
@@ -391,7 +391,9 @@ int main(int argc, char **argv) {
 
   if(!has_colors()) {
     cerr << "No colors." << endl;
-    return 1;
+    curs_set(1);
+    endwin();
+    exit(1);
   }
 
   noecho();