home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 287.lha / TY_v1.3 / src / version.c < prev    next >
Encoding:
Text File  |  1989-09-07  |  9.7 KB  |  173 lines

  1. /* VERSION.C */
  2.  
  3. /*
  4.  *      less  (This Amiga version renamed 'ty')
  5.  *      Copyright (c) 1984,1985  Mark Nudelman
  6.  *
  7.  *      This program may be freely used and/or modified, 
  8.  *      with the following provisions:
  9.  *      1. This notice and the above copyright notice must remain intact.
  10.  *      2. Neither this program, nor any modification of it,
  11.  *         may not be sold for profit without written consent of the author.
  12.  *
  13.  *      -----------------------------------------------------------------
  14.  *
  15.  *      This program is a paginator similar to "more", 
  16.  *      but allows you to move both forward and backward in the file.  
  17.  *      Commands are based on "more" and "vi".
  18.  *
  19.  *      ----------------------- CHANGES ---------------------------------
  20.  *
  21.  *          Allowed use on standard input               1/29/84   markn
  22.  *          Added E, N, P commands                      2/1/84    markn
  23.  *          Added '=' command, 'stop' signal handling   4/17/84   markn
  24.  *          Added line folding                          4/20/84   markn
  25.  *      v2: Fixed '=' command to use BOTTOM_PLUS_ONE, 
  26.  *          instead of TOP, added 'p' & 'v' commands    4/27/84   markn
  27.  *      v3: Added -m and -t options, '-' command        5/3/84    markn
  28.  *      v4: Added LESS environment variable             5/3/84    markn
  29.  *      v5: New comments, fixed '-' command slightly    5/3/84    markn
  30.  *      v6: Added -Q, visual bell                       5/15/84   markn
  31.  *      v7: Fixed jump_back(n) bug: n should count real
  32.  *          lines, not folded lines.  Also allow number
  33.  *          on G command.                               5/24/84   markn
  34.  *      v8: Re-do -q and -Q commands                    5/30/84   markn
  35.  *      v9: Added "+<cmd>" argument                     9/25/84   markn
  36.  *      v10: Fixed bug in -b<n> argument processing     10/10/84  markn
  37.  *      v11: Made error() ring bell if \n not entered.  10/18/84  markn
  38.  *      -----------------------------------------------------------------
  39.  *      v12: Reorganized signal handling and made
  40.  *           portable to 4.2bsd.                        2/13/85   mark
  41.  *      v13: Reword error message for '-' command.      2/16/85   mark
  42.  *      v14: Added -bf and -bp variants of -b.          2/22/85   mark
  43.  *      v15: Miscellaneous changes.                     2/25/85   mark
  44.  *      v16: Added -u flag for backspace processing.    3/13/85   mark
  45.  *      v17: Added j and k commands, 
  46.  *              changed -t default.                     4/13/85   mark
  47.  *      v18: Rewrote signal handling code.              4/20/85   mark
  48.  *      v19: Got rid of "verbose" eq_message().         5/2/85    mark
  49.  *           Made search() scroll in some cases.
  50.  *      v20: Fixed screen.c ioctls for System V.        5/21/85   mark
  51.  *      v21: Fixed some first_cmd bugs.                 5/23/85   mark
  52.  *      v22: Added support for no RECOMP nor REGCMP.    5/24/85   mark
  53.  *      v23: Miscellanous changes and prettying up.     5/25/85   mark
  54.  *      v24: Added ti,te terminal init & de-init       6/3/85 Mike Kersenbrock
  55.  *      v25: Added -U flag, standout mode underlining.  6/8/85    mark
  56.  *      v26: Added -M flag.                             6/9/85    mark
  57.  *           Use underline termcap (us) if it exists.
  58.  *      v27: Renamed some variables to make unique in   6/15/85   mark
  59.  *           6 chars.  Minor fix to -m.
  60.  *      v28: Fixed right margin bug.                    6/28/85   mark
  61.  *      v29: Incorporated M.Rose's changes to signal.c  6/28/85   mark
  62.  *      v30: Fixed stupid bug in argument processing.   6/29/85   mark
  63.  *      v31: Added -p flag, changed repaint algorithm.  7/15/85   mark
  64.  *           Added kludge for magic cookie terminals.
  65.  *      v32: Added cat_file if output not a tty.        7/16/85   mark
  66.  *      v33: Added -e flag and EDITOR.                  7/23/85   mark
  67.  *      v34: Added -s flag.                             7/26/85   mark
  68.  *      v35: Rewrote option handling; added option.c.   7/27/85   mark
  69.  *      v36: Fixed -e flag to work if not last file.    7/29/85   mark
  70.  *      v37: Added -x flag.                             8/10/85   mark
  71.  *      v38: Changed prompting; created prompt.c.       8/19/85   mark
  72.  *      v39: (Not -p) does not initially clear screen.  8/24/85   mark
  73.  *      v40: Added "skipping" indicator in forw().      8/26/85   mark
  74.  *      v41: ONLY_RETURN, control char commands,        9/17/85   mark
  75.  *           faster search, other minor fixes.
  76.  *      v42: Added ++ command line syntax;              9/25/85   mark
  77.  *           ch_fsize for pipes.
  78.  *      v43: Added -h flag, changed prim.c algorithms.  10/15/85  mark
  79.  *      v44: Made END print in all cases of eof;        10/16/85  mark
  80.  *           ignore SIGTTOU after receiving SIGTSTP.
  81.  *      v45: Never print backspaces unless -u.          10/16/85  mark
  82.  *      v46: Backwards scroll in jump_loc.              10/24/85  mark
  83.  *      v47: Fixed bug in edit(): *first_cmd==0         10/30/85  mark
  84.  *      v48: Use TIOCSETN instead of TIOCSETP.          11/16/85  mark
  85.  *           Added marks (m and ' commands).
  86.  * ------------------------------------------------------------------------
  87.  *    ty1.0: Major rehacks to suit Amiga.              15-DEC-86  ajw
  88.  *           Modified for Lattice C compiler.
  89.  *           Added workbench interface.
  90.  *           Allowed use of arrow keys for scrolling.
  91.  *    ty1.1: Spacebar to scroll page at a time         11-JUN-87  ajw
  92.  *           Fixed bug in exit code that cause it to
  93.  *           exit thru error routine on every exit.
  94.  *    ty1.2: Modified output routines to allow thru    28-AUG-87  ajw
  95.  *           ANSI escape sequences.
  96.  *
  97.  *    ty1.3: Major cosmetic destruction perpetrated    7-Aug-89   JJB
  98.  *           by JJB TEMPLAR. Version 1.3 will probably
  99.  *           drop a lot of the features above.
  100.  *    ty1.3: Opening Window, attaching console to it.  8-Aug-89   JJB
  101.  *           Use IDCMP for input, console for output.
  102.  *           Two of the original modules have died :-(
  103.  *                  ±   signal.c
  104.  *                  ±   ttyin.c
  105.  *           Several more modules were created :-)
  106.  *                      win.c       ; window stuff
  107.  *                      gadg.c      ; gadget stuff
  108.  *                      image.c     ; image data (for CHIPMEM: lc -ad)
  109.  *    ty1.3: Got gadgets and resize going. Continuing  9-Aug-89   JJB
  110.  *           rehack. Also got left/right going.
  111.  *    ty1.3: Menu-button works with gadgets, cleaned   10-Aug-89  JJB
  112.  *           up most of display after resize.
  113.  *    ty1.3: Added requester, search is back. Re-wrote 11-Aug 89  JJB
  114.  *           help and about info (again). Repaint is
  115.  *           back (using resize), plus a number of
  116.  *           other minor modifications. Two new modules
  117.  *           have been created :-)
  118.  *                      req.c       ; requester stuff
  119.  *                      search.c    ; ex-prim.c search code
  120.  *           Noted "less" on Fish disks is incredibly easy
  121.  *           to crash, and much bigger than ty. Put marks
  122.  *           back, but use 0-9 instead of a-z because using
  123.  *           RAWKEY instead of ANSI.
  124.  *    ty1.3: Added "iconify", by Leo Shwab on Fish     12-Aug 89  JJB
  125.  *           Disk #126. Added icon based args.
  126.  *           Renamed search.c to suppcom.c
  127.  *    ty1.3: Added print, titlebar filename, and bool  13-Aug 89  JJB
  128.  *           function tacked on to string requester.
  129.  *    ty1.3: Moved prompt to titlebar, added bottom    14-Aug 89  JJB
  130.  *           border gadgets. This means there is no
  131.  *           spare line at the bottom, so you have to
  132.  *           be more intelligent regarding where you
  133.  *           put newlines (for put_line).
  134.  *           Implemented Knuth-Morris-Pratt pattern
  135.  *           matching algorithm. Still doesn't handle
  136.  *           regular expressions. Added "default pattern"
  137.  *           option. Also added ENV:ty check.
  138.  *    ty1.3: Added def pattern option to ENV:ty.       15-Aug 89  JJB
  139.  *           Fixed silly bug in tup string (for search).
  140.  *           Made horizontal bar operational. Needs some work.
  141.  *           Made residentable. Piece of cake with cres.o!
  142.  *           Works under WShell.
  143.  *    ty1.3: Added mode changing.                      16-Aug 89  JJB
  144.  *           Zapped infinite loop bug in input.c. Turned
  145.  *           out files that did not end with a '\n' character,
  146.  *           were breaking ty in "fast_line on" mode.
  147.  *    ty1.3: Tried WB-resident stuff intercepting      21-Aug 89  JJB
  148.  *           LoadSeg, etc, but failed. Wierd. Zapped a
  149.  *           partition on my HD in the process, due to
  150.  *           freaking out "blink".
  151.  *    ty1.3: Added stuff for "click move".             26-Aug 89  JJB
  152.  *           Changed getcmd to use cmdmap arrays. This
  153.  *           saved at least 600 bytes. Had hoped for more,
  154.  *           but 600 is OK. Created cmdmap.c :-)
  155.  *           Got sick of DisplayBeep, so added audio
  156.  *           bell (from RKM & HRM). Created bell.c :-)
  157.  *           Restructured screen.c stuff. Created screen.h :-)
  158.  *           Also tinkered with option.c, to reduce size a bit
  159.  *           more.
  160.  *    ty1.3: Added '?' as wildcard for match().        27-Aug 89  JJB
  161.  *           Added newcli and editor functions. Created
  162.  *           a new module, system.c :-)
  163.  *           Added rudimentary paging. Forward oriented,
  164.  *           only works properly if fast_line is off, and
  165.  *           requires ^L to be first char on line (speed reasons).
  166.  *           Pretty patchy paging plonked in. Goes forward OK,
  167.  *           but backward looks horrible. This needs some work.
  168.  *    ty1.3: Added command to load new file.           28-Aug 89  JJB
  169.  *    -----------------------------------------------------------------
  170.  */
  171.  
  172. char version[] = "1st NZAmigaUG (Wgtn) Ty v1.3 - "__DATE__;
  173.