Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
cal command alternative with color
Ruby
tree: 5ea9d0e6b6

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
bin
lib
test
LICENSE
README.rdoc

README.rdoc

NAME

calour is an alternative to cal command, which displays a colored,
holiday plot calendar with block or line styled.

SYNOPSIS

calour [-3lmnty] [-c [country_code]] [--color color_set] [[month] year]

DESCRIPTION

The options are as follows:

    -3         3 months block mode

    -l         line mode

    -b         block mode (default)

    -m         monday first

    -s         sunday first (default)

    -n         no color mode

    -k         color mode (default)

    -c country_code
               holidays mark on/off. without country code, let it off.
               acceptable code: ja us au ja_ja cn fr de it kr tw gb

    -t         append holiday titles

    -f         no holiday titles (default)

    -y         this year

    -h         display this help

    -v         display version

COLOR SETTINGS

Colors can be changed with --color COLOR_SET option. COLOR_SET is constructed
as combination of target-color-pairs.

    examples;

      --color year:magenta,today:on_green,holiday:red

      --color mon:yel,hol:blu,nei:bla

      --color 'sat:blue sun:red tod:blink'

Like examples, each pairs are joined with ','(comma), target and color are
joined with ':'(colon). names of targets and colors can be reduced.

Target names are as follows:

    year:       year label color (default: yellow)

    month:      month label color (default: green)

    today:      today date color (default: green, underline])

    saturday:   saturday dates color (default: cyan)

    sunday:     sunday dates color (default: magenta)

    holiday:    holiday dates color (default: red)

    neightbor:  neighbor months dates color (default: nil)

Color names are as follows:

    black, red, green, yellow, blue, magenta, cyan, white,
    on_black, on_red, on_green, on_yellow, on_blue, on_magenta,
    on_cyan, on_white, bold, underline, blink

Copyright

Copyright (c) 2010 Kyo Endo <http://d.hatena.ne.jp/keyesberry> released under the MIT license.
Something went wrong with that request. Please try again.