]> git.ipfire.org Git - thirdparty/util-linux.git/commit
cal: use standout mode on monochrome terminals
authorKarel Zak <kzak@redhat.com>
Mon, 4 Feb 2019 13:16:11 +0000 (14:16 +0100)
committerKarel Zak <kzak@redhat.com>
Mon, 4 Feb 2019 13:20:03 +0000 (14:20 +0100)
commitf90d8b8bccc8f410dd6dc36a028889ea3169b26b
treedbb5c7670c4736ae1e09d8eafdc3682ca83595e6
parent5db5962339dbd619a8f779961548fb667d3c9376
cal: use standout mode on monochrome terminals

The function colors_init() checks for colors, it means it fails
on monochrome terminals, but cal(1) in this case still need to
highlight the current day.

Reported-by: Nuno Silva <nunojsilva@ist.utl.pt>
Signed-off-by: Karel Zak <kzak@redhat.com>
misc-utils/cal.c