X-Git-Url: https://fleuret.org/cgi-bin/gitweb/gitweb.cgi?a=blobdiff_plain;f=selector.cc;h=93a4611c6b59a66929fb7c09920301e7d910c2d2;hb=1777ff299211ccf4ff4c71113bb92bd65f0e997c;hp=fbc489104d419a7bd4b07741a8a53beca66db6d7;hpb=a65d22727b3540e5d3d3228f244f1cbe3e1bed0b;p=selector.git
diff --git a/selector.cc b/selector.cc
index fbc4891..93a4611 100644
--- a/selector.cc
+++ b/selector.cc
@@ -49,7 +49,7 @@ int buffer_size = 1024;
int nb_lines_max = 10000;
char pattern_separator = ';';
int output_to_vt_buffer = 0;
-int with_colors = 0;
+int with_colors = 1;
//////////////////////////////////////////////////////////////////////
@@ -329,6 +329,11 @@ int main(int argc, char **argv) {
i++;
}
+ else if(strcmp(argv[i], "-m") == 0) {
+ with_colors = 0;
+ i++;
+ }
+
else if(strcmp(argv[i], "-f") == 0) {
check_opt(argc, argv, i, 1, "");
strncpy(input_filename, argv[i+1], buffer_size);
@@ -361,6 +366,7 @@ int main(int argc, char **argv) {
<< " [-h]"
<< " [-b]"
<< " [-v]"
+ << " [-m]"
<< " [-t ]"
<< " [-o