aboutsummaryrefslogtreecommitdiff
path: root/todo.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'todo.cpp')
-rwxr-xr-xtodo.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/todo.cpp b/todo.cpp
index 2770fee..ba9c5ec 100755
--- a/todo.cpp
+++ b/todo.cpp
@@ -129,11 +129,15 @@ void modifyTODO( vector<todo>& listTodo, int argc, char* argv[], Functor modif
int main(int argc, char *argv[]) {
- color = true;
+ color = false;
vector<todo> listTodo;
int action = -1;
int startArgv = 2;
+
+ color = isatty(fileno(stdout));
+
+
if( argc > 1 ) {
// Si la première lettre est une majuscule
bool ok = false;