From bf1f5e0c70c0c7ef996397b5c270ac3fcb6e370a Mon Sep 17 00:00:00 2001 From: xavi Date: Wed, 4 Sep 2024 12:58:46 -0700 Subject: [PATCH] Modified display_heading func --- src/dodo.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/dodo.c b/src/dodo.c index fe5a6d1..26a1b84 100644 --- a/src/dodo.c +++ b/src/dodo.c @@ -57,7 +57,13 @@ int view_all(sqlite3 *db){ } // Print Heading TODO: obvi make this better -void view_heading(){ +void display_heading(){ + printf("\n"); + printf("%s Today %s", X_BOLD, X_RST); + printf(" %s Backlog %s", X_BOLD, X_RST); + printf(" %s Blocked %s", X_BOLD, X_RST); + printf("\n"); + printf("%s%stitle due date %s", X_BOLD, X_UNDL, X_RST); printf(" %s%stitle due date %s", X_BOLD, X_UNDL, X_RST); printf(" %s%stitle due date %s", X_BOLD, X_UNDL, X_RST); @@ -173,7 +179,7 @@ int view(sqlite3 *db){ char* colnames = "title,creation_date"; // Print Heading - view_heading(); + display_heading(); // Print "today" tasks if ( display_task_list(TODAY_COL_START, db, colnames, table, status) ){