home *** CD-ROM | disk | FTP | other *** search
- *** Imakefile.orig Wed Jul 24 09:15:40 1991
- --- Imakefile Fri May 31 08:03:38 1991
- ***************
- *** 8,15 ****
-
- LDOPTIONS = -L$(OPENWINHOME)/lib
-
- ! CFLAGS = -O -I$(OPENWINHOME)/include -DMAILER=\"$(MAILER)\"
-
- SRCS = about.c busy.c contool.c contool_ui.c error.c expand.c filename_completion.c \
- filters.c getopt.c load.c load_icon.c logging.c misc.c parse.y \
- pinned_menu_notify.c place_dialog.c props.c regexp.c send_mail.c store.c
- --- 8,19 ----
-
- LDOPTIONS = -L$(OPENWINHOME)/lib
-
- ! CPPFLAGS = -I$(OPENWINHOME)/include
-
- + CFLAGS = -O -DMAILER=\"$(MAILER)\"
- +
- + EXTRA_INCLUDES = -I$(OPENWINHOME)/include
- +
- SRCS = about.c busy.c contool.c contool_ui.c error.c expand.c filename_completion.c \
- filters.c getopt.c load.c load_icon.c logging.c misc.c parse.y \
- pinned_menu_notify.c place_dialog.c props.c regexp.c send_mail.c store.c
- ***************
- *** 20,24 ****
-
- ComplexProgramTarget(contool)
-
- ! install:: install.man
- $(INSTALL) -c $(INSTMANFLAGS) contool.info $(HELPDIR)/contool.info
- --- 24,30 ----
-
- ComplexProgramTarget(contool)
-
- ! install: install.man install.help
- !
- ! install.help:
- $(INSTALL) -c $(INSTMANFLAGS) contool.info $(HELPDIR)/contool.info
- *** README.orig Wed Jul 24 09:15:40 1991
- --- README Wed Jul 24 09:15:33 1991
- ***************
- *** 16,22 ****
- /* of Harris Corporation. */
- /************************************************************************/
-
- ! Contool Version 3.1
-
- Contool will capture and display system console messages with timestamps.
- It is a replacement for the standard Sun console, which is created with
- --- 16,22 ----
- /* of Harris Corporation. */
- /************************************************************************/
-
- ! Contool Version 3.1a
-
- Contool will capture and display system console messages with timestamps.
- It is a replacement for the standard Sun console, which is created with
- ***************
- *** 198,205 ****
- Contool now sets its class and name hints.
- Sending SIGUSR1 (30) to contool stops blinking,
- suggested by Frank Peters.
- ! Sending SIGHUP (1) closes and reopens the log file.
- Added "Apply and Save" button to filter dialog.
- Added individual message logging.
- Finally fixed overflow handling.
- Added multi-line filter timeout.
- --- 198,213 ----
- Contool now sets its class and name hints.
- Sending SIGUSR1 (30) to contool stops blinking,
- suggested by Frank Peters.
- ! Sending SIGHUP (1) closes and reopens the log
- ! file.
- Added "Apply and Save" button to filter dialog.
- Added individual message logging.
- Finally fixed overflow handling.
- Added multi-line filter timeout.
- + 3.1a 24 Jul 91 Added support for WIN_CMDLINE attribute,
- + from Tomas Stephanson
- + (Tomas.Stephanson@eua.ericsson.se)
- + Fixed handling of messages without trailing
- + newlines, suggested by Ellery Chan
- + (ellery@trantor.harris-atd.com)
- + Fixed typos in the man page
- *** contool.man.orig Wed Jul 24 09:15:41 1991
- --- contool.man Fri Jun 28 11:21:47 1991
- ***************
- *** 1,8 ****
- ! .TH CONTOOL 1 "13 October 1989"
- .SH NAME
- contool \- capture and display console output
- .SH SYNOPSIS
- ! contool [\fB\(hyf\fP \fIfile\fP] [\fB\(hyl\fP] [\f3\(hyL\fP \f2logfile\fP] [\f3\(hyn\fP]
- .SH DESCRIPTION
- .LP
- \f2Contool\fP captures and displays any messages sent to the system console.
- --- 1,8 ----
- ! .TH CONTOOL 1 "28 June 1991"
- .SH NAME
- contool \- capture and display console output
- .SH SYNOPSIS
- ! contool [\fB\(hyc\fP \fIfile\fP] [\fB\(hyl\fP] [\f3\(hyL\fP \f2logfile\fP] [\f3\(hyn\fP]
- .SH DESCRIPTION
- .LP
- \f2Contool\fP captures and displays any messages sent to the system console.
- *** contool.c.orig Wed Jul 24 09:15:44 1991
- --- contool.c Mon Jul 22 15:33:22 1991
- ***************
- *** 499,511 ****
- Filter *f;
- int count, do_blink = FALSE, do_open = FALSE;
- static char in_buf[INPUT_BUFFER_SIZE + 2];
-
- ! while ((count = read(fileno(master), in_buf, INPUT_BUFFER_SIZE)) >= 0) {
- ! in_buf[count] = '\0';
- ! while (s = index(in_buf, '\015')) {
- strcpy(s, s + 1);
- - count--;
- - }
- for (t = in_buf; *t; *s = old_c, t = s) {
- if (s = index(t, '\n')) {
- old_c = *++s;
- --- 499,511 ----
- Filter *f;
- int count, do_blink = FALSE, do_open = FALSE;
- static char in_buf[INPUT_BUFFER_SIZE + 2];
- + static int leftover = 0;
-
- ! while ((count = read(fileno(master), in_buf + leftover, INPUT_BUFFER_SIZE - leftover)) >= 0) {
- ! in_buf[count + leftover] = '\0';
- ! leftover = 0;
- ! while (s = index(in_buf, '\015'))
- strcpy(s, s + 1);
- for (t = in_buf; *t; *s = old_c, t = s) {
- if (s = index(t, '\n')) {
- old_c = *++s;
- ***************
- *** 512,519 ****
- *s = '\0';
- }
- else {
- ! s = t + strlen(t);
- ! old_c = '\0';
- }
- if (!defaults.log_after)
- write_log(t);
- --- 512,520 ----
- *s = '\0';
- }
- else {
- ! leftover = strlen(t);
- ! strcpy(in_buf, t);
- ! break;
- }
- if (!defaults.log_after)
- write_log(t);
- ***************
- *** 608,627 ****
- --- 609,637 ----
-
- { char *s, c, path[1024], *log_file = NULL;
- int log = FALSE;
- + static char cmdline[MAXPATHLEN + 10];
-
- sprintf(path, "%s/.contool", getenv("HOME"));
- filter_file = strsave(path);
-
- + cmdline[0] = NULL;
- +
- while ((c = getopt(argc, argv, "c:lL:n?", &s)) != EOF)
- switch (c) {
- case 'c' : filter_file = expand_tilde(s);
- explicit_filters = TRUE;
- + strcat(cmdline, " -c ");
- + strcat(cmdline, filter_file);
- break;
- case 'l' : log = TRUE;
- + strcat(cmdline, " -l");
- break;
- case 'L' : log_file = expand_tilde(s);
- + strcat(cmdline, " -L ");
- + strcat(cmdline, log_file);
- break;
- case 'n' : no_console = TRUE;
- + strcat(cmdline, " -n");
- break;
- case '?' : fprintf(stderr, ct_usage);
- exit(0);
- ***************
- *** 629,634 ****
- --- 639,647 ----
- default : fprintf(stderr, ct_usage);
- exit(1);
- }
- +
- + if (strlen(cmdline) > 0)
- + xv_set(contool_base->base, WIN_CMD_LINE, cmdline, NULL);
-
- if (lex_init(filter_file)) {
- yyparse();
- *** contool_ui.c.orig Wed Jul 24 09:15:46 1991
- --- contool_ui.c Wed Jul 24 09:13:28 1991
- ***************
- *** 349,355 ****
- XV_KEY_DATA, INSTANCE, ip,
- XV_WIDTH, 575,
- XV_HEIGHT, 246,
- ! XV_LABEL, "Contool 3.1",
- FRAME_CLOSED, FALSE,
- FRAME_SHOW_FOOTER, TRUE,
- FRAME_SHOW_RESIZE_CORNER, TRUE,
- --- 349,355 ----
- XV_KEY_DATA, INSTANCE, ip,
- XV_WIDTH, 575,
- XV_HEIGHT, 246,
- ! XV_LABEL, "Contool 3.1a",
- FRAME_CLOSED, FALSE,
- FRAME_SHOW_FOOTER, TRUE,
- FRAME_SHOW_RESIZE_CORNER, TRUE,
- ***************
- *** 2133,2143 ****
- obj = xv_create(owner, PANEL_MESSAGE,
- XV_KEY_DATA, INSTANCE, ip,
- XV_HELP_DATA, "contool:message1",
- ! XV_X, 217,
- XV_Y, 14,
- XV_WIDTH, 75,
- XV_HEIGHT, 13,
- ! PANEL_LABEL_STRING, "Contool 3.1",
- PANEL_LABEL_BOLD, TRUE,
- NULL);
- return obj;
- --- 2133,2143 ----
- obj = xv_create(owner, PANEL_MESSAGE,
- XV_KEY_DATA, INSTANCE, ip,
- XV_HELP_DATA, "contool:message1",
- ! XV_X, 212,
- XV_Y, 14,
- XV_WIDTH, 75,
- XV_HEIGHT, 13,
- ! PANEL_LABEL_STRING, "Contool 3.1a",
- PANEL_LABEL_BOLD, TRUE,
- NULL);
- return obj;
- *** filename_completion.c.orig Wed Jul 24 09:15:50 1991
- --- filename_completion.c Wed Jul 17 15:42:21 1991
- ***************
- *** 41,47 ****
-
- switch (event_action(event)) {
- case '\n' :
- ! case '\r' :
- case ' ' : if ((p = expand_filename((char *) xv_get(item, PANEL_VALUE))) == NULL)
- window_bell(xv_get(item, XV_OWNER));
- else
- --- 41,47 ----
-
- switch (event_action(event)) {
- case '\n' :
- ! case '\r' :
- case ' ' : if ((p = expand_filename((char *) xv_get(item, PANEL_VALUE))) == NULL)
- window_bell(xv_get(item, XV_OWNER));
- else
- *** patchlevel.h.orig Wed Jul 24 09:15:56 1991
- --- patchlevel.h Mon Jul 22 15:35:48 1991
- ***************
- *** 33,37 ****
- --- 33,41 ----
- /* comp.sources.x: Volume 11, Issue 4 */
- /* */
- /* 4 Release of version 3.1; see README for details */
- + /* comp.sources.x: Volume 13, Issues 54 & 55 */
- + /* */
- + /* 5 Bug fixes; see README for details */
- + /* comp.sources.x: Volume ??, Issue ?? */
- /* */
- /************************************************************************/
-