]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
cal: (man) add example for colors
authorKarel Zak <kzak@redhat.com>
Mon, 20 Feb 2023 12:41:07 +0000 (13:41 +0100)
committerKarel Zak <kzak@redhat.com>
Mon, 20 Feb 2023 12:41:07 +0000 (13:41 +0100)
Signed-off-by: Karel Zak <kzak@redhat.com>
misc-utils/cal.1.adoc

index 38d59d304044074477093bb78a261f6a9cab7c72..fd508bc02c1578f4d4e9b705a0a8e5b5e5e7f9ce 100644 (file)
@@ -102,7 +102,7 @@ This option sets the adoption date of the Gregorian calendar reform. Calendar da
 * _gregorian_ - display Gregorian calendars exclusively. This special placeholder sets the reform date below the smallest year that *cal* can use; meaning all calendar output uses the Gregorian calendar system. This is called the proleptic Gregorian calendar, because dates prior to the calendar system's creation use extrapolated values.
 * _iso_ - alias of _gregorian_. The ISO 8601 standard for the representation of dates and times in information interchange requires using the proleptic Gregorian calendar.
 * _julian_ - display Julian calendars exclusively. This special placeholder sets the reform date above the largest year that *cal* can use; meaning all calendar output uses the Julian calendar system.
-
++
 See *DESCRIPTION* above.
 
 *-y*, *--year*::
@@ -165,6 +165,11 @@ Days that fall within the work-week.
 *weekend*::
 Days that fall outside the work-week.
 
+For example:
+____
+echo -e 'weekend 35\ntoday 1;41\nheader yellow' > $HOME/.config/terminal-colors.d/cal.scheme
+____
+
 == HISTORY
 
 A *cal* command appeared in Version 6 AT&T UNIX.