Subject: Re: [atatat@netbsd.org: CVS commit: src/usr.bin/cal]
To: Andrew Brown <atatat@netbsd.org>
From: Johan Danielsson <joda@pdc.kth.se>
List: tech-userlevel
Date: 06/05/2003 16:04:31
Was there a good reason for choosing -h? It sounds like help to me.

/Johan

> From: Andrew Brown <atatat@netbsd.org>
> Subject: CVS commit: src/usr.bin/cal
> To: source-changes@netbsd.org
> Date: Thu,  5 Jun 2003 00:21:21 +0000 (UTC)
> Reply-To: atatat@netbsd.org
> 
> 
> Module Name:	src
> Committed By:	atatat
> Date:		Thu Jun  5 00:21:21 UTC 2003
> 
> Modified Files:
> 	src/usr.bin/cal: Makefile cal.1 cal.c
> 
> Log Message:
> Add -h to cal, which makes it highlight the current date, if it's
> present in the displayed calender.  It uses libtermcap to discover the
> proper sequences to turn on bold, or uses overstriking if output is
> not to a terminal.  If you use two -h options with terminal output,
> the date is presented in reverse video instead of bold.
> 
> Next we'll have to make the Gregorian gap vary with TZ settings, since
> the current method (do it only for September 1752) is decidely
> Anglo-centric.  ;-P
> 
> 
> To generate a diff of this commit:
> cvs rdiff -r1.3 -r1.4 src/usr.bin/cal/Makefile
> cvs rdiff -r1.14 -r1.15 src/usr.bin/cal/cal.1 src/usr.bin/cal/cal.c
> 
> Please note that diffs are not public domain; they are subject to the
> copyright notices on the relevant files.
> 
> 
> ----------