From 2bfe0cc93ddf2bf1502d4778f86eed4a47bd61bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= Date: Wed, 24 Apr 2019 19:37:43 +0200 Subject: Made keys in vulgar output bold. --- module/output/terminal.scm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/module/output/terminal.scm b/module/output/terminal.scm index bfe5d2ab..2fad95e3 100644 --- a/module/output/terminal.scm +++ b/module/output/terminal.scm @@ -79,10 +79,11 @@ (unless (null? events) (let ((ev (list-ref events cur-event))) - (format #t "~a~%~a~%~aStart: ~a Slut: ~a~%~%~a~%" + (format #t "~a~%~a~%~a\x1b[1mStart:\x1b[m ~a \x1b[1mSlut:\x1b[m ~a~%~%~a~%" (attr ev 'X-HNH-FILENAME) (attr ev 'SUMMARY) - (or (and=> (attr ev 'LOCATION) (cut string-append "Plats: " <> "\n")) "") + (or (and=> (attr ev 'LOCATION) + (cut string-append "\x1b[1mPlats:\x1b[m " <> "\n")) "") (time->string (attr ev 'DTSTART) "~1 ~3") (time->string (attr ev 'DTEND) "~1 ~3") (unlines (take-to (flow-text (or (attr ev 'DESCRIPTION) "") -- cgit v1.2.3