diff options
author | Ariadna Vigo <arivigodr@gmail.com> | 2020-07-09 19:38:34 +0200 |
---|---|---|
committer | Ariadna Vigo <arivigodr@gmail.com> | 2020-07-09 19:38:34 +0200 |
commit | b0ab06555ba0887d1b2405d64dbedcd776438eb3 (patch) | |
tree | bb0f3a995c5162bd8b9b72976e7edda0960c14e3 | |
parent | d7aad1e41fb1165303e1b4a8476fd887edc86f4b (diff) |
Modularized output routines a bit
-rw-r--r-- | cras.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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 |