home *** CD-ROM | disk | FTP | other *** search
Text File | 1989-10-26 | 48.7 KB | 2,071 lines |
- Index: patchlevel.h
- Prereq: 2.3
- *** /tmp/,RCSt1a06183 Tue Sep 19 06:20:43 1989
- --- patchlevel.h Tue Sep 19 06:20:19 1989
- ***************
- *** 1,5
- /*
- ! * $Header: patchlevel.h,v 2.3 89/05/16 16:31:28 billr Exp $
- */
- /*
- * patchlevel.h - current patchlevel of calentool program
-
- --- 1,5 -----
- /*
- ! * $Header: patchlevel.h,v 2.5 89/09/19 06:19:56 billr Exp $
- */
- /*
- * patchlevel.h - current patchlevel of calentool program
- ***************
- *** 5,8
- * patchlevel.h - current patchlevel of calentool program
- */
-
- ! #define PATCHLEVEL 2
-
- --- 5,8 -----
- * patchlevel.h - current patchlevel of calentool program
- */
-
- ! #define PATCHLEVEL 4
- *** /tmp/,RCSt1a06154 Tue Sep 19 06:18:16 1989
- --- PATCHLOG Tue Sep 19 06:17:30 1989
- ***************
- *** 1,4
- ! # $Header: PATCHLOG,v 2.3 89/05/16 16:32:23 billr Exp $
-
- #$Log: PATCHLOG,v $
- # Revision 2.3 89/05/16 16:32:23 billr
-
- --- 1,4 -----
- ! # $Header: PATCHLOG,v 2.5 89/09/19 06:17:10 billr Exp $
-
- #$Log: PATCHLOG,v $
- # Revision 2.5 89/09/19 06:17:10 billr
- ***************
- *** 1,6
- # $Header: PATCHLOG,v 2.3 89/05/16 16:32:23 billr Exp $
-
- #$Log: PATCHLOG,v $
- # Revision 2.3 89/05/16 16:32:23 billr
- # Fix bug whereby nfs mounted appointment files were not being
- # properly updated. Add support for PostScript pretty printing
-
- --- 1,38 -----
- # $Header: PATCHLOG,v 2.5 89/09/19 06:17:10 billr Exp $
-
- #$Log: PATCHLOG,v $
- + # Revision 2.5 89/09/19 06:17:10 billr
- + # Patchlevel 4 of calentool. Fixes the following bug reports:
- + #
- + # Bug fix in pcal.c for printing month of September <alexl@daemon.cna.tek.com>
- + # Bug fix for 386i machines when viewing long appointment strings <baron@neptune.cs.ucla.edu>
- + # Fix typos and clean up man page <rodgers@maxwell.mmwb.ucsf.edu>
- + #
- + # Revision 2.4 89/08/11 08:34:47 billr
- + # Patchlevel 3 of calentool. Fixes the following bug reports:
- + #
- + # Bug fix for moontool <kelvin%throop@acad.uucp>
- + # Bug fix/new version of passover() <amos@nsc.com>
- + # Bug in moon phase calculation <kent@tfd.com>, <ras@needle1.bellcore.com>, <roberts%studguppy@lanl.gov>, <darcic@lachlan.sts.te.com>
- + # Check return from get_defaults <ian@sq.com>
- + # Cleanup Makefile <casey@gauss.llnl.gov>
- + # Idea for monthly printout for terminal users <ian@sq.com>
- + # Makefile did not copy dates/computing to lib dir <jmc@ptsfa.pacbell.com>
- + # Missing arg for rotate function in ras2ps <jasmerb@hobbes.cs.orst.edu>
- + # More makefile cleanup <lwv27%chemabs@cis.ohio-state.edu>
- + # Off by one in mt2ct conversion <tom@cis.udel.edu>, <kas@cs.aber.ac.uk>, <paul%gill@uunet.uu.net>
- + # Optimize nr weeks calculation for month display <rwolff@noao.edu>
- + # Prevent calentool from sending mail when there are no appts <zander%trak@lanl.gov>, <john@math.nwu.edu>, <kayhan@cleopatra.usc.edu>
- + # Raster print command missing '-v' argument <hleroy@presto.irisa.fr>
- + # Scrambled moon icon on 386i <scott@cfi.com>, <lwv27%chemabs@cis.ohio-state.edu>, <syd@dsi.com>, <alfred@mcc.com>
- + # Seg fault when cursor moved to long appt entry (386i) <alfred@mcc.com>, <jmc@pbjmc.pacbell.com>, <baron@neptune.cs.ucla.edu>
- + # Set file access permissions on tmp file to match .appointments file <brooks@ge-dab.ge.com>
- + # Space date file <steve@prism.gatech.edu>
- + # Typo in man page "Save" file shoudl be "Update" file <lwv27%chemabs@cis.ohio-state.edu>
- + # Typo in riseset.c (tzp.minuteswest should be tzp.tz_minuteswest) <hleroy@presto.irisa.fr>, <correira@austin.lockheed.com>
- + # When deleteing an overlapping entry, background entry is not displayed <rgh@shell.uucp>
- + # Wrong week displayed when selecting a week in month display <rodgers@maxwell.mmwb.ucsf.edu>
- + #
- # Revision 2.3 89/05/16 16:32:23 billr
- # Fix bug whereby nfs mounted appointment files were not being
- # properly updated. Add support for PostScript pretty printing
- *** /tmp/,RCSt1a05523 Wed Jul 19 20:45:38 1989
- --- calentool.c Wed Jul 19 20:26:26 1989
- ***************
- *** 1,5
- /*
- ! * $Header: calentool.c,v 2.1 89/05/09 15:28:43 billr Exp $
- */
- /*
- * calentool.c
-
- --- 1,5 -----
- /*
- ! * $Header: calentool.c,v 2.2 89/07/19 20:25:41 billr Exp $
- */
- /*
- * calentool.c
- ***************
- *** 155,160
- {
- int flag, i;
- int printit = 0, toolrunning = 1, user_pos = 0;
- extern char *optarg;
-
- if (progname = rindex(*argv, '/'))
-
- --- 155,161 -----
- {
- int flag, i;
- int printit = 0, toolrunning = 1, user_pos = 0;
- + int printit_dst = 0;
- extern char *optarg;
-
- if (progname = rindex(*argv, '/'))
- ***************
- *** 171,177
- working_msg = 1;
-
- /*
- ! * Check for -p or -m option, which means we don't want
- * to create the tool. Also check for -Wp so we can supply
- * a resonable default if the user doesn't supply one.
- */
-
- --- 172,178 -----
- working_msg = 1;
-
- /*
- ! * Check for -p, -P or -m option, which means we don't want
- * to create the tool. Also check for -Wp so we can supply
- * a resonable default if the user doesn't supply one.
- */
- ***************
- *** 177,184
- */
- i = argc;
- while (--i > 0) {
- ! if (!strcmp(argv[i], "-p") || !strcmp(argv[i], "-m")
- ! || !strcmp(argv[i], "-P"))
- toolrunning = 0;
- if (!strcmp(argv[i], "-Wp"))
- user_pos = 1;
-
- --- 178,194 -----
- */
- i = argc;
- while (--i > 0) {
- ! if (!strncmp(argv[i], "-p", 2) || !strcmp(argv[i], "-m")
- ! || !strncmp(argv[i], "-P", 2)) {
- ! /* standard getopt doesn't allow optional
- ! * arguments, so we do a check here for
- ! * obsolete usage of the -p option
- ! */
- ! if ((argv[i][1] == 'p' || argv[i][1] == 'P') &&
- ! argv[i][2] == '\0') {
- ! fprintf(stderr, "calentool: -p/-P requires a 'd', 'w' or 'm' argument\n");
- ! exit(1);
- ! }
- toolrunning = 0;
- } else if (!strcmp(argv[i], "-Wp"))
- user_pos = 1;
- ***************
- *** 180,186
- if (!strcmp(argv[i], "-p") || !strcmp(argv[i], "-m")
- || !strcmp(argv[i], "-P"))
- toolrunning = 0;
- ! if (!strcmp(argv[i], "-Wp"))
- user_pos = 1;
- }
- if (toolrunning) {
-
- --- 190,196 -----
- exit(1);
- }
- toolrunning = 0;
- ! } else if (!strcmp(argv[i], "-Wp"))
- user_pos = 1;
- }
- if (toolrunning) {
- ***************
- *** 195,201
- 0);
- }
-
- ! while ((flag = getopt(argc, argv, "57bd:f:im:opPrtu:zH:h:w")) != EOF)
- switch (flag) {
- case 'f': /* use this file */
- otherfile = 1;
-
- --- 205,211 -----
- 0);
- }
-
- ! while ((flag = getopt(argc, argv, "57bd:f:im:op:P:rtu:zH:h:w")) != EOF)
- switch (flag) {
- case 'f': /* use this file */
- otherfile = 1;
- ***************
- *** 212,218
-
- case 'p': /* print and exit */
- read_only = 1;
- ! printit = 1;
- break;
-
- case 'P': /* print and exit (ignore some notes) */
-
- --- 222,246 -----
-
- case 'p': /* print and exit */
- read_only = 1;
- ! switch (*optarg) {
- ! case 'd':
- ! case 'D':
- ! printit = PRI_DAY;
- ! break;
- ! case 'w':
- ! case 'W':
- ! printit = PRI_WEEK;
- ! break;
- ! case 'm':
- ! case 'M':
- ! printit = PRI_MONTH;
- ! break;
- ! default:
- ! fprintf(stderr, "calentool: unknown print option.", NON_FATAL);
- ! break;
- ! }
- ! if (!printit_dst)
- ! printit_dst = DST_STDOUT;
- break;
-
- case 'P': /* print and exit (ignore some notes) */
- ***************
- *** 217,223
-
- case 'P': /* print and exit (ignore some notes) */
- read_only = 1;
- ! printit = 3;
- break;
-
- case 'm': /* mail today's appts and exit */
-
- --- 245,269 -----
-
- case 'P': /* print and exit (ignore some notes) */
- read_only = 1;
- ! switch (*optarg) {
- ! case 'd':
- ! case 'D':
- ! printit = PRI_DAY_XNOTES;
- ! break;
- ! case 'w':
- ! case 'W':
- ! printit = PRI_WEEK_XNOTES;
- ! break;
- ! case 'm':
- ! case 'M':
- ! printit = PRI_MONTH_XNOTES;
- ! break;
- ! default:
- ! fprintf(stderr, "calentool: unknown print option.", NON_FATAL);
- ! break;
- ! }
- ! if (!printit_dst)
- ! printit_dst = DST_STDOUT;
- break;
-
- case 'm': /* mail today's appts and exit */
- ***************
- *** 222,228
-
- case 'm': /* mail today's appts and exit */
- read_only = 1;
- ! printit = 2;
- mailto = optarg;
- break;
-
-
- --- 268,274 -----
-
- case 'm': /* mail today's appts and exit */
- read_only = 1;
- ! printit_dst = DST_MAIL;
- mailto = optarg;
- break;
-
- ***************
- *** 292,298
- holiday_s = 1;
- break;
- default:
- ! fprintf(stderr, "unknown holiday option (must be one of \"Aacijs\")");
- break;
- }
- break;
-
- --- 338,344 -----
- holiday_s = 1;
- break;
- default:
- ! fprintf(stderr, "calentool: unknown holiday option (must be one of \"Aacijs\")");
- break;
- }
- break;
- ***************
- *** 326,332
- holiday_s = 2;
- break;
- default:
- ! fprintf(stderr, "unknown holiday option (must be one of \"Aacijs\")");
- break;
- }
- break;
-
- --- 372,378 -----
- holiday_s = 2;
- break;
- default:
- ! fprintf(stderr, "calentool: unknown holiday option (must be one of \"Aacijs\")");
- break;
- }
- break;
- ***************
- *** 333,339
- #else
- case 'h':
- case 'H':
- ! fprintf(stderr, "-h and -H options not available\n");
- break;
- #endif
- case '?':
-
- --- 379,385 -----
- #else
- case 'h':
- case 'H':
- ! fprintf(stderr, "calentool: -h and -H options not available\n");
- break;
- #endif
- case '?':
- ***************
- *** 341,348
- fprintf(stderr, "usage: %s [options...]\nwhere <options> are:\n", progname);
- fprintf(stderr, " -f <appointment_file>\n");
- fprintf(stderr, " -r // readonly\n");
- ! fprintf(stderr, " -p // print selected days appts and exit\n");
- ! fprintf(stderr, " -P // like -p, only don't print marked notes\n");
- fprintf(stderr, " -m <user> // mail selected days appts to <user>\n");
- fprintf(stderr, " [-5|-7] // 5-day or 7-day week display\n");
- fprintf(stderr, " -d <date> // display appts for <date>\n");
-
- --- 387,394 -----
- fprintf(stderr, "usage: %s [options...]\nwhere <options> are:\n", progname);
- fprintf(stderr, " -f <appointment_file>\n");
- fprintf(stderr, " -r // readonly\n");
- ! fprintf(stderr, " -p <dwm> // print selected day [d], week [w] or month [m] appts and exit\n");
- ! fprintf(stderr, " -P <dwm> // like -p, only don't print marked notes\n");
- fprintf(stderr, " -m <user> // mail selected days appts to <user>\n");
- fprintf(stderr, " [-5|-7] // 5-day or 7-day week display\n");
- fprintf(stderr, " -d <date> // display appts for <date>\n");
- ***************
- *** 382,388
- get_printer();
-
- if (printit) {
- ! print_apts(printit);
- exit(0);
- }
-
-
- --- 428,434 -----
- get_printer();
-
- if (printit) {
- ! print_apts(printit, printit_dst);
- exit(0);
- }
-
- ***************
- *** 630,636
- close_day();
- current = today;
- err2console(TRUE);
- ! get_day_appts();
- err2console(FALSE);
- day_is_open = TRUE;
- if (!new_day) {
-
- --- 676,682 -----
- close_day();
- current = today;
- err2console(TRUE);
- ! (void)get_day_appts();
- err2console(FALSE);
- day_is_open = TRUE;
- if (!new_day) {
- ***************
- *** 769,775
- close_day();
- current = Save;
- err2console(TRUE);
- ! get_day_appts();
- err2console(FALSE);
- day_is_open = TRUE;
- }
-
- --- 815,821 -----
- close_day();
- current = Save;
- err2console(TRUE);
- ! (void)get_day_appts();
- err2console(FALSE);
- day_is_open = TRUE;
- }
- *** /tmp/,RCSt1a05528 Wed Jul 19 20:45:42 1989
- --- ct.h Wed Jul 19 20:26:54 1989
- ***************
- *** 1,5
- /*
- ! * $Header: ct.h,v 2.1 89/05/09 14:25:13 billr Exp $
- */
- /*
- * ct.h - header file for calentool
-
- --- 1,5 -----
- /*
- ! * $Header: ct.h,v 2.2 89/07/19 20:26:27 billr Exp $
- */
- /*
- * ct.h - header file for calentool
- ***************
- *** 24,30
-
- /* directory for date/event files */
- #ifndef DATELIB_DIR
- ! # define DATELIB_DIR "/usr/local/lib/calentool"
- #endif
-
- #ifndef NOPRINTER
-
- --- 24,30 -----
-
- /* directory for date/event files */
- #ifndef DATELIB_DIR
- ! # define DATELIB_DIR "/usr/net/lib/calentool"
- #endif
-
- #ifndef NOPRINTER
- ***************
- *** 34,39
- # endif
-
- /*# define RASTER_ONLY /* define this if no Postscript printer available */
- #endif
-
- /* define NR_WEEKDAYS for desired week display */
-
- --- 34,41 -----
- # endif
-
- /*# define RASTER_ONLY /* define this if no Postscript printer available */
- + #ifndef PS_NOTE_FONT
- + # define PS_NOTE_FONT "Helvetica-Narrow"
- #endif
- #endif
-
- ***************
- *** 35,40
-
- /*# define RASTER_ONLY /* define this if no Postscript printer available */
- #endif
-
- /* define NR_WEEKDAYS for desired week display */
- /* NR_WEEKDAYS display */
-
- --- 37,43 -----
- #ifndef PS_NOTE_FONT
- # define PS_NOTE_FONT "Helvetica-Narrow"
- #endif
- + #endif
-
- /* define NR_WEEKDAYS for desired week display */
- /* NR_WEEKDAYS display */
- ***************
- *** 197,202
- #define NON_FATAL 0
- #define FATAL 1
-
- #define STD_ICON 0 /* flags for icon currently displayed */
- #define REV_ICON 1
- #define NA_ICON 2
-
- --- 200,206 -----
- #define NON_FATAL 0
- #define FATAL 1
-
- + /* icon identifiers */
- #define STD_ICON 0 /* flags for icon currently displayed */
- #define REV_ICON 1
- #define NA_ICON 2
- ***************
- *** 200,205
- #define STD_ICON 0 /* flags for icon currently displayed */
- #define REV_ICON 1
- #define NA_ICON 2
-
- /* header line in appts file implies one-based entries and 99 memo flag */
- #define HEADER "# CalenTool V2 - DO NOT REMOVE THIS LINE\n"
-
- --- 204,220 -----
- #define STD_ICON 0 /* flags for icon currently displayed */
- #define REV_ICON 1
- #define NA_ICON 2
- +
- + /* arguments to print_apts() */
- + #define PRI_DAY 1
- + #define PRI_WEEK 2
- + #define PRI_MONTH 3
- + #define PRI_XNOTES 4
- + #define PRI_DAY_XNOTES (PRI_DAY|PRI_XNOTES)
- + #define PRI_WEEK_XNOTES (PRI_WEEK|PRI_XNOTES)
- + #define PRI_MONTH_XNOTES (PRI_MONTH|PRI_XNOTES)
- + #define DST_STDOUT 1
- + #define DST_MAIL 2
-
- /* header line in appts file implies one-based entries and 99 memo flag */
- #define HEADER "# CalenTool V2 - DO NOT REMOVE THIS LINE\n"
- *** /tmp/,RCSt1a05533 Wed Jul 19 20:45:45 1989
- --- datelib.c Wed Jul 19 20:35:04 1989
- ***************
- *** 1,5
- /*
- ! * $Header: datelib.c,v 2.1 89/05/09 14:18:52 billr Exp $
- *
- * datelib.c - Calendar (date) computation library
- *
-
- --- 1,5 -----
- /*
- ! * $Header: datelib.c,v 2.2 89/07/19 20:34:23 billr Exp $
- *
- * datelib.c - Calendar (date) computation library
- *
- ***************
- *** 1026,1033
- * and that it exhibits the eccentricity of always computing the day
- * relative to March, so that April 2 appears as March 33, which is also
- * corrected below.
- ! * This formula is probably only accurate for years up to and including
- ! * 2000 (tested); I know that it fails for 2011.
- */
- double
- passover(year, jyear)
-
- --- 1026,1034 -----
- * and that it exhibits the eccentricity of always computing the day
- * relative to March, so that April 2 appears as March 33, which is also
- * corrected below.
- ! *
- ! * Floating point implementation by R.P.C. Rodgers; integer implementation
- ! * (for faster calculation) by Amos Shapir (amos@nsc.com).
- */
- double
- passover(year, jyear)
- ***************
- *** 1033,1039
- passover(year, jyear)
- int *jyear, year;
- {
- ! double etmp, p_day;
- int atmp, btmp, ctmp, day_of_week, dtmp, ftmp, gtmp;
- int p_month;
-
-
- --- 1034,1040 -----
- passover(year, jyear)
- int *jyear, year;
- {
- ! int etmp, p_day;
- int atmp, btmp, ctmp, day_of_week, dtmp, ftmp, gtmp;
- int p_month;
-
- ***************
- *** 1041,1050
- *jyear = atmp;
- btmp = (12 * atmp + 17) % 19;
- ctmp = atmp % 4;
- ! etmp = (1.55424180 * btmp) - (0.003177794 * atmp)
- ! + (ctmp / 4) + 32.04409316;
- ! dtmp = etmp;
- ! etmp = etmp - dtmp;
- /* day_of_week is not to be confused with the
- value returned by the day_of_week routine; here, Sunday = 1 */
- day_of_week = ((3 * atmp) + (5 * ctmp) + dtmp + 5) % 7;
-
- --- 1042,1051 -----
- *jyear = atmp;
- btmp = (12 * atmp + 17) % 19;
- ctmp = atmp % 4;
- ! etmp = (765433 * btmp) - (1565 * atmp)
- ! + (ctmp * 123120) + 15781075;
- ! dtmp = etmp / 492480;
- ! etmp %= 492480;
- /* day_of_week is not to be confused with the
- value returned by the day_of_week routine; here, Sunday = 1 */
- day_of_week = ((3 * atmp) + (5 * ctmp) + dtmp + 5) % 7;
- ***************
- *** 1048,1057
- /* day_of_week is not to be confused with the
- value returned by the day_of_week routine; here, Sunday = 1 */
- day_of_week = ((3 * atmp) + (5 * ctmp) + dtmp + 5) % 7;
- ! if (day_of_week == 0 && btmp > 11 && etmp >= 0.89772377)
- ! p_day = dtmp + 1.0;
- ! else if (day_of_week == 1 && btmp > 6 && etmp >= 0.63287037)
- ! p_day = dtmp + 2.0;
- else if (day_of_week == 2 || day_of_week == 4 || day_of_week ==6)
- p_day = dtmp + 1.0;
- else {
-
- --- 1049,1058 -----
- /* day_of_week is not to be confused with the
- value returned by the day_of_week routine; here, Sunday = 1 */
- day_of_week = ((3 * atmp) + (5 * ctmp) + dtmp + 5) % 7;
- ! if (day_of_week == 0 && btmp > 11 && etmp >= 311676)
- ! p_day = dtmp + 1;
- ! else if (day_of_week == 1 && btmp > 6 && etmp >= 311676)
- ! p_day = dtmp + 2;
- else if (day_of_week == 2 || day_of_week == 4 || day_of_week ==6)
- p_day = dtmp + 1;
- else {
- ***************
- *** 1053,1059
- else if (day_of_week == 1 && btmp > 6 && etmp >= 0.63287037)
- p_day = dtmp + 2.0;
- else if (day_of_week == 2 || day_of_week == 4 || day_of_week ==6)
- ! p_day = dtmp + 1.0;
- else {
- p_day = dtmp;
- }
-
- --- 1054,1060 -----
- else if (day_of_week == 1 && btmp > 6 && etmp >= 311676)
- p_day = dtmp + 2;
- else if (day_of_week == 2 || day_of_week == 4 || day_of_week ==6)
- ! p_day = dtmp + 1;
- else {
- p_day = dtmp;
- }
- *** /tmp/,RCSt1a06079 Tue Sep 19 06:02:26 1989
- --- devent.c Tue Sep 19 05:59:20 1989
- ***************
- *** 1,5
- /*
- ! * $Header: devent.c,v 2.1 89/05/09 14:18:59 billr Exp $
- */
- /*
- * devent.c
-
- --- 1,5 -----
- /*
- ! * $Header: devent.c,v 2.5 89/09/19 05:58:58 billr Exp $
- */
- /*
- * devent.c
- ***************
- *** 68,74
- event = canvas_window_event(canvas, event);
- x = event_x(event);
- y = event_y(event);
- - /*fix_event(canvas, event); /* check for LOC_RGNENTER */
- if (event_id(event) == LOC_RGNEXIT && old_slot >= 0) {
- /* erase text cursor */
- text_cursor(old_slot);
-
- --- 68,73 -----
- event = canvas_window_event(canvas, event);
- x = event_x(event);
- y = event_y(event);
- if (event_id(event) == LOC_RGNEXIT && old_slot >= 0) {
- /* erase text cursor */
- text_cursor(old_slot);
- ***************
- *** 202,208
- }
- }
- expecting = 0;
- ! } else if (found_flag == FOUND_SLOT && event_id(event) == MS_MIDDLE) {
- /* Process a MB click. */
- if (box_index >= n_tslots)
- /* don't flow into notes section */
-
- --- 201,207 -----
- }
- }
- expecting = 0;
- ! } else if (found_flag == FOUND_SLOT && event_id(event) == MS_MIDDLE) {
- /* Process a MB click. */
- if (event_is_down(event)) {
- /* try to start dragging from here */
- ***************
- *** 204,212
- expecting = 0;
- } else if (found_flag == FOUND_SLOT && event_id(event) == MS_MIDDLE) {
- /* Process a MB click. */
- - if (box_index >= n_tslots)
- - /* don't flow into notes section */
- - box_index = n_tslots - 1;
- if (event_is_down(event)) {
- /* try to start dragging from here */
- if (slots[box_index].active != ACTIVE) {
-
- --- 203,208 -----
- expecting = 0;
- } else if (found_flag == FOUND_SLOT && event_id(event) == MS_MIDDLE) {
- /* Process a MB click. */
- if (event_is_down(event)) {
- /* try to start dragging from here */
- if (slots[box_index].active != ACTIVE || box_index >= n_tslots) {
- ***************
- *** 209,215
- box_index = n_tslots - 1;
- if (event_is_down(event)) {
- /* try to start dragging from here */
- ! if (slots[box_index].active != ACTIVE) {
- start_arrow_box = -1;
- return(0);
- }
-
- --- 205,212 -----
- /* Process a MB click. */
- if (event_is_down(event)) {
- /* try to start dragging from here */
- ! if (slots[box_index].active != ACTIVE || box_index >= n_tslots) {
- ! /* not allowed in notes slots, either */
- start_arrow_box = -1;
- return(0);
- }
- ***************
- *** 223,232
- }
- prev_box = start_arrow_box = box_index;
- } else {
- ! /* end of dragging => end of arrow */
- ! if (box_index < start_arrow_box || start_arrow_box == -1) {
- ! start_arrow_box = -1;
- ! return(0);
- }
- if (box_index > start_arrow_box) {
- i = start_arrow_box;
-
- --- 220,233 -----
- }
- prev_box = start_arrow_box = box_index;
- } else {
- ! if (box_index >= n_tslots) {
- ! /* mouse currently in notes section */
- ! if (start_arrow_box == -1)
- ! /* started in notes section, too */
- ! return(0);
- ! else
- ! /* truncate at start of notes section */
- ! box_index = n_tslots - 1;
- }
- /* end of dragging => end of arrow */
- if (box_index > start_arrow_box && start_arrow_box != -1) {
- ***************
- *** 228,234
- start_arrow_box = -1;
- return(0);
- }
- ! if (box_index > start_arrow_box) {
- i = start_arrow_box;
- slots[i].cur_appt->arrows = box_index - start_arrow_box;
- while (++i < box_index) {
-
- --- 229,236 -----
- /* truncate at start of notes section */
- box_index = n_tslots - 1;
- }
- ! /* end of dragging => end of arrow */
- ! if (box_index > start_arrow_box && start_arrow_box != -1) {
- i = start_arrow_box;
- slots[i].cur_appt->arrows = box_index - start_arrow_box;
- while (++i < box_index) {
- ***************
- *** 337,343
- }
- }
- i = (int) menu_show(day_sel_menu, canvas, event, 0);
- ! if (i > 0)
- switch (i) {
- case MDELETE:
- delete_appt(box_index, canvas);
-
- --- 339,345 -----
- }
- }
- i = (int) menu_show(day_sel_menu, canvas, event, 0);
- ! if (i > 0) {
- switch (i) {
- case MDELETE:
- delete_appt(box_index, canvas);
- ***************
- *** 358,366
- undelete_appt(box_index);
- break;
- }
- ! if (new_entry) {
- ! close_day();
- ! draw_day(); /* redraw display */
- }
- } else
- window_default_event_proc(canvas, event, 0);
-
- --- 360,369 -----
- undelete_appt(box_index);
- break;
- }
- ! if (new_entry) {
- ! close_day();
- ! draw_day(); /* redraw display */
- ! }
- }
- } else
- window_default_event_proc(canvas, event, 0);
- ***************
- *** 393,402
- int strl, x;
-
- strl = strlen(&slots[slotno].cur_appt->str[slots[slotno].cur_appt->sindex]);
- ! if (strl > (day_message_size-1)) {
- ! pw_write(main_pixwin, slots[slotno].slot_pos.right, slots[slotno].slot_pos.bottom-4,
- ! 8, 8, PIX_SRC^PIX_DST, &tri_right_pr, 0, 0);
- ! } else {
- x = slots[slotno].slot_pos.left + strl * font->pf_defaultsize.x;
- pw_write(main_pixwin, x, slots[slotno].slot_pos.bottom-4,
- 16, 16, PIX_SRC^PIX_DST, &tri_up_pr, 0, 0);
-
- --- 396,402 -----
- int strl, x;
-
- strl = strlen(&slots[slotno].cur_appt->str[slots[slotno].cur_appt->sindex]);
- ! if (strl <= (day_message_size-1)) {
- x = slots[slotno].slot_pos.left + strl * font->pf_defaultsize.x;
- pw_write(main_pixwin, x, slots[slotno].slot_pos.bottom-4,
- 16, 16, PIX_SRC^PIX_DST, &tri_up_pr, 0, 0);
- ***************
- *** 829,836
- /* run through the list to see if there are any deleted */
- for (aptr=slots[bi].first; aptr; aptr=aptr->next)
- if (aptr->flags & DELETED) {
- ! found = 1;
- ! break;
- }
- /* now see if the current one matches */
- if (found && !strcmp(aptr->str, slots[bi].cur_appt->str))
-
- --- 829,837 -----
- /* run through the list to see if there are any deleted */
- for (aptr=slots[bi].first; aptr; aptr=aptr->next)
- if (aptr->flags & DELETED) {
- ! /* now see if the current one matches */
- ! if (!strcmp(aptr->str, slots[bi].cur_appt->str))
- ! return(1);
- }
-
- return(0);
- ***************
- *** 832,840
- found = 1;
- break;
- }
- - /* now see if the current one matches */
- - if (found && !strcmp(aptr->str, slots[bi].cur_appt->str))
- - return(1);
-
- return(0);
- }
-
- --- 833,838 -----
- if (!strcmp(aptr->str, slots[bi].cur_appt->str))
- return(1);
- }
-
- return(0);
- }
- *** /tmp/,RCSt1a05543 Wed Jul 19 20:45:55 1989
- --- dpaint.c Wed Jul 19 20:27:58 1989
- ***************
- *** 1,5
- /*
- ! * $Header: dpaint.c,v 2.2 89/05/10 10:06:20 billr Exp $
- */
- /*
- * dpaint.c
-
- --- 1,5 -----
- /*
- ! * $Header: dpaint.c,v 2.3 89/07/19 20:27:45 billr Exp $
- */
- /*
- * dpaint.c
- ***************
- *** 77,82
- */
- draw_day1()
- {
- lock_cursors();
- fix_current_day();
- working(TRUE);
-
- --- 77,84 -----
- */
- draw_day1()
- {
- + int i;
- +
- lock_cursors();
- fix_current_day();
- working(TRUE);
- ***************
- *** 83,89
- pw_batch_on(main_pixwin);
- draw_day_outline();
- pw_batch_off(main_pixwin);
- ! get_day_appts();
- working(FALSE);
- pw_batch_on(main_pixwin);
- draw_day_appts();
-
- --- 85,91 -----
- pw_batch_on(main_pixwin);
- draw_day_outline();
- pw_batch_off(main_pixwin);
- ! i = get_day_appts();
- working(FALSE);
- if (i) {
- pw_batch_on(main_pixwin);
- ***************
- *** 85,93
- pw_batch_off(main_pixwin);
- get_day_appts();
- working(FALSE);
- ! pw_batch_on(main_pixwin);
- ! draw_day_appts();
- ! pw_batch_off(main_pixwin);
- day_is_open = TRUE;
- unlock_cursors();
- }
-
- --- 87,97 -----
- pw_batch_off(main_pixwin);
- i = get_day_appts();
- working(FALSE);
- ! if (i) {
- ! pw_batch_on(main_pixwin);
- ! draw_day_appts();
- ! pw_batch_off(main_pixwin);
- ! }
- day_is_open = TRUE;
- unlock_cursors();
- }
- ***************
- *** 172,177
- * with all the lines from the ".appointments" file
- * which do not pertain to the current day.
- */
- get_day_appts()
- {
- FILE *apts, *temp_apts;
-
- --- 176,182 -----
- * with all the lines from the ".appointments" file
- * which do not pertain to the current day.
- */
- + int
- get_day_appts()
- {
- FILE *apts, *temp_apts;
- ***************
- *** 176,182
- {
- FILE *apts, *temp_apts;
- int slotno, n_arrows, i;
- ! int read_stat;
- struct appt_entry appt;
- struct appt_entry *nappt, *aptr;
- char buf[MAX_STRLEN], *sptr;
-
- --- 181,187 -----
- {
- FILE *apts, *temp_apts;
- int slotno, n_arrows, i;
- ! int read_stat, some_appt = 0;
- struct appt_entry appt;
- struct appt_entry *nappt, *aptr;
- char buf[MAX_STRLEN], *sptr;
- ***************
- *** 329,334
- fclose(apts);
- current = First;
- fix_current_day();
- }
-
-
-
- --- 334,351 -----
- fclose(apts);
- current = First;
- fix_current_day();
- + /* now check to see if there is anything happening this day */
- + if (findex)
- + some_appt = 1;
- + else {
- + for (i=0; i<N_SLOTS; i++) {
- + if (slots[i].count > 0) {
- + some_appt = 1;
- + break;
- + }
- + }
- + }
- + return(some_appt);
- }
-
-
- *** /tmp/,RCSt1a05550 Wed Jul 19 20:45:59 1989
- --- init.c Wed Jul 19 20:28:11 1989
- ***************
- *** 1,5
- /*
- ! * $Header: init.c,v 2.1 89/05/09 14:23:19 billr Exp $
- */
- /*
- * init.c
-
- --- 1,5 -----
- /*
- ! * $Header: init.c,v 2.2 89/07/19 20:27:59 billr Exp $
- */
- /*
- * init.c
- ***************
- *** 35,40
- #include <suntool/menu.h>
- #include <sunwindow/defaults.h>
- #include <sys/file.h>
- #include <pwd.h>
- #include "ct.h"
-
-
- --- 35,41 -----
- #include <suntool/menu.h>
- #include <sunwindow/defaults.h>
- #include <sys/file.h>
- + #include <sys/stat.h>
- #include <pwd.h>
- #include "ct.h"
-
- ***************
- *** 321,327
- char *strcpy(), *rindex(), *getenv();
- char *slash, *default_ptr, *envptr;
- char buff[80];
- ! int to_slash, getpid(), fd, errflag;
- struct passwd *pw;
- FILE *appts;
-
-
- --- 322,328 -----
- char *strcpy(), *rindex(), *getenv();
- char *slash, *default_ptr, *envptr;
- char buff[80];
- ! int to_slash, getpid(), fd, errflag, numask;
- struct passwd *pw;
- struct stat statbuf;
- FILE *appts;
- ***************
- *** 323,328
- char buff[80];
- int to_slash, getpid(), fd, errflag;
- struct passwd *pw;
- FILE *appts;
-
- /* the tmp file */
-
- --- 324,330 -----
- char buff[80];
- int to_slash, getpid(), fd, errflag, numask;
- struct passwd *pw;
- + struct stat statbuf;
- FILE *appts;
-
- /* the tmp file */
- ***************
- *** 382,388
- if ((int)window_loop(prompt_frame) == 0) {
- /* try to create the file */
- fprintf(stderr, "creating file\n");
- ! if ((fd=open(apts_pathname, O_CREAT|O_RDWR, 0664)) <= 0) {
- perror(apts_pathname);
- errflag = 1;
- fprintf(stderr, "..error\n");
-
- --- 384,390 -----
- if ((int)window_loop(prompt_frame) == 0) {
- /* try to create the file */
- fprintf(stderr, "creating file\n");
- ! if ((fd=open(apts_pathname, O_CREAT|O_RDWR, 0644)) <= 0) {
- perror(apts_pathname);
- errflag = 1;
- fprintf(stderr, "..error\n");
- ***************
- *** 406,412
- fprintf(stderr, "Cannot access calendar file %s - create? ", apts_pathname);
- fgets(buff, 80, stdin);
- if (buff[0] == 'y' || buff[0] == 'Y') {
- ! if ((fd=open(apts_pathname, O_CREAT|O_RDWR, 0664)) <= 0) {
- perror(apts_pathname);
- return(1);
- } else {
-
- --- 408,414 -----
- fprintf(stderr, "Cannot access calendar file %s - create? ", apts_pathname);
- fgets(buff, 80, stdin);
- if (buff[0] == 'y' || buff[0] == 'Y') {
- ! if ((fd=open(apts_pathname, O_CREAT|O_RDWR, 0644)) <= 0) {
- perror(apts_pathname);
- return(1);
- } else {
- ***************
- *** 424,429
- }
- if (access(apts_pathname, W_OK) == -1)
- read_only = 1;
-
- /* update base frame label, if the tool is running */
- if (frame) {
-
- --- 426,439 -----
- }
- if (access(apts_pathname, W_OK) == -1)
- read_only = 1;
- + /*
- + * set permissions on tmp file based on .appointments file
- + * with the expception that we need at least write permission
- + * for the owner.
- + */
- + (void)stat(apts_pathname, &statbuf);
- + numask = ~statbuf.st_mode & 0077; /* yes, this is octal 77 */
- + (void)umask(numask);
-
- /* update base frame label, if the tool is running */
- if (frame) {
- *** /tmp/,RCSt1a05560 Wed Jul 19 20:46:07 1989
- --- mpaint.c Wed Jul 19 20:29:26 1989
- ***************
- *** 1,5
- /*
- ! * $Header: mpaint.c,v 2.1 89/05/09 14:19:29 billr Exp $
- */
- /*
- * mpaint.c
-
- --- 1,5 -----
- /*
- ! * $Header: mpaint.c,v 2.2 89/07/19 20:29:01 billr Exp $
- */
- /*
- * mpaint.c
- ***************
- *** 41,48
-
- draw_month()
- {
- ! int start_dow, i, x, y, n_days, n_weeks;
- ! int histo[7], days_in_week;
- int arrow_index, last_top, index;
- char c[4], title[20], *cp;
- int left_border, right_border, top_border, bottom_border;
-
- --- 41,48 -----
-
- draw_month()
- {
- ! int start_dow, i, x, y, n_days;
- ! int days_in_week;
- int arrow_index, last_top, index;
- char c[4], title[20], *cp;
- int left_border, right_border, top_border, bottom_border;
- ***************
- *** 66,80
- working(TRUE);
- start_dow = current.tm_wday;
- n_days = monthlength(current.tm_mon);
- ! for (i=0; i<7; i++) /* Calculate # of full/partial weeks. */
- ! histo[i] = 0;
- ! for (i=0; i<n_days; i++)
- ! histo[(start_dow + i) % 7] += 1;
- ! n_weeks = 0;
- ! for (i=0; i<7; i++)
- ! if (histo[i] > n_weeks)
- ! n_weeks = histo[i];
- !
- pw_batch_on(main_pixwin);
- rect = (Rect *) window_get(canvas, WIN_RECT);
- /* Erase the window */
-
- --- 66,72 -----
- working(TRUE);
- start_dow = current.tm_wday;
- n_days = monthlength(current.tm_mon);
- !
- pw_batch_on(main_pixwin);
- rect = (Rect *) window_get(canvas, WIN_RECT);
- /* Erase the window */
- ***************
- *** 80,86
- /* Erase the window */
- pw_writebackground(main_pixwin,0,0,rect->r_width,rect->r_height,PIX_CLR);
- left_border = (rect->r_width - 7*64)/2 + 32;
- ! top_border = (rect->r_height - n_weeks*64) / 2;
- right_border = left_border + 7*64;
-
- sprintf(title, "%s, %d",
-
- --- 72,78 -----
- /* Erase the window */
- pw_writebackground(main_pixwin,0,0,rect->r_width,rect->r_height,PIX_CLR);
- left_border = (rect->r_width - 7*64)/2 + 32;
- ! top_border = (rect->r_height - 5*64) / 2;
- right_border = left_border + 7*64;
-
- sprintf(title, "%s, %d",
- *** /tmp/,RCSt1a05567 Wed Jul 19 20:46:09 1989
- --- mt2ct.c Wed Jul 19 20:29:42 1989
- ***************
- *** 1,5
- /*
- ! * $Header: mt2ct.c,v 2.1 89/05/09 14:19:31 billr Exp $
- */
- /*
- * mt2ct - convert monthtool reminder files to calentool style files
-
- --- 1,5 -----
- /*
- ! * $Header: mt2ct.c,v 2.2 89/07/19 20:29:27 billr Exp $
- */
- /*
- * mt2ct - convert monthtool reminder files to calentool style files
- ***************
- *** 109,117
- aptr->flags |= ALL_YEARS;
- if (aptr->month == 0)
- aptr->flags |= ALL_MONTHS;
- ! if (aptr->day == 0)
- ! aptr->flags |= ALL_DAYS;
- ! if (aptr->month == 99) {
- /* weekly reminder */
- aptr->flags |= ALL_MONTHS;
- aptr->flags |= Setday(aptr->day-1);
-
- --- 109,115 -----
- aptr->flags |= ALL_YEARS;
- if (aptr->month == 0)
- aptr->flags |= ALL_MONTHS;
- ! else if (aptr->month == 99) {
- /* weekly reminder */
- aptr->flags |= ALL_MONTHS;
- aptr->flags |= Setday(aptr->day-1);
- ***************
- *** 115,121
- /* weekly reminder */
- aptr->flags |= ALL_MONTHS;
- aptr->flags |= Setday(aptr->day-1);
- ! }
- aptr->next = (struct appt_entry *)malloc(sizeof(struct appt_entry));
- if (aptr->next == NULL) {
- fprintf(stderr, "out of memory\n");
-
- --- 113,122 -----
- /* weekly reminder */
- aptr->flags |= ALL_MONTHS;
- aptr->flags |= Setday(aptr->day-1);
- ! } else
- ! --aptr->month;
- ! if (aptr->day == 0)
- ! aptr->flags |= ALL_DAYS;
- aptr->next = (struct appt_entry *)malloc(sizeof(struct appt_entry));
- if (aptr->next == NULL) {
- fprintf(stderr, "out of memory\n");
- *** /tmp/,RCSt1a06103 Tue Sep 19 06:06:51 1989
- --- calentool.1 Tue Sep 19 06:06:30 1989
- ***************
- *** 1,4
- ! .\" $Header: calentool.1,v 2.2 89/05/16 16:38:22 billr Exp $
- .\"
- .TH CALENTOOL 1 "15 May 1989"
- .ds Ps P\s-2OST\s+2S\s-2CRIPT\s+2
-
- --- 1,4 -----
- ! .\" $Header: calentool.1,v 2.4 89/09/19 06:06:11 billr Exp $
- .\"
- .TH CALENTOOL 1 "14 September 1989"
- .ds Ps P\s-2OST\s+2S\s-2CRIPT\s+2
- ***************
- *** 1,6
- .\" $Header: calentool.1,v 2.2 89/05/16 16:38:22 billr Exp $
- .\"
- ! .TH CALENTOOL 1 "15 May 1989"
- .ds Ps P\s-2OST\s+2S\s-2CRIPT\s+2
- .SH NAME
- calentool - day/week/month/year-at-a-glance SunView tool (the Hacker's Almanac)
-
- --- 1,6 -----
- .\" $Header: calentool.1,v 2.4 89/09/19 06:06:11 billr Exp $
- .\"
- ! .TH CALENTOOL 1 "14 September 1989"
- .ds Ps P\s-2OST\s+2S\s-2CRIPT\s+2
- .SH NAME
- calentool - day/week/month/year-at-a-glance SunView tool (the Hacker's Almanac)
- ***************
- *** 7,13
- .SH SYNOPSIS
- .B calentool
- [
- ! .B -b
- ]
- [
- .B -d
-
- --- 7,13 -----
- .SH SYNOPSIS
- .B calentool
- [
- ! .B \-b
- ]
- [
- .B \-d
- ***************
- *** 10,16
- .B -b
- ]
- [
- ! .B -d
- .I date
- ]
- [
-
- --- 10,16 -----
- .B \-b
- ]
- [
- ! .B \-d
- .I date
- ]
- [
- ***************
- *** 14,20
- .I date
- ]
- [
- ! .B -f
- .I apptsfile
- ]
- [
-
- --- 14,20 -----
- .I date
- ]
- [
- ! .B \-f
- .I apptsfile
- ]
- [
- ***************
- *** 18,24
- .I apptsfile
- ]
- [
- ! .B -h
- [
- .I A a c i l j s
- ]]
-
- --- 18,24 -----
- .I apptsfile
- ]
- [
- ! .B \-h
- [
- .I A a c i l j s
- ]]
- ***************
- *** 23,29
- .I A a c i l j s
- ]]
- [
- ! .B -H
- [
- .I A a c i l j s
- ]]
-
- --- 23,29 -----
- .I A a c i l j s
- ]]
- [
- ! .B \-H
- [
- .I A a c i l j s
- ]]
- ***************
- *** 28,34
- .I A a c i l j s
- ]]
- [
- ! .B -i
- ]
- [
- .B -m
-
- --- 28,34 -----
- .I A a c i l j s
- ]]
- [
- ! .B \-i
- ]
- [
- .B \-m
- ***************
- *** 31,37
- .B -i
- ]
- [
- ! .B -m
- .I userid
- ]
- [
-
- --- 31,37 -----
- .B \-i
- ]
- [
- ! .B \-m
- .I userid
- ]
- [
- ***************
- *** 35,41
- .I userid
- ]
- [
- ! .B -o
- ]
- [
- .B -p
-
- --- 35,41 -----
- .I userid
- ]
- [
- ! .B \-o
- ]
- [
- .B \-p
- ***************
- *** 38,45
- .B -o
- ]
- [
- ! .B -p
- ! ]
- [
- .B -P
- ]
-
- --- 38,44 -----
- .B \-o
- ]
- [
- ! .B \-p
- [
- .I d w m
- ]]
- ***************
- *** 41,48
- .B -p
- ]
- [
- ! .B -P
- ! ]
- [
- .B -r
- ]
-
- --- 40,47 -----
- [
- .B \-p
- [
- ! .I d w m
- ! ]]
- [
- .B \-P
- [
- ***************
- *** 44,50
- .B -P
- ]
- [
- ! .B -r
- ]
- [
- .B -t
-
- --- 43,54 -----
- .I d w m
- ]]
- [
- ! .B \-P
- ! [
- ! .I d w m
- ! ]]
- ! [
- ! .B \-r
- ]
- [
- .B \-t
- ***************
- *** 47,53
- .B -r
- ]
- [
- ! .B -t
- ]
- [
- .B -u
-
- --- 51,57 -----
- .B \-r
- ]
- [
- ! .B \-t
- ]
- [
- .B \-u
- ***************
- *** 50,56
- .B -t
- ]
- [
- ! .B -u
- .I int
- ]
- [
-
- --- 54,60 -----
- .B \-t
- ]
- [
- ! .B \-u
- .I int
- ]
- [
- ***************
- *** 54,60
- .I int
- ]
- [
- ! .B -w
- ]
- [
- .B -z
-
- --- 58,64 -----
- .I int
- ]
- [
- ! .B \-w
- ]
- [
- .B \-z
- ***************
- *** 57,63
- .B -w
- ]
- [
- ! .B -z
- ]
- [
- .B -5
-
- --- 61,67 -----
- .B \-w
- ]
- [
- ! .B \-z
- ]
- [
- .B \-5
- ***************
- *** 60,66
- .B -z
- ]
- [
- ! .B -5
- ]
- [
- .B -7
-
- --- 64,70 -----
- .B \-z
- ]
- [
- ! .B \-5
- ]
- [
- .B \-7
- ***************
- *** 63,69
- .B -5
- ]
- [
- ! .B -7
- ]
- [
- .I window options
-
- --- 67,73 -----
- .B \-5
- ]
- [
- ! .B \-7
- ]
- [
- .I suntools options
- ***************
- *** 66,72
- .B -7
- ]
- [
- ! .I window options
- ]
- .SH DESCRIPTION
- .I Calentool
-
- --- 70,76 -----
- .B \-7
- ]
- [
- ! .I suntools options
- ]
- .SH DESCRIPTION
- .I Calentool
- ***************
- *** 120,126
- .I suntools
- command line options at the end of the command line.
- .TP 15
- ! .B -b
- When an appointment is pending, a bell character (along with the appointment
- message) is sent to the console; only one reminder is sent for each
- appointment. Also, place a copy of the appointment text in the file
-
- --- 124,130 -----
- .I suntools
- command line options at the end of the command line.
- .TP 15
- ! .B \-b
- When an appointment is pending, a bell character (along with the appointment
- message) is sent to the console; only one reminder is sent for each
- appointment. Also, place a copy of the appointment text in the file
- ***************
- *** 160,166
- described by a particular appointments file should have write permission for
- that file.
- .TP
- ! .BI \-h char
- Compute and display holidays which do not fall on set dates of the Gregorian
- calendar. Notes appear in the day and week displays, and marks appear in
- the month and year displays. This option is followed by a single character
-
- --- 164,170 -----
- described by a particular appointments file should have write permission for
- that file.
- .TP
- ! .BI \-h " char"
- Compute and display holidays which do not fall on set dates of the Gregorian
- calendar. Notes appear in the day and week displays, and marks appear in
- the month and year displays. This option is followed by a single character
- ***************
- *** 199,205
- US Secular holidays.
- .RE
- .TP
- ! .BI \-H char
- Identical to the
- .B \-h
- option, except that computed dates are displayed only in the day and week
-
- --- 203,209 -----
- US Secular holidays.
- .RE
- .TP
- ! .BI \-H " char"
- Identical to the
- .B \-h
- option, except that computed dates are displayed only in the day and week
- ***************
- *** 212,218
- .I yy
- represents the last two digits of a past year).
- .TP
- ! .BI \-m \ userid
- Send mail listing todays appointments to the user specified by
- .I userid
- and exit.
-
- --- 216,222 -----
- .I yy
- represents the last two digits of a past year).
- .TP
- ! .BI \-m " userid"
- Send mail listing todays appointments to the user specified by
- .I userid
- and exit.
- ***************
- *** 218,224
- and exit.
- This feature is useful when calentool is run from
- .IR cron (1),
- ! to send yourself mail about today's appointments.
- (Note: this option eliminates the need for the separate program,
- .IR calenmail (1L),
- which was distributed with earlier releases of
-
- --- 222,229 -----
- and exit.
- This feature is useful when calentool is run from
- .IR cron (1),
- ! to send yourself mail about today's appointments. No mail is
- ! sent about today's appointments, if there are none.
- (Note: this option eliminates the need for the separate program,
- .IR calenmail (1L),
- which was distributed with earlier releases of
- ***************
- *** 232,238
- .I yy
- represents the last two digits of the past year).
- .TP
- ! .B -p
- Print today's appointments and exit. This is useful for reviewing
- appointments from an ordinary terminal or
- .IR shelltool (1).
-
- --- 237,243 -----
- .I yy
- represents the last two digits of the past year).
- .TP
- ! .BI \-p char
- Print today's appointments and exit. This is useful for reviewing
- appointments from an ordinary terminal or
- .IR shelltool "(1)."
- ***************
- *** 235,241
- .B -p
- Print today's appointments and exit. This is useful for reviewing
- appointments from an ordinary terminal or
- ! .IR shelltool (1).
- .TP
- .B -P
- Print today's appointments and exit, ignoring notes which are not to mark
-
- --- 240,252 -----
- .BI \-p char
- Print today's appointments and exit. This is useful for reviewing
- appointments from an ordinary terminal or
- ! .IR shelltool "(1)."
- ! The
- ! .I d, w, m
- ! modifiers select a printout of the current day, week or month, respectively.
- ! The day and week printouts are straight ASCII; the month printout is in
- ! \*(Ps. No printout is provide of the current days appointments, if there
- ! are none.
- .TP
- .BI \-P char
- Print today's appointments and exit, ignoring notes which are not to mark
- ***************
- *** 237,243
- appointments from an ordinary terminal or
- .IR shelltool (1).
- .TP
- ! .B -P
- Print today's appointments and exit, ignoring notes which are not to mark
- the month or year displays. This is useful for suppressing trivia when
- reviewing appointments from an ordinary terminal or
-
- --- 248,254 -----
- \*(Ps. No printout is provide of the current days appointments, if there
- are none.
- .TP
- ! .BI \-P char
- Print today's appointments and exit, ignoring notes which are not to mark
- the month or year displays. This is useful for suppressing trivia when
- reviewing appointments from an ordinary terminal or
- ***************
- *** 241,247
- Print today's appointments and exit, ignoring notes which are not to mark
- the month or year displays. This is useful for suppressing trivia when
- reviewing appointments from an ordinary terminal or
- ! .IR shelltool (1).
- .TP
- .B -r
- Open the calendar tool in read-only mode.
-
- --- 252,264 -----
- Print today's appointments and exit, ignoring notes which are not to mark
- the month or year displays. This is useful for suppressing trivia when
- reviewing appointments from an ordinary terminal or
- ! .IR shelltool "(1)."
- ! The
- ! .I d, w, m
- ! modifiers select a printout of the current day, week or month, respectively.
- ! The day and week printouts are straight ASCII; the month printout is in
- ! \*(Ps. No printout is provide of the current days appointments, if there
- ! are none.
- .TP
- .B \-r
- Open the calendar tool in read-only mode.
- ***************
- *** 243,249
- reviewing appointments from an ordinary terminal or
- .IR shelltool (1).
- .TP
- ! .B -r
- Open the calendar tool in read-only mode.
- Appointments can be edited, but no changes will be saved.
- The tool's banner strip will contain the string "[Read Only]".
-
- --- 260,266 -----
- \*(Ps. No printout is provide of the current days appointments, if there
- are none.
- .TP
- ! .B \-r
- Open the calendar tool in read-only mode.
- Appointments can be edited, but no changes will be saved.
- The tool's banner strip will contain the string "[Read Only]".
- ***************
- *** 252,258
- .B -f
- option.
- .TP
- ! .B -t
- Display the current time below the
- .I calentool
- icon (no further need for
-
- --- 269,275 -----
- .B -f
- option.
- .TP
- ! .B \-t
- Display the current time below the
- .I calentool
- icon (no further need for
- ***************
- *** 258,264
- icon (no further need for
- .IR clocktool (1)).
- .TP
- ! .BI -u int
- Update the time at the interval of
- .I int
- seconds.
-
- --- 275,281 -----
- icon (no further need for
- .IR clocktool (1)).
- .TP
- ! .BI \-u " int"
- Update the time at the interval of
- .I int
- seconds.
- ***************
- *** 263,269
- .I int
- seconds.
- .TP
- ! .B -w
- Don't display the "Working!" message in the control panel during
- lengthy operations. The cursor still changes to an hourglass.
- .TP
-
- --- 280,286 -----
- .I int
- seconds.
- .TP
- ! .B \-w
- Don't display the "Working!" message in the control panel during
- lengthy operations. The cursor still changes to an hourglass.
- .TP
- ***************
- *** 267,273
- Don't display the "Working!" message in the control panel during
- lengthy operations. The cursor still changes to an hourglass.
- .TP
- ! .B -z
- Convert appointments file used by earlier versions of
- .I calentool
- to the format used by the current version. This option should be invoked only
-
- --- 284,290 -----
- Don't display the "Working!" message in the control panel during
- lengthy operations. The cursor still changes to an hourglass.
- .TP
- ! .B \-z
- Convert appointments file used by earlier versions of
- .I calentool
- to the format used by the current version. This option should be invoked only
- ***************
- *** 274,280
- once, the first time an old format file is read by
- .IR calentool .
- .TP
- ! .B -5
- Display only five days (Monday through Friday) in the week display. This is
- useful if the installer has set the default display format to 7 days.
- .TP
-
- --- 291,297 -----
- once, the first time an old format file is read by
- .IR calentool .
- .TP
- ! .B \-5
- Display only five days (Monday through Friday) in the week display. This is
- useful if the installer has set the default display format to 7 days.
- .TP
- ***************
- *** 278,284
- Display only five days (Monday through Friday) in the week display. This is
- useful if the installer has set the default display format to 7 days.
- .TP
- ! .B -7
- Display all seven days in the week display. This is useful if the installer
- has set the default value to 5 days. The 7-day display is wider than the 5-day
- display, allowing longer messages to be displayed.
-
- --- 295,301 -----
- Display only five days (Monday through Friday) in the week display. This is
- useful if the installer has set the default display format to 7 days.
- .TP
- ! .B \-7
- Display all seven days in the week display. This is useful if the installer
- has set the default value to 5 days. The 7-day display is wider than the 5-day
- display, allowing longer messages to be displayed.
- ***************
- *** 525,531
- selecting
- .BR Accept .
- The
- ! .B Save
- button updates the current appointments file with any changes made that
- have not yet been logged. This is typically not an often used option.
- .SH "FILE FORMAT"
-
- --- 542,548 -----
- selecting
- .BR Accept .
- The
- ! .B Update
- button updates the current appointments file with any changes made that
- have not yet been logged.
- .SH "FILE FORMAT"
- ***************
- *** 527,533
- The
- .B Save
- button updates the current appointments file with any changes made that
- ! have not yet been logged. This is typically not an often used option.
- .SH "FILE FORMAT"
- Using an included file (see below) is the one instance where manual editing
- of the
-
- --- 544,550 -----
- The
- .B Update
- button updates the current appointments file with any changes made that
- ! have not yet been logged.
- .SH "FILE FORMAT"
- Using an included file (see below) is the one instance where manual editing
- of the
- ***************
- *** 663,668
- events
- Historical events (major and minor)
- .TP
- lives
- Biographical dates of note
- .TP
-
- --- 680,688 -----
- events
- Historical events (major and minor)
- .TP
- + gdead
- + Dates concerning the rock group Grateful Dead
- + .TP
- lives
- Biographical dates of note
- .TP
- ***************
- *** 676,681
- popcult
- Special dates in Western popular culture
- .TP
- usa_holiday
- Major US/Canadian holidays (holidays from work)
- .TP
-
- --- 696,704 -----
- popcult
- Special dates in Western popular culture
- .TP
- + space
- + Dates of note in the history of the exploration of outer space
- + .TP
- usa_holiday
- Major US/Canadian holidays (holidays from work)
- .TP
- ***************
- *** 863,870
- R. P. C. Rodgers (School of Pharmacy, University of California,
- San Francisco, rodgers@maxwell.mmwb.ucsf.edu), performed extensive beta
- testing, made numerous design suggestions, and contributed the holiday
- ! computation library, icons, manual pages, and special dates files (which were
- ! modified from earlier net postings contributed by unknown authors).
- We thank Dr. Omar Afzal of Cornell University (Chairman of the Committee
- for Crescent Observation) for his help in implementing the Islamic date
- computations.
-
- --- 886,904 -----
- R. P. C. Rodgers (School of Pharmacy, University of California,
- San Francisco, rodgers@maxwell.mmwb.ucsf.edu), performed extensive beta
- testing, made numerous design suggestions, and contributed the holiday
- ! computation library, icons, manual pages, and special dates files. The initial
- ! set of special dates files were modified from earlier net postings contributed
- ! by Rich Kulawiec (rsk@boulder.Colorado.EDU) and
- ! Dick Wexelblat (...decvax!ittvax!wxlvax!rlw), assisted by the following
- ! contributors known only by their network addresses:
- ! (decvax!seismo!rochester!ritcv!ccieng5!ccieng6!wla),
- ! (decvax!sii!mem),
- ! (ittvax!bunker!dick),
- ! (ittvax!decvax!bellcore!yquem!psl),
- ! (ittvax!decvax!harpo!eagle!mhuxl!ihnp4!ihuxw!pector),
- ! and (seismo!rochester!rocksvax!sunybcs!colonel),
- ! in addition to others whose identifications have been lost (speak up!).
- ! .LP
- We thank Dr. Omar Afzal of Cornell University (Chairman of the Committee
- for Crescent Observation) for his help in implementing the Islamic date
- computations.
-