Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 20 Apr 2009 13:54:17 +0200
From:      Roman Divacky <rdivacky@freebsd.org>
To:        "Simon 'corecode' Schubert" <corecode@fs.ei.tum.de>
Cc:        hackers@freebsd.org
Subject:   Re: [PATCH]: today highlighting in [n]cal
Message-ID:  <20090420115417.GA41159@freebsd.org>
In-Reply-To: <49EC6254.5050705@fs.ei.tum.de>
References:  <20090420084118.GA16337@freebsd.org> <49EC3E96.50208@fs.ei.tum.de> <20090420102432.GA29688@freebsd.org> <49EC6254.5050705@fs.ei.tum.de>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Apr 20, 2009 at 01:53:56PM +0200, Simon 'corecode' Schubert wrote:
> Roman Divacky wrote:
> >On Mon, Apr 20, 2009 at 11:21:26AM +0200, Simon 'corecode' Schubert wrote:
> >>Hey Roman,
> >>
> >>Roman Divacky wrote:
> >>>I made this patch that highlights today in cal/ncal just like gnu
> >>>cal does..
> >>>
> >>>	www.vlakno.cz/~rdivacky/cal.patch
> >>Thanks for this patch, I've been meaning to hack one up properly, but 
> >>never got to it.  They problems I was facing seem to exist also with your 
> >>patch:
> >>
> >>- only works for wide (cal) mode, not ncal mode
> >
> >it works for ncal 
> 
> I didn't try it on FreeBSD, but from inspecting the code, you only 
> modified mkmonthb(), which is called for the cal-style layout, but not for 
> the ncal-style layout (then mkmonth() is called).
 
yes... and if I read the code correctly the very same approach should
work for the mkmonth() as well.. it should be copy'n'paste

> >>- probably won't work properly with year displays:  the year printing 
> >>parts of the code use a length argument to printf ("%*s"), which will 
> >>confuse escape sequences with actual printed characters
> >
> >I am not sure what you mean by year printing.... can you give me the
> >exact command line?
> 
> just try "cal 2009" or so, basically use printyear[b].

this works



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090420115417.GA41159>