#
# This macro displays changes in LTPlus over the mellenia.  The newest version
# is at the top.  Changes made PRIOR to a given version are BELOW it.
#
more macro changes
#
#                               LTPlus Versions
#
#
#BETA Version 4.13 XLTPlus
#
#	       - Many changes have been incorporated in support of file
#		output formats for SSURGO.  LTPlus users need to be aware
#		of several related issues like: 1) The most practical way
#		to get LTPlus data sets into GRASS is to build the GRASS
#		$LOCATION and start XLTPLUS from within GRASS.  NOTE:
#		successful map development is still possible independant
#		of GRASS, but more cumbersome.  2) The $LOCATION PATH is
#		entered into the map's header file as the value of the
#		grass_mapset variable (item 11 in header). 3) A dictionaries
#		file must exist in the $LTPHOME/dictionaries directory. Create 
#		the dictionaries file with the vi editor using the symbols
#		from the soil survey legend; one symbol per line in the 
#		dictionaries file.  The dictionaries file name is entered
#		into the map's header file as the value of the dictionary
#		variable (item 5 in header).  4) Export the fully processed
#		LTPlus map's data set in the grass export format.  The GRASS
#		export format is the dig_ascii writer program that produces
#		a dig.ascii file, a dig.att file that contains the symbols
#		from the $LTPHOME/dictionaries file, and a dig.cats file that
#		contains the appropriate category number for each symbol.
#		These file are created in the appropriate GRASS directories
#		under the $LOCATION/mapset developed in step 1 above.  This 
#		benefit is not realized by LTPlus users who develop maps for
#		SSURGO indepent of GRASS.  Variable names for export_path 
#		and dictionary in the header file are sill required when
#		using the grass export format.  WARNING!!!  Exporting with
#		the digit format option will produce a dig.cats file that
#		is not usable for any other map but the current one in the
#		GRASS $LOCATION/mapset.  The unwary map developer will wonder
#		why the symbols and category numbers do not correalate from
#		map two forward.
#	       - Exporting point features from LTPlus in grass format is now
#		possible.  The old digit export file writer would not allow
#		point features to be exported.
#	       - Exporting polygon features where all polygons in the LTPlus
#		map were islands is now possible.  The old digit export file
#		writer had a bug that could not see islands where at least
#		one did not touch the boarder polygon.  The grass export 
#		function will acknowledge any and all islands in polygon maps.
#	       - Line and point features can be written in the same export
#		operation with the grass or digit export functions.
#	       - A problem has developed in the beta version of LTPlus4.13 at 
#		such a late date that we were unable to fix it.  It will be 
#		corrected by the release of LTPlus 4.13.  The problem has to do 
#		with using large empty disks for storing maps.  One state office
#		has reported this problem with LTPlus 4.12.  An example of the
#		problem is as follows:
#
#  LTPlus4.12 is loaded in /home/grass4.1/ltp.  The maps path is set to /scs1.
#  scs1 is a 2.2 gb hard disk setup as one large partition.  The error message
#  received in LTPlus is "<< not enough file space to acquire (5 megs) acquire 
#  failed." 
# 
#  Workaround:  Load excess data (or copies of the data) into /scs1/tmp/* until
#  LTPlus begins working.  It may take several attempts in a trial-and-error
#  fashion to get LTPlus to start working.  The state office reporting the problem
#  has been able to use this workaround to continue being productive with LTPlus 4.12
#  until the final release of LTPlus Version 4.13 is available; remember, this a 
#  BETA release of XLTPlus 4.13.
#
#
#Version 4.12 Xltplus and 386/486 Versions
#
#	       - The name for LTPlus Version 2.36 for PC 386/486 CPUs was 
#		changed to match the current release of GRASS (V.4.12)
#	       - Digitizer drivers for ALTEK AC30 and AC31 controlers
#		were made functional for XLTPlus.
#	       - Digitizer driver for CalComp cc9100 is now functional
#		for XLTPlus.
#	       - Start up script was developed to set the environment
#		variables LTPHOME and BITSWAP for XLTPlus.  LTPHOME sets
#		the PATH to LTPlus executables and data directories.  Earlier
#		versions were more restrictive as to where LTPlus could be 
#		loaded.  The BITSWAP variable swap the way a bit was read
#		by programs in PC versions of LTPlus, to the way that programs
#		read a bit on a workstation. 
#	       - The start up script developed for PC LTPlus includes the 
#		environment variable LTPHOME; the PATH to PC LTPlus data
#		directories.
#	       - An hpgl format file for checking the calibration of HP plotters
#		has been added to the GRASS tools directory; for more information
#		check the readme.plot file.
#	       - Stream digitizing was made easier for ALTEK digitizers.  Check
#		out the al30f8p-s digitizer driver in $LTPHOME/digitizers
#		directory, and the al30f8_stream and al30f8_point cursor key 
#		files in the $LTPHOME/cursor_keys directory.
#
#Version 2.36  8/19/92 THE FINAL LTPLUS RELEASE FROM THE FOREST SERVICE!!!
#
#              - cfftomoss (program distributed with LTPlus) changed so that
#              when point objects are specified, CFF objects with more than
#              1 vertex WILL now be converted also (using the first vertex).
#
#Version 2.35  8/14/92
#
#              - vertex_move:  bug fixed.  When trying to move a vertex which 
#              was directly above or below another vertex (on a vertical 
#              part of a line), the incorrect vertex would be moved (sometimes).
#              - changes:   macro fixed.  There were 2 comment lines without 
#              linefeeds that LPTlus tried to execute.  No harm done, but it
#              was confusing.
#              - mlist_exec:  bug fixed so that when using this command in
#              interactive (not batch) mode with the  no-save  (-s)  flag
#              you WILL NOT be asked if you want the map saved.
#              - export:  format added:   snap2   (snap, the next generation)
#              (USDA, FS internal format)
#              - setup_ ...   macros.  Changed the prompt command variable 
#              numbers so that defaults will not be from a previous answer.
#              Also, changed the setup_menu macro to work correctly.
#
#Version 2.34   6/19/92
#
#              - import cff:  fixed display of imported cff data.  When cff
#              data is imported, it is spread on many LTPlus levels according
#              to intergraph level numbers.  LTPlus imported & split-out the 
#              data, BUT onlydisplayed one of the many levels automatically.
#              If you knew that the other data was there & displayed those 
#              levels, you were fine, but most people believed what they saw
#              and assumed that little or nothing was there and that the import
#              hadn't worked.  Now all levels with imported data are 
#              automatically displayed.  
#              - import cell:  fixed bug that wouldn't allow import of cell
#              files with carriage returns or linefeeds.  The program rejected
#              such files with an error message that it couldn't frame the map.
#              This bug was inserted sometime after version 2.30 in which it
#              worked properly.
#              - import (all ascii formats:  moss, dxf, xy, digit, ...) the 
#              import command now tolerates a last ascii line which doesn't 
#              end with a linefeed.  Such routines used to abort when this 
#              happened.
#              - new programs added:  upperc and lowerc.  These programs allow
#              users to change filenames to lowercase or uppercase entirely.
#              For instructions, enter  upperc   or   lowerc  at the UNIX 
#              prompt.
#
#Version 2.33,   5/4/92 
#
#              - import:  (vector formats) bug identified that could hang
#              during indexing [infinite loop] in rare cases.  Bug fixed.
#              - Menu changed:  The line menu-set has a new menu for dealing
#              with closed roads.  It fills a blank just below group_atrbt
#              and is called  'network'.  It allows the user to simulate
#              road closure devices and to test to see if a group of roads
#              (line segments) is really cut-off from the rest of the system
#              or not.  The user can then output a list of all segments in
#              the isolated system and the closure devices which cut them off.
#              NOTE:  before useing this menu, it is suggested that you copy
#              the map since lines will be broken and attributes beyond the 1st
#              one will be discarded if it is used.
#              - cfftomoss, this time it IS distributed with LTPlus.
#              Before it was accidently deleted & not distributed.
#              ( It converts Cartographic Feature Files (from the USFS 
#              Geometronics Service Center in Salt Lake) to moss import/export 
#              files.  It allows the separation of cff data by feature code.  
#              Any group of feature codes may be separated out as a separate 
#              moss file. For usage instructions, enter   cfftomoss  at 
#              the unix prompt.)
#              - register, bug fixed:  corrected error when transforming to 
#              state plane coordinates in Alaska zone 10 (Penninsula) from
#              latitude & longitude.  The bug was very apparant & gave 
#              negative x state plane coordinates.
#              - seg_break, bug fixed:  created nodes are now put in default
#              sets properly, making it possible to attribute them without
#              a work-around.
#              - seg_break, feature added:  now allows breaking of segments
#              with the user's choice of retaining or discarding attributes on
#              the newly formed segments.  (help seg_break  for details) 
#              (Fully backward compatible with older macros etc.)
#              - atrbt_line, feature added:  now displays a message containing
#              the ending milepost for each series of segments attributed. 
#              This should allow somewhat easier edgematching of milepost 
#              attributed segments accross maps.
#
#Version 2.32,  3/5/92
#
#              - reduce_res, Bug fixed:  In rare cases, when reducing 
#              resolution by an even factor (like 2 or 4), a circumstance 
#              occurred in which LTPlus would get in an infinite loop while 
#              indexing the map coordinates after the reduction.  The symptom
#              is to fill up all hard-disc space in the partition, error-out
#              of the reduce_res command, and end up with a corrupt map.
#              The index_list file which gets corrupted is huge.
#              The bug was due to inadequite checking for inexact 
#              floating point operations.  I know of 1 case of this bug 
#              occurring (in 500+ reductions) & would like to hear of any 
#              others.
#              - export dem, output modified:  When exporting a dem in UTM
#              or State Plane coordinates, there is no longer an additional
#              3-4 feet of coverage outside the quad.  The map area is
#              clipped exactly.
#              
#Version 2.31,  2/18/92
#
#              - Limit changed:  up to 1024 macros will be automatically 
#              searched and listed when partial strings are entered on the 
#              command line (instead of 300).  As always, you can execute a
#              macro by entering its full name even if there are more than 
#              the search limit.
#              - Bug fixed:  when creating or acquiring a map, if the routine
#              which checks file space has an error, the create or acquire
#              is attempted anyway (and the error reported).  The user is no
#              longer told that there is not enough space.
#              - New macro:  zones   this macro displays the state plane
#              zones for all states in alphabetic order.
#              - New program:  mosstograss  has been added to the covey of 
#              programs distributed with LTPlus.  It should live up to its 
#              name by directly converting polygon or line type moss import/
#              export files into Grass digit format.  Polygons are broken 
#              into arcs.  For usage instructions type    mosstograss      
#              at the unix prompt.
#              - New program   cfftomoss  has been added too.  It converts
#              Cartographic Feature Files (from the USFS Geometronics Service
#              Center in Salt Lake) to moss import/export files.  It allows
#              the separation of cff data by feature code.  Any group of 
#              feature codes may be separated out as a separate moss file.
#              For usage instructions, enter   cfftomoss  at the unix prompt.
#              - New program:  trim98   has been added also.  It is for 
#              trimming a GCDB file down to the portion used to draw the
#              section lines.  For usage instructions type    trim98    at the 
#              unix prompt.
#              - New program:  breakdown this program outputs a coordinate file
#              of points and lines which constitute a proportional breakdown 
#              over the range (x and y) of 0.0 to 1.0.  For usage instructions,
#              enter    breakdown   at the unix prompt.
#              - New macro:  breakdown  (sound familiar ?) This macro imports a
#              porportional breakdown (points and lines) of any registered area.
#              The user chooses the number of horizontal and vertical divisions,
#              and the amount of overrun.  It can be used to simulate an ideal 
#              township or section breakdown or other proportional gridding.
#              - purge command, bug fixed, it now works from a full command
#              line entry (or macro) as well as interactively.
#              - raw_print, bug fixed in raw_print errors (error log).  Now
#              more than just the header is printed.  Second bug fixed:  
#              raw_print now displays the completed command line when finished,
#              and the command is then available when using the macro_hist
#              command, or when listing the command line history.
#              - export dlg3, bugs fixed:  1)  Node record now has blanks for
#              data element 9 (islands).   2) header portion of area and node
#              records now fill out to 72 characters with blanks.  3)  node and
#              area records now numbered sequentially (all of the numbers were
#              there before, but out of order).
#              - export digit, bugs fixed:  1)  any set can now be exported 
#              (before only set 0 worked).  2)  both attribute options (Create
#              new grass catagories, or use LTPlus attributes as catagory 
#              numbers) produce  '.cat' files.  Before, '.cat' files were only
#              output for option 1 (create grass catagories).  Option 0 (LTPlus
#              attributes are catagory numbers) didn't create a '.cat' file
#              and couldn't be imported into grass without one.  Now, both
#              options create a '.cat' file.
#              - export, trav (traverse) format added.  This format outputs
#              segment or polygon data in bearing & distance format.  Traverse
#              data for each polygon or segment will begin with a node 
#              which has   POB   in an attribute string somewhere (Point of 
#              Beginning).  If no such label is found, an arbitrary starting
#              point will be chosen.  Directions may be output in Bearings
#              (0-90, NE, SE, SW, NW) or Azimuths (0-360, N=0, clockwise).
#              Basis of Bearing may be True North at POB, UTM grid North, or
#              State Plane grid North.  Distances may be in Feet or Meters.  
#              Coordinates (beginning with 0.0, 0.0) are listed along with
#              all node attributes (as the nodes are encountered).  Total 
#              length and area are reported at the end.
#              - export, arc (arc generate) format added.  This format is the
#              one defined by ESRI.  The user must choose points or lines.
#              Polygons may not be sent in this format, but the lines making
#              up polygons may be sent (with topology to be built in Arc-Info).
#              When exporting lines in arc format from an LTPlus polygon map,
#              you must first create a set of all lines, or change the map-type.
#              Point or Line attributes may be sent as object IDs if they are 
#              integers.
#              - ltpinstl program fixed to create the "dictionaries" menu
#              instead of the "dictionary" menu.  ltplus modified to correct
#              the name of existing installations if it is incorrect.  This
#              should get rid of bugs concerning 'missing' dictionary files.
#              - ltplus on SCO Xenix/Unix systems now leaves the initial
#              graphics mode unchanged when program is over.  It used to 
#              leave a slightly different screen size.
#              - grid program modified to allow UTM and State Plane grid
#              orientation.  Program now allows a grid or tic marks to be 
#              output within a geodetic window.  The grid or tics may be
#              oriented to the UTM, State Plane, or Lat/Lon (Geodetic) 
#              coordinate system.  The data can be in UTM or State Plane
#              coordinates, and be in your choice of DXF, MOSS import/export,
#              or Arc Generate format.  Note:  the program  (grid)  is 
#              outside of LTPlus, but distributed with it.  Go to the Unix
#              prompt and type     grid     & press [Enter] for instructions.
#              - seg_break in versions 2.30 & earlier did an incomplete job
#              of updating segment & node records as to the changed topology
#              (this is known in technical terms as a bug).  This (bug) has
#              been fixed.  NOTE:  seg_break should NOT BE USED ON POLYGON
#              MAPS as it does not (& never has) maintain polygon topology,
#              just the arc-node topology for lines and nodes.
#              - import digit.asc has been fixed to be more tolerant of object 
#              header lines.  This was necessary in order to read all objects 
#              in files exported from GRASS.  
#              - import cell has 2 new parameters which allow import of binary
#              cell data and conversion of binary values in the cell file to
#              ASCII digits as LTPlus attributes.  This helps greatly when
#              importing cell files from moss/maps.
#              - import dlg3 has been modified so that imported polygons are
#              stored as a single piece each.  This corects the bug where 
#              level_dup'ing polygon attributes from such a level comes out
#              incorrect in some polygons.
#              - support has been added for CalComp 9500 digitizers.  There is
#              a digitizer file (cc9500f5.dgt) which contains the digitizer
#              info, and switch settings.
#              - support has been added for the Genius Mouse (or any other 
#              mouse which uses the Mouse Systems format at 1200 baud.  Use
#              the genius.dgt or mousesystm.dgt digitizer file.
#              - demlog macro added which prompts the user for number of hours
#              needed to complete a map, then appends a file with the user name,
#              map name, hours, & number of several object types which indicate
#              the complexity of a contour map.  All this infor is added as 
#              a single line to a file which contains info for all completed 
#              maps.
#
#Version 2.30,  10/22/91
#
#              - 'changes' macro added detailing all changes made to LTPlus
#             between each version.
#              - readme.ltp document added to LTPlus as a macro.  To view the
#             readme.ltp document from LTPlus enter:    readme
#              - bug fixed:  the cursor coordinates now display for the mouse.
#             Note:  digitizer coordinates DO dislplay, but you have to hold
#             the puck still for a second before the display changes.
#              - several bugs fixed for the ATT version in relation to 
#             busmouse control, digitizer control, & timing.
#              - macro plotascii fixed.
#              - export dxf modified.  New optional last parameter allows
#             separation of dxf layers by LTPlus attribute.  If this option
#             is specified, a dxf layer table will also be written from 
#             the LTPlus dictionary for the map if one is specified.
#              - plot_ascii command now looks in the export directory by
#             default (bug fixed).
#              - a letter has been added to the displayed ltplus version number
#             to denote the operating system for which it was compiled.  
#             'A' denotes ATT Unix, 'S' denotes SCO Unix, 'X' for SCO Xenix.
#              - A macro has been added to describe the new '.dgt' digitizer
#             format.  Execute dgt_format to see a complete description of
#             of the format.  Do a more on one of the .dgt digitizer file
#             for examples of that format.
#           
#Version 2.29,  9/20/91
#
#              - bug fixed:  the old digitizer files now work again.
#              - export snap:  4 new items have been added to the format
#             output.  No change in command syntax.
#
#Version 2.28,  9/18/91
#
#              - bug fixed:  in versions 2.26 and earlier, when running in
#             batch mode or  -m  mode, very large files could crash due to a
#             bug in internal ram reallocation.  
#              - export:
#                  - dlg3:  fixed line 4 of output file.  item 5 now has the
#                  correct number of decimal palces showing.
#                  - digit:  new parameter added, allows user to input whether
#                  LTPlus attributes are GRASS catagory numbers or not.
#                  - dem:  added full support for exporting dems in
#                  arc-seconds.  Also added 2-3 feet overage on DEM.
#              - ltpdist:  updated to new code filenames
#              - atrbt_contur: speeded up error message display when attribute
#             profile crosses the same contour twice in a row.
#              - seg_break:  fixed bug occurring when breaking a null segment
#             (one of zero length, having already been broken at the endpoint)
#              - added 5-10% extra RAM for expanding files without going to
#             hard-disc (may help some sites with very large files).
#              - pers_plot Added feature:  you can now UNlabel contours while
#             they are displayed in perspective.
#              - purge_map:  bug fixed, you are no longer querried when
#             entering the entire command from the keyboard or a macro.
#              - raw_print: You can now raw_print to a file.  Also, there is a
#             new option (dig_variables) that can be printed.
#              - import:  
#                 - import dem, modified to allow reading DEMs in arc-seconds.
#                 - all formats:  no longer accept user input level names. 
#              - Many Commands:  bug fixed, when you are choosing from a list,
#             the program would ignore mouse clicks when the cursor was on an
#             item in the lower left portion of the screen (has been fixed).
#              - MICE & DIGITZERS:  There is a new format for digitizer and
#             mouse files.  Mice and digitizers are both included.  Any serial
#             mouse or digitizer should be able to be used if it has an
#             appropriate (text) file describing it.  The new format allows
#             more options, and is easier to understand/write.  for
#             information, enter      digitizer     on the LTPlus command-line
#             (it is a self displaying macro).  There are already driver files
#             for all old digitizers & mice and a new file for the logitech
#             mouseman.  All files of the new type have filenames ending in
#             .dgt (e.g.   al40f82.dgt).  All old digitizer files will also
#             work (I hope).  
#                  Also, stream digitizing (with no button being held down) is
#             now allowed.  To do it you must define a cursor_key string
#             (continue) for the value generated when no button is pressed
#             (for mice & binary digitizers the value is \000).  To use it
#             effectively, you position the cursor where you want to start,
#             press start, then execute a macro which changes the cursor keys
#             to this new file (whatever you want to call it).  You must also
#             have a macro which changes back to another cursor_key file to
#             end the process.
#              - There is a new macro variable ($ltp_path) that will
#             automatically substitute for the unix directory of   ltp.    
#              - There are now a family of macros for setting up the Config &
#             Default Header files.  All of them begin with setup_ .  To see
#             what your choices are, type       help setup_
#              - bug:  some old digitizer files do not work, notably the
#             al40f82.  work-around:  set your config dig1_type to
#             al40f82.dgt:  config dig1_type = al40f82.dgt
#
#Version 2.26, July 29, 1991
#
#              - ltplus, initialize:  feature changed, if no default menu can
#             be loaded while initializing LTPlus, the program will try to
#             load the poly_menu instead.  If it cannot be found, LTPlus will
#             still run, but without a menu.  (you used to be kicked out of
#             the program if a menu couldn't be found).  This is to releive
#             the problem of users entering an inclrrect menu name in their
#             config file, and then not being able to run ltpgo.
#              - import dlg:  bug fixed:  always prompted for level number.
#              - import map:  now accepts fully compressed maps.
#              - import xy:  bug fixed, wasn't importing geodetics correctly.
#              - export dxf:  layer names in lower case for easier handeling
#             by autocad.
#              - export dem:  bug fixed, fixed gridding by geodetics
#                             feature changed:  when the dem grid is clipped,
#             points are now included if they are within 1/10,000 of the length
#             of a side of being within the clipping limits.  This has the
#             effect of including points if they are within 2-3 feet of the
#             quad.  This means that geodetically gridded dems can have grid
#             points along all 4 sides.
#                             bug fixed, some elevations were rounded
#             improperly: if decimal was in range .000 to .499 the number was
#             rounded up.  Decimals in range .500 to .999 were rounded
#             correctly.  (maximum error introduced:  1 meter).
#              - plot:  lowered point labels so they don't cover the point's
#             tic mark.
#              - plot:  macro commands lplot and lplotr added to allow plotting
#             through the print spooler (You no longer have to sit on your
#             hands while plotting).  See notes on setting up your plotter as a
#             printer (help lplot).
#              - report:  report to an ascii file now works correctly (bug
#             fixed).
#              - prompt:  new command for macro use (for more info: help
#             prompt)
#              - step:  bug fixed:  1 pixel drift removed from the step/view
#             commands. 
#              - acquire:  now allows acquire of fully compressed/packed maps
#             (as does import map).
#              - dem_view:  bug fixed:  now allows display of dems gridded by
#             geodetics (lat/lon).
#              - execute:  new parameter added (-s) for silent execution (no
#             change in graphics mode).
#              - purge import:  bug fixed, now lets user choose from correct
#             directory.
#              - graphics:  now allows user to specify a range of levels to be
#             displayed:   graphics +n0-15 +h88-91
#              - digitizer files:  gtco2436 driver fixed & available, sgmg2f16
#             file available (summagraphics microgrid 2).
#              - macros:  Some new macros have been added:
#                  create_map:  lets you choose raster size during creation.
#                  grid7.5:     lets the user create/import an 7.5 min grid.
#                  grid15:      lets the user create/import a 15 min grid
#                  grid30:      lets the user create/import a 30 min grid
#                  tics7.5:     lets the user create/import 7.5 min tics
#                  tics15:      lets the user create/import 15 min tics
#                  tics30:      lets the user create/import 30 min tics
#                    (the last 6 macros listed use the generic 'grid' program
#                  now available [it is in the ltp/bin directory].  you can use
#                  it to create any size grid or tic pattern in moss/arc
#                  generate/or dxf format.  For help, just enter    grid
#                  at the unix prompt.)
#                    (If you like to write LTPlus macros, see any of the above
#                  macros for examples of the powerful   prompt  ltplus
#                  command.  It allows you to gather user input from a macro,
#                  then use it later when executing ltplus commands.)
#
#Version 2.22, April 29, 1991
#
#	       -Port of LTPlus to X windows begins (Dave Satnick, Central
#		Washington University).
#              - rotate, reflect.  Bug which didn't display rotation/reflection
#             on full map display has been fixed.  It is no longer necessary to
#             redisp_map after doing a rotate or reflect.
#              - level_dup - fixed bug which sometimes gave attributes to
#             polygons which should have none etc. 
#              - export snap - modified logic which decides if an attribute is
#             a code-Pair or a label.  It is now takes as a label unless:
#                  1) is is 5-7 characters, all digits,   or
#                  2) is is 2 groups, separated by blanks, all digits, group 1
#                  is 1-3 characters and group 2 is 1-4 characters.
#             export snap no can include up to 25 segments in the stick figure
#             for a polygon.
#              - goto coord now works with geodetics (decimal degrees)
#              - bug fixed in edit header.  When the maptype is changed, the
#             default sets are now re-computed.  Before, is maptype was changed
#             in edit header, no new default sets were calculated, so set 0 was
#             incorrect.
#              - sorry, no changes to level_snap.  We couldn't get them
#             finished in time, so they will have to come in next version,
#             whenever that is (don't wait up).  JPD
#
#Version 2.20  3/11/91
#
#              - import xy (generic, user-defined xy vector format) added.
#              - export xy (generic, user-defined xy vector format) added.
#              - level_snap modified to allow snapping to POLYGON templates
#             (not just line-type data templates).  Befor attempting to snap to
#             polygon type data could cause looping of vector data.  Snapping
#             to polygon type data had been discouraged, but should now be
#             feasable.
#              - export moss, dlg:  when exporting set 0 (all map type objects)
#             on polygon maps will NO LONGER include the map border polygon by
#             default.  This is a change from previous versions in which the
#             map border polygon was included when set 0 was specified.
#              - report, sorting;  The report command has been fixed to work on
#             all sizes of maps.  This includes primary and secondary sorting.
#              - seg_break has been modified to work on polygon type maps (NOTE
#             however that polygon topology is not maintained).
#              - query, modified so that no acreage is shown for line & point
#             type objects.
#              - disprstr_get, modified:  there are now 3 options:
#                  a) get the editable raster
#                  b) get the original scan FOR VIEWING ONLY
#                  c) get the original scan TO REPLACE EDITABLE RASTER
#             when b) is chosen, then it will NOT be stored over the editable
#             raster no matter what.  This was added as a protection for users.
#              - more, fixed to work with all specifiable file types.
#              - reduce_res, fixed:  now prompts & adds to macro correctly when
#             in macro collection mode.
#              - level_dup, now allows user abort durring duping, also, 2 new
#             options added:  4) copy imported point attributes to map
#             segments.  5)  copy imported point attributes to map polygons.
#              - export dxf, 3d output (using elevation attributes) has been
#             fixed/modified to be readable by autocad.
#              - import tan, bug fixed, now reduces resolution properly (used
#             to work properly only with reduction factor of 1, otherwise would
#             reduce in 1 dimention, but not the other).  modified to use file
#             extention  .img   OR  the file listed in the .cmd file (used to
#             accept only  .img  extention file for the image).
#
#Version 2.19  2/1/91
#
#              - LTPlus changes 11/13/90 - 1/4/91:
#              - map_lists, the wildcard characters '?' and '*' now operate
#             correctly when used in a map list.  You may specify all maps
#             simply by using the single entry    *     in a map list.  
#              - header file: the   compress=    item is now used.  The default
#             value is  'yes'.  If the item specified is not  'no'   then 
#             several of the files of the map will automatically be compressed
#             whenever the map is saved.  Typical size reductions should range
#             from 50 to 70% allowing users to put 2 to 3 times as many maps on
#             the same disc space.  NOTE:  Whenever any map is acquired, the
#             files are automatically unpacked so no special
#             commands/procedures need to be used.  Also, adjacent maps and
#             template maps may be compressed in this fassion because the
#             vector files necessary to import them are left uncompressed.
#              - import:   a) All ascii formats import much faster.  (a DXF
#             file that took 12 minutes under version 2.15 now takes 45
#             seconds).  b)  graphics display after dlg3 import has been fixed.
#             c)  import dlg3 now imports all attributes, not just the first
#             line of attribute(s).  d)  import dxf:  fixed the prompt for the
#             level number.  d)  import dem:  fixed bug which allowed only one
#             1024 byte block of each row to be imported correctly.  
#              - register:  bug fixed:  certain combinations of raster
#             height/width and map ht/wd in minutes would lead to a tiny
#             rectangle of the raster being the active area (now fixed).  Also
#             changed:  It used to be that the West side of a map was always
#             placed vertically on the raster.  Now the map area is placed on
#             the raster so that UTM North is up, reguardless of the west side.
#             (for rectanglular maps there will be little or no change, but for
#             irregular registration, there will be significant change).
#              - bug fixed:  plot_ascii command line was not being interpreted
#             correctly by the program.  It would output to a file called '0'.
#             Bug has been fixed.
#              - export:  a) export dem:  several changes:                    
#                  1)  All non-contour objects on a map may now be used in
#                  generating a dem.  Polygons (as befor) will set dem
#                  elevations, Un-attributed lines (new) will be interpreted as
#                  topography breaks if both ends meet a line, point, or
#                  polygon which does have an elevation attribute.  Points
#                  which are attributed contribute vi attached lines (isolated
#                  points have no effect on a dem from LTPlus).  This allows
#                  streams, ridges etc. to be used as breaks.  Bench Mark
#                  elevations may be used if 1,3, or 4 lines are placed to end
#                  or intersect at the labeled node. 
#                  2)  Variable smoothing has be modified so that dem grid
#                  points which are far from known elevations are smoothed not
#                  only by adjacent grid elevations, but also by grid
#                  elevations up to 3 grid positions away.  This has the effect
#                  of evening out ridges and grooves which are artifacts of the
#                  way the program produces dems.
#                  3)  bug fixed:  When a dem grid point had no data from any
#                  of 4 profiles through it, the program locked up (fixed).
#               b) export snap:  bug fixed on spacing of certain output items.
#              - atrbt_dig:  wouldn't allow you to attribute segments on a
#             polygon type map.  Changed, now you can attribute anything on any
#             type of map.  
#              - vertex_move:  bug fixed:  if you moved a node, your map data
#             file would be corruped (usually at the node with record number
#             4).  (bug fixed).
#              - New Command:  more    Works similarly to the unix more
#             command, but allows viewing of binary and ascii files and can be
#             controlled with the mouse and without changing graphics modes.
#             Can only be used within LTPlus. 
#              - ltpgo no longer aborts if there is an improper (or no) menu
#             name in the config file.  Now the poly_menu will come up by
#             default if the listed one cannot be found.
#              - purge command, options added:  import file, export file
#             options added to file type choices.
#              - level_snap  several minor changes in the way verticies are
#             searched for and added.  All problems/bugs represented by files
#             sent in to the help desk were resolved & the bugs removed.  There
#             are probably cases which the program can't figure out & the input
#             data must be modified befor the user gets what s/he wants.  I now
#             believe that this is possible.
#              - level_snap/vertex_thin/assemble  bug fixed:  after using
#             level_snap or vertex_thin then re-assembling a map, some LINE
#             attributes could be lost.  The greater the tolerance of the
#             level_snap or vertex_thin, the more lines would loose their
#             attributes upon re-assembly.  Bug has been fixed by keeping
#             tracking of maximum vertex movement & taking that into account
#             when updating attributes during assembly.
#              - dem_view  Changes: file name and lighting direction now
#             displayed on screen.  lighting colory now computed using 3
#             profiles instead of 4 (for more accurate representation.)
#              - raw_print:  much faster.  Users will notice this most when
#             using the reg_check macro.  It now displays almost immediately.
#              - mlist_exec, an optional parameter has been added [-s].  If
#             used, this parameter is the first parameter and it indicates that
#             after each map in the maplist is processed that it NOT BE SAVED.
#             Normally (without the parameter) each map is saved if any changes
#             have been made.  See the help file for mlist_exec.
#
#Version 2.18  1/4/91   (2.16 & 2.17 were bypassed)
#
#              - grow_spurs command has been re-written.  Now it invokes the
#             bridge gap input mode logic at each spur end location.  This
#             means that all spurs are either connected or left alone.  It is
#             now feasable to run    grow_spurs 10   and have a lot of clean-up
#             done automatically in some cases.
#              - level_clip command has been added.  This command will trim
#             data on an import level (35-95) to that portion which lies inside
#             the map frame.  It is highly recommended that all TEMPLATE data
#             imported into LTPlus be level_clip'ed.  This way, when data is
#             level_snap'ped to the template, it will NOT be pulled off of the
#             map frame.  DO NOT clip adjacent maps that have been imported, or
#             they will dissapear.  The level_clip command has been added to
#             the add_templates macro (assemble_map menu) and to the vectors
#             menu.
#              - b_edit command has been re-written.  Now all parameters can be
#             used in the same pass.  3 new parameters have been added which
#             allow column deletion, column additioin, and character
#             substitution.
#              - import digit.att, has been modified to read both the newer and
#             older formatted files from grass.
#              - import dlg3 (optional) has been modified so that it now uses
#             the 4 map transformation parameters (normally only used in dlg3
#             standard) (if present) when importing data.
#              - reduce_res, margin, rotate commands have been fixed so that
#             they don't set up a bug which comes out later (now it comes out
#             immediately [just kidding]) even when you don't save & acquire
#             the map immediately (which was the old work-around). 
#              - save:  now uses pack on some files and compress on others to
#             maximize space available.  All old files (packed, compresses, or
#             normal) can be read.
#              - export dlg3 has been modified to use the header item  head1=
#             for its banner line (72 characters).
#              - export snap now accepts attributes in the form MMMNNNN as well
#             as MMM NNNN (where MMM is the major code, and NNNN is the minor
#             code).
#              - level_dup has been modified so that it only assembles data if
#             'both' is specified.
#              - bridge_gap input mode has been changed to extend lines longer
#             (up to 1/2 of search_radius instead of 1/3) in attempte to close
#             a gap against a solid line.
#              - vertex_thin, the default response to the smoothing prompt has
#             been fixed.
#
#Versioin 2.15  11/13/90  (2.13 & 2.14 were bypassed)
#
#              - import cell, changed job_stats flag number (no change for
#             users)
#              - p_create, added prompt number to fname prompt.
#              - atrbt_edit had placed an attribute which was blank when an
#             equals (=) sign was on a line, but there was no attribute.
#             fixed, now stores nothing for those lines.
#              - level_snap, sometimes created cobwebs near the end of segments
#             when using snapping type 3,  bug has been fixed.  Added snapping
#             type 4:  snap only to nodes/segment endpoints.  This is used for
#             snapping to edgemaps.
#              - vertex_move, would sometimes move the vertex adjacent to the
#             one marked by the cursor.  bug has been fixed.
#              - set_dig, didn't display set correctly when objects were being
#             removed.  bug has been fixed.
#              - import_map, sometimes displayed adjacent map boundries
#             incorrectly when then crossed the raster boundry (displayed at a
#             odd angle instead of an approximate right angle).  bug has been
#             fixed.
#              - atrbt_set, when attribute action 8 (prefix second attribute)
#             was chosen, it insteat suffixed the second attribute.  (action 8
#             worked ok for the rest of the atrbt_ commands).  bug fixed.
#              - import dlg, DLG objects which had multiple text attribute
#             lines or more than 6 code pair attributes didn't get the
#             additional attributes imported.  bug fixed. 
#              - ltpinstl, when ltplus installed (not updated) and the default
#             configuration parameters are chosen, the maps path set in the
#             config file is incorrect.  When ltpgo is first run, the user must
#             reset the maps path by entering:    config maps_path=/u/ltp/maps
#             config maps_path is now set to /u/ltp/maps by default in the next
#             release.
#              - vertex_thin, help file, did not have 4th paramter (smoothing
#             code) in it.  A smoothing code of zero (0) indicates no
#             smoothing.  A smoothing code of one (1) indatex smooth sharp
#             corners by adding verticies.  Help file has been updated. 
#              - the escape key allows you to abort a macro & some commands.
#             However, sometimes macros & commands would abort even when it
#             wasn't pressed, especially if it had been used previously.  This
#             has been fixed.
#              - if the keyboard was used during the display of vector
#             information, the remaining vectors would be displayed in white
#             (or whatever color is used for the cursor).  This has been fixed.
#              - header, default_head commands.  The header and default header
#             files now have 3 new items:  template1=,   template2=,
#             template3=.  These items may be set to names of LTPlus maps which
#             contain template data for the current map.  If not set to map
#             names they should be set to 'dummy' or some other name which is
#             not an LTPlus map.  These items are used in macros to import and
#             snap to template data (similar to edge_n=   etc.).
#              - header, default_head, config commands could leave trash at the
#             end of the header/default_head/or config files, especially when
#             the lenght of an item changed.  This bug has been fixed.
#              - create, acquire, import map:  These commands will now let you
#             choose from a list of 1024 maps maximum, and if there are more
#             maps than this, they won't die, they will just let you choose
#             from the first 1024 (if you want another, you will have to enter
#             it with the command from the keyboard).  You can also use capital
#             letters in map names.  These commands no longer lock up the
#             system when there are more than 255 maps.
#              - prompts have been changed in the raw_print and vertex_thin
#             commands.
#              - minor changes have been made in the export dlg3 and export
#             snap routines and the raw_print routine.
#              - menus have been modified:
#                edit menus now have    erase rect    as an item
#                assemble_map menu  has changed a lot.  there is a macro called
#             snap_n_thin which thins verticies, snaps to all adjacent maps,
#             the straight frame, and all templates.  add_templts macro added.
#                the manual_atrbt menu is modified to make display of the
#             original raster easier.
#                a templates menu has been added.
#                the original_scn menu is gone (its commands are in the
#             batch_edit menu).
#                a new menu for templates has been added (called templates).
#
#Version 2.12, 10/5/90
#
#              8/10/90 - 10/5/90:
#              - atrbt_copy command added.  This command allows the user to
#             copy the attribute from one object (map or imported) to another
#             (map) object.
#              - atrbt_list command added.  This command allows the user to get
#             attribute strings from a dictionary or other list & assign them
#             to objects like atrbt_dig does with manual entry.
#              - atrbt_contur, atrbt_dig, atrbt_line, atrbt_rec, atrbt_serial,
#             atrbt_set commands have 2 new attribute action options:  8=prefix
#             second attribute, 9=suffix second attribute.
#              - brstr_switch command has been deleted (horray!).  You now
#             access the original scan by using the  disprstr_get  or  recall
#             commands and specifying the  b (original scan) raster.  ALSO, a
#             B-RASTER IS AUTOMATICALLY CREATED whenever you import scanned
#             data, or when you rotate, reflect, margin, reduce_res an existing
#             scanned raster.  You should not have to use the brstr_create
#             command except in very rare instances.
#              - crit_exec, set_comp, set_dig, set_exclude, set_intrsec, and
#             set_union commands have been modified to HIGHLIGHT automatically
#             the set being created.  All of these commands except set_dig
#             automatically report the number of objects, lenght/perimeter, and
#             area of the set created.
#              - default_head and header commands have been modified to include
#             2 new header items:   head1 =   and   head2 =.    These items are
#             used when exporting a DEM when the user wants to specify the
#             first 144 characters of the A record themself.  Each item
#             specifies 72 characters.  I they are both blank, then the header
#             will default to the same as befor.
#              - export snap has been added. 
#              - import tan and dem formats have been added.  tan is the LTPlus
#             code for the pair of files output by the Tangent scanner made by
#             General Dynamics.  These files have the extentions of .cmd and
#             .img and they shave the same base name.  A DEM can now be
#             imported as a level of vector points with elevations as
#             attributes.
#              - import for vector data has been modified to automatically
#             display newly imported vector data.
#              - level_snap has had a bug removed, an option removed, and been
#             enhanced.  The bug happened when option 3 or 4 was used on a
#             segment or polygon.  If a junction should have been moved, only
#             one end of one of the segments was moved.  The other segments and
#             the node were levt at the old position.  This created a gap
#             between the node and the new segment end.  This has been fixed.
#             Snapping option 4 has been deleted (use option 3).  Option 3 has
#             been enhanced to check for 'tails' of imported vector objects
#             when a single map object be checked crosses between 2 different
#             vector objects.  Verticies on such 'tails' were not added befor,
#             but are added now.
#              - raw_print has 3 new options.  You can now print/display these
#             system/program data sets (not from the map):
#                 cmd_line_hist  shows the last 128 command line messages
#                 open_files     shows all file currently opened by LTPlus
#                 malloc_stats   shows all malloc space opened by LTPlus
#              - reduce_res has been modified to reduce both the raster and all
#             vector data too.  This will allow high resolution scans of
#             contour data followed by automatic processing and assembly to be
#             reduced in resolution & size without losing the vector data prior
#             to attributing.  Hello 50 micron scans!
#              - Menus have been modified to include command changes.
#              - p_create, prompt sequence modified
#
#Version 2.11  8/10/90
#
#              8/7/90-8/10/90 level_snap has new options to add vertices for an
#             EXACT MATCH of a vector level.  This allows perfect vertical
#             integration.  There is a new help file for level_snap which
#             explains the options.  
#              - There is a new macro    reset_colors  which allows anyone to
#             reset thier LTPlus color scheme back to the default colors.  Some
#             people had found that their new color schemes worked well when
#             editing raster data, but didn't help discriminate vector data
#             over scanned data very well.  
#
#Version 2.10  8/3/90
#
#              - 7/27/90 - 8/3/90 fixed bug in vertex_move.  It often returns
#             with an error (illegal parameter).  The bug is now fixed &
#             vertex_move works as advertised.
#              - Added a check for an escape during vector display.  Now you
#             can break out of a tediously long vector display by pressing the
#             [esc] key (as you can on several other commands). 
#              - modified some menus and added some 'easy' menus (easy_poly
#             etc).
#              - Added the vertex_thin command.  It allows the user to specify
#             a radius & get rid of all (vector) verticies that lie within that
#             radius along a path between other verticies.  It also allows
#             optional smoothing of the resulting corners.
#              - Added the export cell format.  This format has a header of 15
#             lines or so, followed by a block of ascii characters.  These
#             characters represent polygon attributes for gridded cells over
#             the map area.  It is very similiar to R2map or Mt.Hood map data.
#              - modified the register command to allow use of negative
#             coordinates.
#              - removed all commands not to be implemented (help files etc.)
#
#Version 2.09  7/19/90
#
#              - 6/18/90 - 7/19/90 many changes:
#              - DXF (CAD) import and export formats added.   When DXF is
#             exported, points, lines & polygons are written to separate
#             drawing layers.  Attributes are sent (on a fourth layer) as text
#             strings at the centroid location(s).
#              - export dig    &    import gis (ERDAS) formats added.
#              - query command changed to allow direct query of imported
#             levels.
#              - bug removed from attribute assignment.  It could cause failure
#             of program at various times when attributes are assigned.  It had
#             no adverse affect when assigning attributes manually.
#              - vertex_move command added for moving a single vertex of map
#             vector data.
#              - erase_obj command added for erasing the pixels under a vector
#             object.  
#              - set_erase command added for erasing the raster under a set of
#             vector objects.
#              - atrbt_line command added for attributing many segments quickly
#             along the shortest path between any two nodes.
#              - plus_plus command added for setting the $++ attribute variable
#             and its length when imbeded in an attribute string.
#              - Import command, all formats, modified to erase temporary files
#             generated when files were imported directly from DOS.  This was
#             not done consistantly befor & temporary files could stack up on
#             disc taking up space unnecessarily.
#              - set_dig command added.  This command allows you to define a
#             set by digitizing objects (or remove objects from an existing set
#             by digitizing objects).
#              - level_icopy command added, for identifying & copying
#             individual objects from an imported level.
#              - register command modified, now you can register state plane or
#             utm first and get correct geodetics & map inch & raster
#             registration.
#              - plot command modified, you can now use properly all 8 plotter
#             pens & any penfile to get multi-color plots.
#
#Version 2.08     6/18/90
#
#              - Version 2.07 has a bug:  When acquire or create are used, and
#             the user is asked if they want to save the current map, and they
#             answer 'yes' - the map is saved, then the consol locks up.  To
#             get around it, use the save command immediately befor using the
#             acquire or create command.  This bug has been fixed in version
#             2.08.
#
#Version 2.07     6/12/90
#
#              6/12/89 - changed import RLC to accomodate changes in the RLC
#             format, speeded up import, changed run-length decoding to exactly
#             match encoding method (following RLC spec didn't match file, runs
#             were 1 pixel too long). 
#              - modified acquire command to reset coord_type to 0 (raster)
#             whenever a new map is loaded.
#
#Version 2.06     6/8/90
#
#              - 5/24/90 to 6/8/90:
#              - Speeded up the installation process.  Setting Permissions &
#             ownership now takes about 10 sec. instead of 5 min.
#              - Installation now creates the 'dictionaries' file instead of a
#             'dictionary' file.
#              - plot has been modified:  You can now abort during plotting
#             (Press the escape [ESC] key)
#                Horizontal plots now have the map label at the top instead of
#             at the side.
#                There is a frame increment to automatically move roll fed
#             plotters up 1 frame after the plot is complete.
#                When the HPGL plot commands are sent to an ascii file, there
#             are no longer linefeeds appended to each command.  This creates a
#             more standard HPGL file.
#              - Import cell has been added (data like MT Hood map or R2-map
#             data).  Most of these files need to be stripped of header data
#             and lines appended befor being imported (use the b_edit command).
#              - b_edit command has been implemented.  There are 13 parameters
#             which may be specified to modify files.  These are designed to
#             modify cell type data for importing into LTPlus, but may be used
#             on any file.
#              - Import RLC has been added.  RLC is a scan format output by the
#             Ideal scanner.  
#
#Version 2.05  5/24/90
#
#              - (5/21-23/90) The  save  command has been enhanced.  You can
#             now type a filename after save:   save newfile       When this is
#             done, a copy of the displayed map will be stored under the name
#             entered.  Thus, you can store multiple copies of a map.  If you
#             select the save command from the menu (or just type save) then
#             you will get the same   save   as befor (which overwrites the old
#             permanent file).
#              - A bug was uncovered (first by Chris Highfiled, then by Mike
#             VanderVorst) in the assemble function, it has been killed.  The
#             bug comes out when you are assembling polygon maps and you have a
#             situation in which there are 2 simple islands whose low points
#             are exactly over one another and a 3rd island has a low point
#             somewhere over the highest of the other two.  There was an check
#             (for a y coordinate) omitted from the code that wasn't needed
#             except in such casses.  If you have a map with several islands
#             that failed to assemble, or has stange vector data output, try
#             re-assembling with version 2.05 or later.
#              - Export DLG3 format had the latitude & longitude columns in the
#             header reversed.  It has been fixed.  Most programs which read
#             DLG data do not use this portion of the header, so if you have
#             been using DLG output in the past & other programs accepted it,
#             don't worry.   
#
#Version 2.04  5/18/90 
#
#             5/2/90 - fixed bug where log_errors failed intermittantly, esp.
#             after importing scanned data.
#              - fixed bug where macros sometimes got caught in continuous
#             loops.
#             5/3/90 - fixed bug which didn't allow arguments to be passed to
#             ltpgo (ltplus) (ltpgo arg1 arg2 . . .)
#              - changed goto command to not redisplay screen if entire map is
#             displayed.
#             5/7/90 - added length/perimeter (ft) and area (acres) to querry
#             function.
#             5/8/90 changed line 1 of exdigit (.cat) file to correct position
#             of '#' character to first byte.
#
#Version 2.03 5/8/90
#
#             5/9/90 - modified export dem weighting/smoothing.
#             5/10/90 - added seg_break command (input mode).  This mode allows
#             the user to break a vector segment into two separate vector
#             segments.  While in this mode the   'start'  command will cause a
#             part of the nearest segment to be drawn in the cursor color
#             (normally white).  The  'continue'  command will then cause the
#             segment to be broken at that location.  The highlighted part of
#             the segment will become a gap in the vector data, and the new
#             segments on either side are the two portions of what had been a
#             single segment.  New nodes are created on either side of the
#             break.
#             5/14-17/90 - modified export dem weighting/smoothing again.  The
#             smoothing-type  parameter (in the  'export dem'  command) has a
#             new meaning.  If it's value is 2 or greater, then this value is
#             taken as a distance in dem grid projection units (normally meters
#             [UTM grid]).  This distance is used to control variable
#             smoothing.  DEM elevations which lie between contours which are
#             farther apart than this value (on average) will be smoothed.  DEM
#             elevations which lie between contours which are closer together
#             will not be smoothed.  This allows smoothing on flat or nearly
#             flat areas to suppress groves & ridges which are artifacts of the
#             gridding process.
#              - changed export help file to reflect changes in smoothing-type
#             parameter for dem output.
#              - modified  'undo'  command to include undo of atrbt_contur mode
#             changes.  An undo of these changes will strip all attributes from
#             the contours attributed in privious uses of 'increment' or
#             'decrement'.  Like the undo for raster changes, this also goes
#             back up to 32 commands.
#              - modified the display of vector objects when attributed.  It is
#             now faster than befor when a small portion of the screen is
#             showing and a very long vector is attributed.  (speeds up
#             atrbt_contur  changes).
#              - added check to atrbt_contur mode.  If the defined profile
#             (increment of decrement) crosses the same contour twice in a row,
#             then its attribute is removed and a waring is displayed on the
#             command area of the screen.  All further attributing along the
#             profile is aborted.  This stops the user from accidently crossing
#             a contour twice & getting the elevation attributes out of
#             sequence.
#
#Version 2.02 4/10/90 
#
#              >>> NOTE in version 2.01, the install program (ltpinstl) doesn't
#             work, the level snap command doesn't work.
#              - fixed ltpinstl, fixed level_snap.
#
#Version 2.01  3/26/90
#
#              3/16/90 - 3/26/90 fixed bug in atrbt_edit command which failed
#             to update the automatic sets (25-29) which use edit criteria.
#              - fixed bug in purge dictionary command which look in
#             'dictionary' directory when it should have looked in
#             'dictionaries' dictionary.
#              - added an escape check during the mask command.  it takes a
#             while to escape out, but much less time than if the mask is
#             completed.
#              - fixed bug in the goto coords command.  It now works with the
#             coordinate type displayed, not just with pixel coords.
#              - fixed bug in ATT version in which the level_snap command
#             reported that it wasn't implemented yet.  (re-linked with new
#             library)  It IS working.
#              - fixed bug in which config & some header data was used in all
#             lower case even when entered in upper case.  You can now put in
#             default paths etc. in the config file in UPPER case & it will be
#             used properly.
#              - fixed bug in plot command in which the program went out of
#             graphics command and waited (unprompted) for the user to hold
#             down the [RETURN] key in order to finish the plot.  
#              - IDENTIFIED a bug which occurrs sometimes:  when logging spurs
#             etc, it sometimes goes into an infinite loop which can only be
#             broken by pressing the escape key.  When this happens, you can
#             escape out, the save & acquire the map again to get the
#             log_errors macro to work properly.  We will hunt down the bug as
#             soon as we can make it happen regularly.  
#
#Version  2.00  3/15/90
#
#              2/26/90 - 3/15/90 fixed several bugs, made bridge_gaps smarter,
#             changed contour_menu, created a new version for ATT systems with
#             the VDC600 VGA card, added search for LTPlus during start-up.
#
#Version  1.25  2/23/90
#
#              -      LTPlus commands frozen for Version 2.0 'shake-down'.
#                       No new commands will be added until after version 2.0
#                       comes out on march 15.
#
#             2/20/90-2/23/90 - prompt 289, spelling corrected.
#              - log set, now allows choice of set 0 - 31.
#              - dict_print - prompt corrected.
#              - bug fixed in register raster/geodetics (when re-registering)
#             the old level 32-34 data is now removed when re-registering.
#              - added -L option to plot ascii (plotter origin location).
#              - fixed register to accept 8 'i=' strings in command line.
#              - '#' comments no longer put in history file.
#              - export dlg3, bug fixed, now truncates all header file data
#             properly when writing dlg3 header.  Had allowed map header data
#             strings which were longer that dlg3 could handlt into dlg3 file.
#             This had made the file violate dlg3 format & made files
#             unreadable in cases were long header strings were used.
#              - internal 'more' command, switched to new 'system' internal
#             command.  This fixed bug which would scroll text data past screen
#             befor user could read read it & only display 'press [RETURN] to 
#             return to LTPlus'.  This happened only when system RAM was used
#             up.  The new command displays consistantly & is quicker.
#              - added snap_strtfrm & snap_geofram macro selections to assemble
#             menu.
#              - changed poly_check macro in assemble menu.
#              - level_clear command.  changed to write ' - unused -' over the
#             level name for levels 32-96.  It had simply blanked them out.
#              - import map, now accepts the level number correctly when in the
#             command string. (Had already taken it correctly when prompted).
#              - added messages to show current progress in import map command
#              - added macros to add edgemaps using the header.edge_n, edge_e
#             etc variables.
#              - added macros to snap to edgemaps (in the assemble menu).
#              - fixed bug in report which reported incorrect cumulative
#             length/area  & could also display extra (000) objects.
#
#Version 1.24  2/16/90 
#
#             2/12/90 - added erase_margin, erase_seg, bridge_gap commands.
#             2/13/90 - added variable dem smoothing & new weighting to export
#             dem command.  Speeded up export dem by using some indexing.
#             2/15/90 - fixed bug which produced Illegal QID number error when
#             exiting LTPlus the first time after booting.
#             2/16/90 - added p_create command, added mask command.
#              - added $config.xxx  $header.xxx,  $cnr.xx.xx.xx  command
#             variables.  They access the config file, hte header file, and the
#             register file and allow insertion of any of these strings within
#             macros.
#
#Version 1.23  2/9/90
#
#              2/5/90 - added the macro_edit command.
#              - added special command variable $map_name.  This string is
#             converted to the current map name whenever it is embeded in a
#             command string.  NOTE  the conversion is done befor prompting.
#             Conversion will not occur if you answer $map_name to a prompt.
#             Conversion will occur for all macro command strings.
#              2/6/90 - fixed export dlg3 to trim header items which are too
#             long for dlg3 format.  It had allowed items in without trimming
#             them to the maximum length.  If a header item used in dlg3 was
#             too long, then the dlg3 file created would not be readable.
#              - added open_solids command.
#              - added the mlist_create command.
#              2/7/90 - added the edit command, removed the diary_edit,
#             dict_edit, and macro_edit commands.
#              - added the mlist_exec command.
#              - added screen display of polygon centroids when map vector
#             objects are displayed on the screen.  This makes it easier to
#             distinguish attributed polygons from unattributed ones.  
#              - adjusted the centroid routine to all more polygon centroids
#             than had typically been chosen befor.
#              - 2/8/90 - added the +-c option to the graphics command.  This
#             parameter controls teh display of polygon centroids when the
#             polygons are displayed.  Has no effect on imported level
#             displays. 
#              - added brstr_create, brstr_swiech, brstr_get commands.  These
#             will duplicate the temp/raster to temp/rasterb, switch the two,
#             and delete the temp/rasterb respectively.  Teamed up with the
#             disprstr_ commands (below) these allow you to play a shell-game
#             with the raster in which you can process portions of the same
#             raster in two different ways & mix & match to get a final raster.
#              - added the disprstr_put, disprstr_get commands.  These stroe
#             the displayed raster over the temp/raster & vice-versa.
#              - added disprstr_ers command.  It erases the entire displayed
#             raster.
#              - added disprstr_mrg command.  It merges the displayed and
#             temp/raster into one displayed version.
#              - removed all raster_* commands (replaced by disprstr commands).
#             2/9/90 - added the bridge_gap command/mode.  When in this mode, a
#             start or continue will cause the program to find the two nearest
#             spur ends (or isolated points) that lie within the search_radius
#             (a header variable).  If two are found, they are connected with a
#             straight line.  It is the easiest way to fix line breaks, a
#             single button press does it.  
#              - modified all menus to include new commands.  Bridge_gaps is on
#             the edit2 menu, dsprstr_* and brstr_* are on a new menu called
#             shell_game.  Edit config, edit header, and edit default are on
#             the setup menu.
#
#Version 1.22  2/2/90
#
#              2/1/90 - fixed bug in margin so that it now resets the set/level
#             names to  ' - unused - '
#              2/1/90 - 2/2/90 - added the dict_edit, and dict_print commands
#              - added macro_begin, macro_end, macro_hist commands
#
#Version 1.21  1/31/90
#
#             1/25/90 & 1/30-1/30/90 - added the dem_view command.  This
#             command allows you to use an exported (or any other) dem file to
#             view terrain as if side-lighted.  You just specify the file name
#             of the dem and which direction you want the side-lighting from
#             (there is a choice of 4 directions).
#              - Added 3 special attribute variables:  $record, $serial, $++.
#             These strings can be imbeded in a attribute string and are
#             substituted for the record number, serial, and an incremental
#             number when assigned.  See the atrbt_dig help file (help
#             atrbt_dig) for the details.
#              - Made numerous minor menu & macro changes.
#              - Added the export scsgef command.  The scsgef format is used by
#             the soil conservation service at NCC, Fort Worth.  The import
#             scsgef command is being worked on currently.
#
#Version 1.20  1/25/90
#
#              found bug in rotate,  DO NOT USE as it corrupts the file.
#             FIXED bug in rotate, will be OK TO USE ROTATE IN VERSION 1.20.
#              1/22/90 - 1/23/90 - added crit_type 13 in crit_exec, fixed bug
#             in recall & undo which very rarely drew the wrong pixel, speeded
#             up recall & undo. 
#              - added the atrbt_record, atrbt_serial, atrbt_set commands.
#              - added the reduce_res command.  This command allows you to
#             reduce the raster resolution by any whole number factor & choose
#             the threshold for doing so.  This allows easier use of any fixed
#             resolution scanner.
#              - fixed bug that displayed the wrong input mode when going
#             between full and normal graphics while in one of the recall
#             modes.
#              - added a display of elapsed clock time for the assemble
#             command/process.
#              - changed import digit.asc & import digit.att to ignore objects
#             designated by lower case letters (indicating they had been
#             deleted). 
#              - added support for small format plotters (origin in lower left
#             corner).  Use the config pltr_type = lower_left to designate such
#             a plotter.
#             1/24/90 added the import cff and export cff commands.
#              - added the set_clear command, modified set_clear & level_clear
#             to be identical:  both can clear sets and/or levels except set 0
#             and the automatic sets 25-31.
#
#Version 1.19, 1/19/90
#
#              1/16/90 - 1/19/90 - added the crit_exec (except type 13),
#             set_union, set_comp, set_intrsc, and set_exclude commands
#
#Version 1.178, 1/16/90
#
#              - 1/10/90 - 1/12/90  added the reflect command.
#              - added the crit_report and set_report commands.   These
#             commands output short reports on the current set selection
#             criteria and about the number of items and names of each set
#             respectively.
#              - added the crit_adj, crit-arange, crit_area, crit_astrg,
#             crit_length, crit_newatr, crit_psides, crit_record, crit_serial,
#             crit_slen, crit_subel, crit_superel, crit_type, and crit_clear
#             commands.  These are for setting up criteria for defining sets of
#             point, line, and polygon objects.
#
#Version 1.17, 1/9/90
#
#              - 1/9/90  Changed export moss to left justify the attribute for
#             correct import into moss.
#              - fixed bug in interpretation of command string in atrbt_dig
#             which had forced interactive entry of parameters.
#              - added the undo command.  You can undo up to 32 successive
#             interactive raster changes.  It replaces the pixels in question
#             with those last saved.  It does not undo attribute changes or
#             batch-type raster changes (del_spurs, import raster etc.).  
#              - fixed the entry program so that xenix users can execute ltplus
#             from outside the ltp directory without entering the complete
#             path.  (like typing ltpgo from your home directory).  
#
#Version 1.16,  1/8/89
#
#              - 1/4/90  Added the recall command.  The recall command sets the
#             input mode to one of the recall shapes:  point, line, fat-line,
#             rectangle, wedge, connect, or separate.  What happens when you
#             are in recall mode 'undoes' the same shape as is drawn/erased
#             when you are in draw or erase mode.  What actually happens is
#             that the pixels involved are 'recalled' from the most recently
#             stored raster.  It is for fixing mistakes by only recalling the
#             pixels involved.
#              - 1/5/90  Added the reflect command.  This reflects the raster
#             top to bottom or left to right.  
#              - 1/8/90  fixed a bug in the level_dup command which failed to
#             bring accross most polygon attributes. 
#              - 1/8/90  Added small corrections to the UTM coordinate
#             calculation program to produce smaller error.  The old error was
#             0 - .8 meter.  Now it is 0 - .1 meter.  To get the new values,
#             re-register the geodetics.
#
#Version 1.15, 1/3/90
#
#             12/20/89 - 12/22/89 characterized failure of 'system()' function
#             in C.  Keyed by larger malloc'ed space and longer running times.
#             12/27/89 - found a way around 'system()' call failure.  It is due
#             to inability of operating system to duplicate environment that
#             has so much RAM.  Way around is to start a small process which
#             spawns LTPlus, then waits for messages to give to 'system()'.
#             This way, only a very small environment (12-24 k) gets duplicated
#             and nearly all available RAM can be used.   Will implement in
#             LTPlus as soon as we can test some more & find the best method.
#             Horray horray horray.  
#             12/28/89 - 1/2/90  modified export moss.  It now stays in
#             graphics mode (&exports in lat/lon format correctly, in addition
#             to the other coordinate types). 
#              - implemented patch around 'system()' command failures.  The
#             patch involves a small program (ltpgo) calling another program
#             (ltplus, large) and both programs running together.  Ltplus does
#             nearly all the work, ltpgo just does system() calls communicating
#             with ltplus using the message utility.  All of this is
#             TRANSPARANT to the user.  There are NO changes to the procedure
#             for using LTPlus.  This should eliminate the 'system()' failures.
#              - changed memory management back to that provided by the
#             operating system.  The HEADER MALLOC=   variable is no longer
#             used.  
#              - modified import moss to accept files with lat/lon format in
#             addition to the other formats.
#              - added negative_img command.  It changes the raster to its
#             opposite/negative image.  This is for handeling scans which are
#             done with an 'on' background.
#              - added a message to redisp_map informing user that they have a
#             negative image & should probably use the negative_img command.
#              - fixed bug in start/continue that killed program if input point
#             was outside the raster.
#              - added an arrow to the display in the 'permanant functions'
#             tile which points to the current resolution (view) being
#             displayed.
#              - fixed bug in register raster which would sometimes kill
#             program when changing views.
#              - fixed bug in command interpreter (fj) which would kill program
#             if user didn't choose any of the offered commands when a
#             non-unique substring was origionally entered.  
#              - added the EXPORT DIGIT,  IMPORT DIGIT.ASCII,  and IMPORT
#             DIGIT.ATT export and import formats.  These are the ascii forms
#             of the files used by GRASS & its front-end for newley collected
#             data.
#             1/3/90 - fixed bug in register which reversed non-geodetic
#             coordinates input by hand.
#              - added option 7 (Remove All attributes for 1 object) to
#             atrbt_dig (& on future atrbt) command(s).
#              - added atrbt_thin & atrbt_concat commands & help files
#              - added the status command
#              - changed the menus to include new functions
#              - changed the way in which the history file is stored so that
#             the file never exceeds 512 lines.  This did not cause any program
#             problems, but could have been confusing to anyone viewing the
#             history file in an ascii editor.
#
#Version 1.14  12/20/89
#
#             12/18 - 12/20/89  added frame_map & retrieve commands.
#              - fixed terminal font on XENIX systems after LTPlus exits.
#
#Version 1.13  12/15/89
#
#             12/12/89 - added the optr9 import format.
#              - fixed bug in export rdef2 format which was leaving out some
#             pixels in the raster portion.
#              - changed smoothing portion of export dem to same weighting as
#             the IDES system, limited amount of smoothing to 1/2 contour
#             interval.
#              - changed profile weighting in export dem to achieve smoother
#             dem (& more accurate).
#
#Version 1.12  12/06/89
#
#             12/05/89 - fixed dig_input to not jump in middle of tablet when
#             binary format uses x or y in first byte.
#              - fixed dig file for kurta 3, format 2 to use default settings
#              - added teh coord_type command.
#
#Version 1.11  12/05/89
#
#             12/05/89 slowed button response repete rate on ATT bus mouse
#              - fixed cursor type when in erase pts mode.
#              - modified import ras & rdef2 to allow the operating system more
#             tolerance (fewer crashes).
#
#Version 1.10  12/04/89
#Version 1.09  11/29/89
#
#             11/29/89 fixed prompts for level_dup to allow duplicating levels
#             32 - 34.  fixed bug in dig-input to allow use of high-bit in
#             first byte.
#
#Version 1.08  11/29/89
#
#             11/28/89 added the margin command (allows user to 'trim' raster
#             with any margin width around the registered corners).
#
#             11/29/89 fixed bug in binary digitizer use.  Now works for binary
#             output too (& for the odd hi-bit).
#
#             11/29/89 added feature to abort raster registration
#
#Version 1.07  11/27/89
#
#             11/27/89 finished pers_plot command & added to contour menuset
#
#             added hi_x/y options to digitizer files for binary output. . . it
#             has a bug.  Digitizer input using binary formats work
#             incorrectly.
#
#             fixed bug in output vector files in geodetic coordinates.
#
#             fixed bug causing twice-flashing screen syndrome.  NOTE:  on all
#             versions prior to 1.07, the LTPlus program will lock up when
#             initiated with more that 36 maps in the directory pointed to by
#             the config file.
#
#Version 1.06  11/24/89 
#
#             11/15/89 added code in disp_logo for display of disclaimer for
#             versions to people outside FS/SCS
#             11/16/89 changed prompt for import (level) to restrict range to
#             35 - 95 inclusive.
#             changed calls to register to include all 4 corners, usere will
#             note faster registration due to indexing once, instead of 4
#             times.
#             11/17/89 added org= to header (organization) used for export
#             digit.
#             added default_head command (to change the default header)
#             added the config command (to change the config file)
#             removed 1st prompt from header (Do you want to print the header
#             file?)
#             changed input for 2nd prompt in import.  Now the filename to be
#             imported is chosen from a list.
#
#             11/20/89 added use of pen0 - pen8 entries in config file (user
#             control of color)
#             added option to log command:  junctions (for finding touching
#             contours) on thinned, unassembled raster data.
#
#             11/21/89 fixed a bug in level_snap with preferance to verticies.
#             It had snapped any distance to an adjacent vertex.  It now works
#             properly.
#
#             11/22/89 fixed register geodetics to automatically create levels
#             33 & 34 when done befor raster registration.
#
#             11/24/89 added pers_plot command, not fully debugged yet (plots
#             are not always fully on the screen), got to put out code now
#             though (will finish debugging soon).  
#
#Version 1.05   11/14/89
#
#             11/6-11/19 - Function keys are no longer remapped on the ATT
#             machines.  A program called reset_fkeys in /u[sr]/ltp/bin can be
#             run to restore function keys that were remapped by ltplus to
#             their original factory values.
#             Ratio of pixels to feet is now displayed during the raw_print
#             command of a register map file.
#             The plotter hangup has been removed.  If LTPlus cannot link up
#             with the plotter, it simply stops the plot command without
#             locking up the machine.
#             Double button presses occuring digitizer registration have been
#             eliminated.
#             Attributes are now displayed when plotting polygon type maps and
#             using attributes as labels.
#             The purge command now finds maps based on the config.maps_path
#             variable and not assuming a /u[sr]/ltp/maps path. 
#             The installation program now prompts for and sets many
#             site-specific items in the  config,  [default] header,  and
#             tolerance files.
#
#Version 1.04  11/2/89
#
#             11/2/89 - fixed bug which caused plots to be at the wrong scale.
#             Plots now overlay properly.  Also changed the way in which the
#             program checks for the plotter.  It now returns to the user after
#             3 tries of talking to the plotter.
#             11/2/89 - fixed a bug which hung the program after certain cases
#             of re-registration of geodetics.
#
#Version 1.03  11/1/89
#
#             10/31/89 - Houston Instruments has changed their .RAS  format:
#             The end-of-strip character has been changed from ascii 152 to
#             ascii 138 (decimal).  Changed the import ras program to accept
#             both versions of the .RAS format.
#             11/1/89 - added 2 automatic levels:  level 33 has a straight
#             planar frame (raster/utm/state plane).  level 34 has the 4
#             registered map corners.  Whenever the raster is registered, these
#             2 levels are automatically created.
#             11/1/89 - the LEVEL_SNAP command is now functional
#
#Version 1.02  10/31/89
#
#             10/31/89 - added pause & wait commands & help files.
#
#Version 1.01  10/27/89
#
#             10/27/89 - removed memory bug from programs which import ras and
#             rdef2 scan formats.
#
#Version 1.00  10/20/89,  Released at end of Fort Worth Training.
#             This version has a memory bug connected with importing scanned
#             data.  There is also a bug which results in plots which are not
#             at the user selected scale, but somewhat larger.
#
#Version 0.98  Version used a Fort Worth Training 10/16/89 - 10/20/89
#
