summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAriadna Vigo <arivigodr@gmail.com>2020-07-09 19:38:34 +0200
committerAriadna Vigo <arivigodr@gmail.com>2020-07-09 19:38:34 +0200
commitb0ab06555ba0887d1b2405d64dbedcd776438eb3 (patch)
treebb0f3a995c5162bd8b9b72976e7edda0960c14e3
parentd7aad1e41fb1165303e1b4a8476fd887edc86f4b (diff)
Modularized output routines a bit
-rw-r--r--cras.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/cras.c b/cras.c
index 5e2cd50..0f21240 100644
--- a/cras.c
+++ b/cras.c
@@ -91,7 +91,7 @@ print_task(TaskLst tasks, int i, int color)
static void
print_short_output(TaskLst tasks)
{
- printf("%d/%d/%d to do/done/total\n", tasklst_tasks_todo(tasks),
+ printf("%d/%d/%d", tasklst_tasks_todo(tasks),
tasklst_tasks_done(tasks), tasklst_tasks_total(tasks));
}
@@ -109,6 +109,7 @@ print_output(TaskLst tasks, int color)
putchar('\n');
print_short_output(tasks);
+ printf(" to do/done/total");
}
static void
@@ -189,6 +190,8 @@ output_mode(const char *crasfile, int mode, int color)
print_short_output(tasks);
else
print_output(tasks, color);
+
+ putchar('\n');
}
static void