diff options
author | Leah Neukirchen <leah@vuxu.org> | 2021-11-13 18:35:40 +0100 |
---|---|---|
committer | Leah Neukirchen <leah@vuxu.org> | 2021-11-13 18:35:59 +0100 |
commit | 267308b45da8c5178a9d4cb5cd505cbf8464eb8a (patch) | |
tree | d0c6e506790d6c16aaac5cb4af60ae3d89b61e20 | |
parent | 24ad6724654db1f2500202b670f0ccc5040b8d3f (diff) | |
download | wcal-267308b45da8c5178a9d4cb5cd505cbf8464eb8a.tar.gz wcal-267308b45da8c5178a9d4cb5cd505cbf8464eb8a.tar.xz wcal-267308b45da8c5178a9d4cb5cd505cbf8464eb8a.zip |
add header to week column
Closes #2.
-rw-r--r-- | wcal.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/wcal.c b/wcal.c index 86298de..05a516b 100644 --- a/wcal.c +++ b/wcal.c @@ -159,7 +159,12 @@ main(int argc, char *argv[]) int color = isatty(1) || flagC; - printf(" "); + if (color) + printf("\e[4m"); + printf("Wk"); + if (color) + printf("\e[0m"); + printf(" "); if (color) printf("\e[4m"); for (int wd = 1; wd <= 7; wd++) { |