home *** CD-ROM | disk | FTP | other *** search
/ The UNIX CD Bookshelf / OREILLY_TUCB_UNIX_CD.iso / upt / examples / SOURCES / VIS / ALPHA / VIS. < prev   
Encoding:
Text File  |  1998-07-24  |  1.2 KB  |  46 lines

  1. --- Makefile.rtr    Mon Feb  3 15:31:17 1997
  2. +++ Makefile    Mon Feb  3 15:40:25 1997
  3. @@ -1,6 +1,6 @@
  4.  # Makefile for:  vis - repeatedly run command, refreshing screen
  5.  
  6. -DEFINES        = -DBSD
  7. +DEFINES        = -DUSG
  8.  CFLAGS        = -O $(DEFINES)
  9.  LIBS        = -lcurses -ltermcap
  10.  ROFF        = nroff
  11. --- vis.c.rtr    Mon Feb  3 15:31:17 1997
  12. +++ vis.c    Mon Feb  3 15:46:45 1997
  13. @@ -38,9 +38,11 @@
  14.  #include <signal.h>
  15.  #include <sys/types.h>
  16.  
  17. -#ifndef    DELAY
  18. -#define    DELAY    15        /* default delay, if not otherwise set */
  19. -#endif    DELAY
  20. +#undef BSD
  21. +
  22. +#ifndef    LOCAL_DELAY
  23. +#define    LOCAL_DELAY    15        /* default delay, if not otherwise set */
  24. +#endif    LOCAL_DELAY
  25.  #ifndef    BASELINE
  26.  #define    BASELINE 2        /* default line number for output */
  27.  #endif    BASELINE
  28. @@ -77,7 +79,7 @@
  29.  extern int optind;
  30.  extern char *optarg;
  31.  
  32. -long wait_delay = DELAY;    /* delay interval */
  33. +long wait_delay = LOCAL_DELAY;    /* delay interval */
  34.  int force = 0;            /* true to force continued execution */
  35.  int needshell = 0;        /* non-zero if subshell needed */
  36.  
  37. @@ -181,7 +183,7 @@
  38.          shcmd[3] = (char *) 0;
  39.      }
  40.      if (doheader) {
  41. -        if (wait_delay != DELAY) {
  42. +        if (wait_delay != LOCAL_DELAY) {
  43.              if (strlen(cmd) > COLS-39)
  44.                  (void) sprintf(cmd, "%.*s...", COLS-42, cmd);
  45.              mvprintw(0, max((COLS-11)/2, strlen(cmd)+15),
  46.