From 4a917940b749719650d1a7329e9ac7ac8e5ce5cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= Date: Wed, 13 Mar 2019 15:33:17 +0100 Subject: Fix BSD cal output. --- terminal/util.scm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'terminal/util.scm') diff --git a/terminal/util.scm b/terminal/util.scm index a13aa813..a7435ad8 100644 --- a/terminal/util.scm +++ b/terminal/util.scm @@ -14,8 +14,11 @@ (let* ((day (number->string (date-day date))) (month (number->string (date-month date))) (year (number->string (date-year date)))) + ;; BSD cal only supports setting highlighted day explicitly for + ;; testing the functionality. This seems to at least give me + ;; an (almost) working display, albeit ugly. (if (file-exists? "/usr/bin/ncal") - (system* "cal" "-3" "-H" (format #f "~a-~a-~a" + (system* "ncal" "-3" "-H" (format #f "~a-~a-~a" year month day) month year) (system* "cal" "-3" day month year)))) -- cgit v1.2.3