Re: [PATCH]: today highlighting in [n]cal

看板FB_hackers作者時間16年前 (2009/04/20 20:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串5/11 (看更多)
Roman Divacky wrote: > On Mon, Apr 20, 2009 at 11:21:26AM +0200, Simon 'corecode' Schubert wro= te: >> 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 y= our=20 >> patch: >> >> - only works for wide (cal) mode, not ncal mode >=20 > it works for ncal=20 I didn't try it on FreeBSD, but from inspecting the code, you only=20 modified mkmonthb(), which is called for the cal-style layout, but not fo= r=20 the ncal-style layout (then mkmonth() is called). >> - 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 >=20 > 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]. cheers simon --=20 <3 the future +++ RENT this banner advert +++ ASCII Ribbon /"\ rock the past +++ space for low =E2=82=AC=E2=82=AC=E2=82=AC NOW!1 += ++ Campaign \ / Party Enjoy Relax | http://dragonflybsd.org Against HTML \ Dude 2c 2 the max ! http://golden-apple.biz Mail + News / \ _______________________________________________ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"
文章代碼(AID): #19x6G100 (FB_hackers)
討論串 (同標題文章)
文章代碼(AID): #19x6G100 (FB_hackers)