aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeah Neukirchen <leah@vuxu.org>2020-03-28 18:08:14 +0100
committerLeah Neukirchen <leah@vuxu.org>2020-03-28 18:08:14 +0100
commitd91a2b325c04884bfe923b64b0a9410167d0e2ab (patch)
tree1e596cfd7adaf9f9687f2d375382d116c5ee9c39
parent7269a43df51a085878f0f9860f115b944a4cc206 (diff)
downloadwcal-d91a2b325c04884bfe923b64b0a9410167d0e2ab.tar.gz
wcal-d91a2b325c04884bfe923b64b0a9410167d0e2ab.tar.xz
wcal-d91a2b325c04884bfe923b64b0a9410167d0e2ab.zip
underline header
-rw-r--r--wcal.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/wcal.c b/wcal.c
index 0d45d27..9390f22 100644
--- a/wcal.c
+++ b/wcal.c
@@ -69,10 +69,12 @@ main(int argc, char *argv[])
mktime(tm);
}
- printf(" Mo Tu We Th Fr Sa Su\n");
-
int color = isatty(1);
+ printf(" %sMo Tu We Th Fr Sa Su%s\n",
+ color ? "\e[4m" : "",
+ color ? "\e[0m" : "");
+
for (int weeks = 0, months = 0;
flagi || (max_months && months < max_months) || (weeks < max_weeks);
weeks++) {