Subject: [atatat@netbsd.org: CVS commit: src/usr.bin/cal]
To: Andrew Brown <atatat@netbsd.org>
From: John Hawkinson <jhawk@MIT.EDU>
List: tech-userlevel
Date: 06/05/2003 00:15:40
Are we going to go adding color support to all of the basic unix apps?
It seems like a slippery slope, and I really question whether it is
one we should start down.

--jhawk

----- Forwarded message from Andrew Brown <atatat@netbsd.org> -----

From: Andrew Brown <atatat@netbsd.org>
Subject: CVS commit: src/usr.bin/cal
To: source-changes@netbsd.org
Reply-To: atatat@netbsd.org
Message-Id: <20030605002121.C60E3B004@cvs.netbsd.org>
Date: Thu,  5 Jun 2003 00:21:21 +0000 (UTC)


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.


----- End forwarded message -----