home *** CD-ROM | disk | FTP | other *** search
/ The UNIX CD Bookshelf / OREILLY_TUCB_UNIX_CD.iso / upt / examples / SOURCES / SC / HP700 / SC. next >
Encoding:
Text File  |  1998-07-24  |  3.0 KB  |  129 lines

  1. *** Makefile.rtr    Sun Nov 29 18:53:22 1992
  2. --- Makefile    Sun Nov 29 19:05:48 1992
  3. ***************
  4. *** 67,84 ****
  5.   # Set RINT=    on/with (they have rint):
  6.   #    SunOS 4.0.3c compiler
  7.   #    BSD4.4 (reno)
  8. ! RINT=
  9. ! #RINT=-DRINT
  10.   
  11.   # Set RE_COMP if you have the re_comp/re_exec regular expression routines
  12.   # (most BSD based systems do).
  13. ! RE_COMP=-DRE_COMP
  14. ! #RE_COMP=
  15.   
  16.   # Set REGCMP if you have the regcmp/regex regular expression routines
  17.   # (most System V based systems do)
  18. ! #REGCMP=-DREGCMP
  19. ! REGCMP=
  20.   
  21.   # This is the name of a pager like "more".
  22.   # "pg" may be appropriate for SYSV.
  23. --- 67,84 ----
  24.   # Set RINT=    on/with (they have rint):
  25.   #    SunOS 4.0.3c compiler
  26.   #    BSD4.4 (reno)
  27. ! #RINT=
  28. ! RINT=-DRINT
  29.   
  30.   # Set RE_COMP if you have the re_comp/re_exec regular expression routines
  31.   # (most BSD based systems do).
  32. ! #RE_COMP=-DRE_COMP
  33. ! RE_COMP=
  34.   
  35.   # Set REGCMP if you have the regcmp/regex regular expression routines
  36.   # (most System V based systems do)
  37. ! REGCMP=-DREGCMP
  38. ! #REGCMP=
  39.   
  40.   # This is the name of a pager like "more".
  41.   # "pg" may be appropriate for SYSV.
  42. ***************
  43. *** 102,109 ****
  44.   FMOD=
  45.   
  46.   # If your system doesn't have notimeout() in curses define NONOTIMEOUT
  47. ! NO_NOTIMEOUT=
  48. ! #NO_NOTIMEOUT=-DNONOTIMEOUT
  49.   
  50.   # flags for lint
  51.   LINTFLAGS=-abchxv
  52. --- 102,109 ----
  53.   FMOD=
  54.   
  55.   # If your system doesn't have notimeout() in curses define NONOTIMEOUT
  56. ! #NO_NOTIMEOUT=
  57. ! NO_NOTIMEOUT=-DNONOTIMEOUT
  58.   
  59.   # flags for lint
  60.   LINTFLAGS=-abchxv
  61. ***************
  62. *** 172,180 ****
  63.   #LIB=-lm -lPW -lcurses
  64.   
  65.   # Use this for system V.2 (includes: HP-UX 7.05, UNIXPC)
  66. ! #CFLAGS= -O -DSYSV2 
  67. ! #LDFLAGS=
  68. ! #LIB=-lm -lPW -lcurses
  69.   # with gcc on a Sequent also use:
  70.   #CC=att gcc
  71.   #CFLAGS=  -DSYSV2 -g -pipe -traditional
  72. --- 172,180 ----
  73.   #LIB=-lm -lPW -lcurses
  74.   
  75.   # Use this for system V.2 (includes: HP-UX 7.05, UNIXPC)
  76. ! CFLAGS= -O -DSYSV2 
  77. ! LDFLAGS=
  78. ! LIB=-lm -lPW -lcurses
  79.   # with gcc on a Sequent also use:
  80.   #CC=att gcc
  81.   #CFLAGS=  -DSYSV2 -g -pipe -traditional
  82. ***************
  83. *** 223,231 ****
  84.   #CFLAGS= -O -DBSD42 -pipe
  85.   
  86.   # Use this for BSD 4.3
  87. ! CFLAGS= -O -DBSD43
  88. ! LDFLAGS=
  89. ! LIB=-lm -lcurses -ltermcap
  90.   
  91.   # Use this for SunOS 4.X if you have the System V package installed.
  92.   # This will link with the System V curses which is preferable to the
  93. --- 223,231 ----
  94.   #CFLAGS= -O -DBSD42 -pipe
  95.   
  96.   # Use this for BSD 4.3
  97. ! #CFLAGS= -O -DBSD43
  98. ! #LDFLAGS=
  99. ! #LIB=-lm -lcurses -ltermcap
  100.   
  101.   # Use this for SunOS 4.X if you have the System V package installed.
  102.   # This will link with the System V curses which is preferable to the
  103. *** screen.c.orig    Mon May 11 14:43:38 1992
  104. --- screen.c    Thu Dec  3 05:44:55 1992
  105. ***************
  106. *** 14,19 ****
  107. --- 14,20 ----
  108.   
  109.   
  110.   #include <curses.h>
  111. + #include <termio.h>
  112.   #include "sc.h"
  113.   
  114.   #ifdef VMS
  115. ***************
  116. *** 517,524 ****
  117. --- 518,528 ----
  118.       {    struct ttysize size;
  119.       if (ioctl(0, TIOCGSIZE, &size) == 0)
  120.       { 
  121. +         static char COLUMNS[13];
  122.           LINES = size.ts_lines;
  123.           COLS = size.ts_cols;
  124. +         sprintf( COLUMNS, "COLUMNS=%d", COLS );
  125. +         putenv( COLUMNS );
  126.       }
  127.       }
  128.   #endif
  129.