diff options
author | Leah Neukirchen <leah@vuxu.org> | 2020-03-28 18:08:14 +0100 |
---|---|---|
committer | Leah Neukirchen <leah@vuxu.org> | 2020-03-28 18:08:14 +0100 |
commit | d91a2b325c04884bfe923b64b0a9410167d0e2ab (patch) | |
tree | 1e596cfd7adaf9f9687f2d375382d116c5ee9c39 | |
parent | 7269a43df51a085878f0f9860f115b944a4cc206 (diff) | |
download | wcal-d91a2b325c04884bfe923b64b0a9410167d0e2ab.tar.gz wcal-d91a2b325c04884bfe923b64b0a9410167d0e2ab.tar.xz wcal-d91a2b325c04884bfe923b64b0a9410167d0e2ab.zip |
underline header
-rw-r--r-- | wcal.c | 6 |
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++) { |