home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: InfoMgt
/
InfoMgt.zip
/
cal29a.zip
/
readme.cal
< prev
next >
Wrap
Text File
|
1993-07-24
|
5KB
|
131 lines
CAL is a nicely-enhanced version of the unix `cal' command for MSDOS.
Features:
* Hilights today's date when displaying a monthly calendar.
* Displays an optional user-definable list of `special day'
descriptions (like appointments) to the right of the monthly
calendar display. Cal can be set optionally to ignore appointments
older than the current day. Next month's appointments may also be
shown if there is room to do so. Multiple appointment data files may
also be specified on the commandline.
* You can specify your own appointment and color definition files on the
commandline, or use the defaults.
* Completely configurable colors -- eight separate color attributes.
* No ANSI driver needed for colors, and the output may be redirected
anywhere, just like the unix version.
* Commandline-compatible with unix `cal' command, but with several
enhanced switch settings.
* Source code included; enhanced to compile using colors under OS/2.
The executable distributed in the archive was compiled using Zortech C++
3.1, and compressed with LZEXE.
This archived collection of files is placed into the Public Domain.
Feel free to redistribute the this archive, but PLEASE make sure the
archive contains all the original files, namely:
readme.cal - this file
cal.exe - the MSDOS executable program
cal.doc - documentation for cal.exe
cal.dat - optional sample data file of appointment dates
cal.col - optional sample file of color attributes
source\readme.os2 - some notes about compiling the source for OS/2
source\cal.c - source code for cal
source\getopt.c - GNU getopt() support
source\getopt.h - header for getopt
source\copying - GNU general public license
Note: _I_ think the colors defined in the color definition file
cal.col are ugly! If you want to use the more attractive (in my
opinion) default colors, just delete or rename cal.col. This file
is only included to show you how it works.
The source code should be compilable for any OS. No guarantees are made
in this regard, however.
Requests, bug reports, suggestions, donations, proposals for
contract work, and so forth may be sent to:
Attn: Alex Matulich
Unicorn Research Corporation
4621 N. Landmark Drive
Orlando, FL 32817-1235
USA
407-657-4974 FAX 407-657-6149
or send e-mail to alex@bilver.oau.org (alex%bilver@peora.sdc.ccur.com).
Version history:
1.0
Port to MSDOS of original unix-to-Amiga port by Gary L. Brant.
2.0
Modified to display calendar in colors without ANSI.SYS, while retaining
output redirectability. Added current day indicator in monthly display.
Made all code compatible with unix and ANSI C by putting all MSDOS-specific
code into blocks activated by #define MSDOS at beginning of source file.
2.1
Added display of special date descriptions to monthly calendar. Re-wrote
some code sections to accommodate this feature. All arrays are now
dynamic to reduce the size of the executable.
2.2
Fixed an intermittent pointer-trashing bug in the date description section
that caused the monthly display to display garbage at times.
2.3
Removed hardcoded color settings, and added capability to read external
color file.
2.4
Added -d switch to inhibit the display of outdated date descriptions
(changed to --f in version 2.7).
2.5
Fixed two bugs reported by J"urgen Koslowski. The "last weekday of month"
function in the cal.dat file now works, and the single-month display now
looks fine if the year doesn't have 4 digits. Also re-wrote the section
that processes command-line arguments.
2.6
Fixed a bug reported by Paul Beam. Date descriptions longer than 50
characters now do not blank out the next line in the calendar.
2.7
Other contributors added improved commandline switches, allowing the
appointment file and color file to be specified on the commandline, and
also the ability to display next month's appointments on the current
month if there is room to do so. Processing of commandline arguments
has been completely replaced by the GNU getopt.c library functions. The
source will now use colors if compiled under OS/2, also, and search PATH
and DPATH for data files. A potentially serious bug pertaining to path
concatenation was caught.
2.8
Added --europe switch, so that the calendar display has Monday as the
first day of the week, which is a more familiar format in Europe.
2.9
A contributor sent code with several fine modifications, but it was useful
only for the Borland compiler. I have re-done it for ANSI compatibility.
The maximum number of appointments to be displayed now defaults to 24, and
is adjustable on the commandline. Multiple data files may be specified.
Cal no longer stops reading a data file when it has filled up its maximum
number of descriptions; it now reads through the whole file so that it can
sort out all dates to be displayed.
2.9a
Fixed a bug in 2.8 and 2.9 that caused cal to attempt to read its color
file before determining its home directory. Also added a contributor's
suggestion to detect the number of columns for MSDOS displays wider than
80 columns, so that appointments won't be truncated if they really can fit.