xref: /dflybsd-src/contrib/less/version.c (revision e0f238eda64c20d98364903e0c003825fd0b66dd)
11133e27eSPeter Avalos /*
2*e433da38SAaron LI  * Copyright (C) 1984-2024  Mark Nudelman
31133e27eSPeter Avalos  *
41133e27eSPeter Avalos  * You may distribute under the terms of either the GNU General Public
51133e27eSPeter Avalos  * License or the Less License, as specified in the README file.
61133e27eSPeter Avalos  *
7e639dc31SJohn Marino  * For more information, see the README file.
81133e27eSPeter Avalos  */
91133e27eSPeter Avalos 
101133e27eSPeter Avalos 
111133e27eSPeter Avalos /*
121133e27eSPeter Avalos ----------------------- CHANGE HISTORY --------------------------
131133e27eSPeter Avalos 
141133e27eSPeter Avalos        1/29/84  Allowed use on standard input
151133e27eSPeter Avalos        2/1/84   Added E, N, P commands
161133e27eSPeter Avalos        4/17/84  Added '=' command, 'stop' signal handling
171133e27eSPeter Avalos        4/20/84  Added line folding
181133e27eSPeter Avalos v2     4/27/84  Fixed '=' command to use BOTTOM_PLUS_ONE,
191133e27eSPeter Avalos                 instead of TOP, added 'p' & 'v' commands
201133e27eSPeter Avalos v3     5/3/84   Added -m and -t options, '-' command
211133e27eSPeter Avalos v4     5/3/84   Added LESS environment variable
221133e27eSPeter Avalos v5     5/3/84   New comments, fixed '-' command slightly
231133e27eSPeter Avalos v6     5/15/84  Added -Q, visual bell
241133e27eSPeter Avalos v7     5/24/84  Fixed jump_back(n) bug: n should count real
251133e27eSPeter Avalos                 lines, not folded lines.  Also allow number on G command.
261133e27eSPeter Avalos v8     5/30/84  Re-do -q and -Q commands
271133e27eSPeter Avalos v9     9/25/84  Added "+<cmd>" argument
281133e27eSPeter Avalos v10    10/10/84 Fixed bug in -b<n> argument processing
291133e27eSPeter Avalos v11    10/18/84 Made error() ring bell if \n not entered.
301133e27eSPeter Avalos -----------------------------------------------------------------
311133e27eSPeter Avalos v12    2/13/85  Reorganized signal handling and made portable to 4.2bsd.
321133e27eSPeter Avalos v13    2/16/85  Reword error message for '-' command.
331133e27eSPeter Avalos v14    2/22/85  Added -bf and -bp variants of -b.
341133e27eSPeter Avalos v15    2/25/85  Miscellaneous changes.
351133e27eSPeter Avalos v16    3/13/85  Added -u flag for backspace processing.
361133e27eSPeter Avalos v17    4/13/85  Added j and k commands, changed -t default.
371133e27eSPeter Avalos v18    4/20/85  Rewrote signal handling code.
381133e27eSPeter Avalos v19    5/2/85   Got rid of "verbose" eq_message().
391133e27eSPeter Avalos                 Made search() scroll in some cases.
401133e27eSPeter Avalos v20    5/21/85  Fixed screen.c ioctls for System V.
411133e27eSPeter Avalos v21    5/23/85  Fixed some first_cmd bugs.
421133e27eSPeter Avalos v22    5/24/85  Added support for no RECOMP nor REGCMP.
43*e433da38SAaron LI v23    5/25/85  Miscellaneous changes and prettying up.
441133e27eSPeter Avalos                 Posted to USENET.
451133e27eSPeter Avalos -----------------------------------------------------------------
461133e27eSPeter Avalos v24    6/3/85   Added ti,te terminal init & de-init.
471133e27eSPeter Avalos                 (Thanks to Mike Kersenbrock)
481133e27eSPeter Avalos v25    6/8/85   Added -U flag, standout mode underlining.
491133e27eSPeter Avalos v26    6/9/85   Added -M flag.
501133e27eSPeter Avalos                 Use underline termcap (us) if it exists.
511133e27eSPeter Avalos v27    6/15/85  Renamed some variables to make unique in
521133e27eSPeter Avalos                 6 chars.  Minor fix to -m.
531133e27eSPeter Avalos v28    6/28/85  Fixed right margin bug.
541133e27eSPeter Avalos v29    6/28/85  Incorporated M.Rose's changes to signal.c
551133e27eSPeter Avalos v30    6/29/85  Fixed stupid bug in argument processing.
561133e27eSPeter Avalos v31    7/15/85  Added -p flag, changed repaint algorithm.
571133e27eSPeter Avalos                 Added kludge for magic cookie terminals.
581133e27eSPeter Avalos v32    7/16/85  Added cat_file if output not a tty.
591133e27eSPeter Avalos v33    7/23/85  Added -e flag and EDITOR.
601133e27eSPeter Avalos v34    7/26/85  Added -s flag.
611133e27eSPeter Avalos v35    7/27/85  Rewrote option handling; added option.c.
621133e27eSPeter Avalos v36    7/29/85  Fixed -e flag to work if not last file.
631133e27eSPeter Avalos v37    8/10/85  Added -x flag.
641133e27eSPeter Avalos v38    8/19/85  Changed prompting; created prompt.c.
651133e27eSPeter Avalos v39    8/24/85  (Not -p) does not initially clear screen.
661133e27eSPeter Avalos v40    8/26/85  Added "skipping" indicator in forw().
671133e27eSPeter Avalos                 Posted to USENET.
681133e27eSPeter Avalos -----------------------------------------------------------------
691133e27eSPeter Avalos v41    9/17/85  ONLY_RETURN, control char commands,
701133e27eSPeter Avalos                 faster search, other minor fixes.
711133e27eSPeter Avalos v42    9/25/85  Added ++ command line syntax;
721133e27eSPeter Avalos                 ch_fsize for pipes.
731133e27eSPeter Avalos v43    10/15/85 Added -h flag, changed prim.c algorithms.
741133e27eSPeter Avalos v44    10/16/85 Made END print in all cases of eof;
751133e27eSPeter Avalos                 ignore SIGTTOU after receiv ing SIGTSTP.
761133e27eSPeter Avalos v45    10/16/85 Never print backspaces unless -u.
771133e27eSPeter Avalos v46    10/24/85 Backwards scroll in jump_loc.
781133e27eSPeter Avalos v47    10/30/85 Fixed bug in edit(): *first_cmd==0
791133e27eSPeter Avalos v48    11/16/85 Use TIOCSETN instead of TIOCSETP.
801133e27eSPeter Avalos                 Added marks (m and ' commands).
811133e27eSPeter Avalos                 Posted to USENET.
821133e27eSPeter Avalos -----------------------------------------------------------------
831133e27eSPeter Avalos v49    1/9/86   Fixed bug: signal didn't clear mcc.
841133e27eSPeter Avalos v50    1/15/86  Added ' (quote) to gomark.
851133e27eSPeter Avalos v51    1/16/86  Added + cmd, fixed problem if first_cmd
861133e27eSPeter Avalos                 fails, made g cmd sort of "work" on pipes
871133e27eSPeter Avalos                 ev en if bof is no longer buffered.
881133e27eSPeter Avalos v52    1/17/86  Made short files work better.
891133e27eSPeter Avalos v53    1/20/86  Added -P option.
901133e27eSPeter Avalos v54    1/20/86  Changed help to use HELPFILE.
911133e27eSPeter Avalos v55    1/23/86  Messages work better if not tty output.
921133e27eSPeter Avalos v56    1/24/86  Added -l option.
931133e27eSPeter Avalos v57    1/31/86  Fixed -l to get confirmation before
941133e27eSPeter Avalos                 ov erwriting an existing file.
951133e27eSPeter Avalos v58    8/28/86  Added filename globbing.
961133e27eSPeter Avalos v59    9/15/86  Fixed some bugs with very long filenames.
971133e27eSPeter Avalos v60    9/26/86  Incorporated changes from Leith (Casey)
981133e27eSPeter Avalos                 Leedom for boldface and -z option.
991133e27eSPeter Avalos v61    9/26/86  Got rid of annoying repaints after ! cmd.
1001133e27eSPeter Avalos                 Posted to USENET.
1011133e27eSPeter Avalos -----------------------------------------------------------------
1021133e27eSPeter Avalos v62    12/23/86 Added is_directory(); change -z default to
1031133e27eSPeter Avalos                 -1 instead of 24; cat-and-exit if -e and
1041133e27eSPeter Avalos                 file is less than a screenful.
1051133e27eSPeter Avalos v63    1/8/87   Fixed bug in cat-and-exit if > 1 file.
1061133e27eSPeter Avalos v64    1/12/87  Changed puts/putstr, putc/putchr,
1071133e27eSPeter Avalos                 getc/getchr to av oid name conflict with
1081133e27eSPeter Avalos                 stdio functions.
1091133e27eSPeter Avalos v65    1/26/87  Allowed '-' command to change NUMBER
1101133e27eSPeter Avalos                 v alued options (thanks to Gary Puckering)
1111133e27eSPeter Avalos v66    2/13/87  Fixed bug: prepaint should use force=1.
1121133e27eSPeter Avalos v67    2/24/87  Added !! and % expansion to ! command.
1131133e27eSPeter Avalos v68    2/25/87  Added SIGWINCH and TIOCGWINSZ support;
1141133e27eSPeter Avalos                 changed is_directory to bad_file.
1151133e27eSPeter Avalos                 (thanks to J. Robert Ward)
1161133e27eSPeter Avalos v69    2/25/87  Added SIGWIND and WIOCGETD (for Unix PC).
1171133e27eSPeter Avalos v70    3/13/87  Changed help cmd from 'h' to 'H'; better
1181133e27eSPeter Avalos                 error msgs in bad_file, errno_message.
1191133e27eSPeter Avalos v71    5/11/87  Changed -p to -c, made triple -c/-C
1201133e27eSPeter Avalos                 for clear-eol like more's -c.
1211133e27eSPeter Avalos v72    6/26/87  Added -E, -L, use $SHELL in lsystem().
1221133e27eSPeter Avalos                 (thanks to Stev e Spearman)
1231133e27eSPeter Avalos v73    6/26/87  Allow Examine "#" for previous file.
1241133e27eSPeter Avalos                 Posted to USENET 8/25/87.
1251133e27eSPeter Avalos -----------------------------------------------------------------
1261133e27eSPeter Avalos v74    9/18/87  Fix conflict in EOF symbol with stdio.h,
1271133e27eSPeter Avalos                 Make os.c more portable to BSD.
1281133e27eSPeter Avalos v75    9/23/87  Fix problems in get_term (thanks to
1291133e27eSPeter Avalos                 Paul Eggert); new backwards scrolling in
1301133e27eSPeter Avalos                 jump_loc (thanks to Marion Hakanson).
1311133e27eSPeter Avalos v76    9/23/87  Added -i flag; allow single "!" to
1321133e27eSPeter Avalos                 inv oke a shell (thanks to Franco Barber).
1331133e27eSPeter Avalos v77    9/24/87  Added -n flag and line number support.
1341133e27eSPeter Avalos v78    9/25/87  Fixed problem with prompts longer than
1351133e27eSPeter Avalos                 the screen width.
1361133e27eSPeter Avalos v79    9/29/87  Added the _ command.
1371133e27eSPeter Avalos v80    10/6/87  Allow signal to break out of linenum scan.
1381133e27eSPeter Avalos v81    10/6/87  Allow -b to be changed from within less.
1391133e27eSPeter Avalos v82    10/7/87  Add cmd_decode to use a table for key
1401133e27eSPeter Avalos                 binding (thanks to Dav id Nason).
1411133e27eSPeter Avalos v83    10/9/87  Allow .less file for user-defined keys.
1421133e27eSPeter Avalos v84    10/11/87 Fix -e/-E problems (thanks to Felix Lee).
1431133e27eSPeter Avalos v85    10/15/87 Search now keeps track of line numbers.
1441133e27eSPeter Avalos v86    10/20/87 Added -B option and autobuf; fixed
1451133e27eSPeter Avalos                 "pipe error" bug.
1461133e27eSPeter Avalos v87    3/1/88   Fix bug re BSD signals while reading file.
1471133e27eSPeter Avalos v88    3/12/88  Use new format for -P option (thanks to
1481133e27eSPeter Avalos                 der Mouse), allow "+-c" without message,
1491133e27eSPeter Avalos                 fix bug re BSD hangup.
1501133e27eSPeter Avalos v89    3/18/88  Turn off line numbers if linenum scan
1511133e27eSPeter Avalos                 is interrupted.
1521133e27eSPeter Avalos v90    3/30/88  Allow -P from within less.
1531133e27eSPeter Avalos v91    3/30/88  Added tags file support (new -t option)
1541133e27eSPeter Avalos                 (thanks to Brian Campbell).
1551133e27eSPeter Avalos v92    4/4/88   Added -+option syntax.
1561133e27eSPeter Avalos v93    4/11/88  Add support for slow input (thanks to
1571133e27eSPeter Avalos                 Joe Orost & apologies for taking almost
1581133e27eSPeter Avalos                 3 years to get this in!)
1591133e27eSPeter Avalos v94    4/11/88  Redo reading/signal stuff.
1601133e27eSPeter Avalos v95    4/20/88  Repaint screen better after signal.
1611133e27eSPeter Avalos v96    4/21/88  Add /! and ?! commands.
1621133e27eSPeter Avalos v97    5/17/88  Allow -l/-L from within less.
1631133e27eSPeter Avalos                 Eliminate some static arrays (use calloc).
1641133e27eSPeter Avalos                 Posted to USENET.
1651133e27eSPeter Avalos -----------------------------------------------------------------
1661133e27eSPeter Avalos v98    10/14/88 Fix incorrect calloc call; uninitialized
1671133e27eSPeter Avalos                 var in exec_mca; core dump on unknown TERM.
1681133e27eSPeter Avalos                 Make v cmd work if past last line of file.
1691133e27eSPeter Avalos                 Fix some signal bugs.
1701133e27eSPeter Avalos v99    10/29/88 Allow space between -X and string,
1711133e27eSPeter Avalos                 when X is a string-valued option.
1721133e27eSPeter Avalos v100   1/5/89   Fix globbing bug when $SHELL not set;
1731133e27eSPeter Avalos                 allow spaces after -t command.
1741133e27eSPeter Avalos v101   1/6/89   Fix problem with long (truncated) lines
1751133e27eSPeter Avalos                 in tags file (thanks to Neil Dixon).
1761133e27eSPeter Avalos v102   1/6/89   Fix bug with E# when no prev file;
1771133e27eSPeter Avalos                 allow spaces after -l command.
1781133e27eSPeter Avalos v103   3/14/89  Add -N, -f and -? options.  Add z and w
1791133e27eSPeter Avalos                 commands.  Add %L for prompt strings.
1801133e27eSPeter Avalos v104   3/16/89  Added EDITPROTO.
1811133e27eSPeter Avalos v105   3/20/89  Fix bug in find_linenum which cached
1821133e27eSPeter Avalos                 incorrectly on long lines.
1831133e27eSPeter Avalos v106   3/31/89  Added -k option and multiple lesskey
1841133e27eSPeter Avalos                 files.
1851133e27eSPeter Avalos v107   4/27/89  Add 8-bit char support and -g option.
1861133e27eSPeter Avalos                 Split option code into 3 files.
1871133e27eSPeter Avalos v108   5/5/89   Allocate position table dynamically
1881133e27eSPeter Avalos                 (thanks to Paul Eggert); change % command
1891133e27eSPeter Avalos                 from "percent" to vi-style brace finder.
1901133e27eSPeter Avalos v109   5/10/89  Added ESC-% command, split prim.c.
1911133e27eSPeter Avalos v110   5/24/89  Fixed bug in + option; fixed repaint bug
1921133e27eSPeter Avalos                 under Sun windows (thanks to Paul Eggert).
1931133e27eSPeter Avalos v111   5/25/89  Generalized # and % expansion; use
1941133e27eSPeter Avalos                 calloc for some error messages.
1951133e27eSPeter Avalos v112   5/30/89  Get rid of ESC-%, add {}()[] commands.
1961133e27eSPeter Avalos v113   5/31/89  Optimize lseeks (thanks to Paul Eggert).
1971133e27eSPeter Avalos v114   7/25/89  Added ESC-/ and ESC-/! commands.
1981133e27eSPeter Avalos v115   7/26/89  Added ESC-n command.
1991133e27eSPeter Avalos v116   7/31/89  Added find_pos to optimize g command.
2001133e27eSPeter Avalos v117   8/1/89   Change -f option to -r.
2011133e27eSPeter Avalos v118   8/2/89   Save positions for all previous files,
2021133e27eSPeter Avalos                 not just the immediately previous one.
2031133e27eSPeter Avalos v119   8/7/89   Save marks across file boundaries.
2041133e27eSPeter Avalos                 Add file handle stuff.
2051133e27eSPeter Avalos v120   8/11/89  Add :ta command.
2061133e27eSPeter Avalos v121   8/16/89  Add -f option.
2071133e27eSPeter Avalos v122   8/30/89  Fix performance with many buffers.
2081133e27eSPeter Avalos v123   8/31/89  Verbose prompts for string options.
2091133e27eSPeter Avalos                 Posted beta to USENET.
2101133e27eSPeter Avalos -----------------------------------------------------------------
2111133e27eSPeter Avalos v124   9/18/89  Reorganize search commands,
2121133e27eSPeter Avalos                 N = rev, ESC-n = span, add ESC-N.
2131133e27eSPeter Avalos v125   9/18/89  Fix tab bug (thanks to Alex Liu).
2141133e27eSPeter Avalos                 Fix EOF bug when both -w and -c.
2151133e27eSPeter Avalos v126   10/25/89 Add -j option.
2161133e27eSPeter Avalos v127   10/27/89 Fix problems with blank lines before BOF.
2171133e27eSPeter Avalos v128   10/27/89 Add %bj, etc. to prompt strings.
2181133e27eSPeter Avalos v129   11/3/89  Add -+,-- commands; add set-option and
2191133e27eSPeter Avalos                 unset-option to lesskey.
2201133e27eSPeter Avalos v130   11/6/89  Generalize A_EXTRA to string, remove
2211133e27eSPeter Avalos                 set-option, unset-option from lesskey.
2221133e27eSPeter Avalos v131   11/7/89  Changed name of EDITPROTO to LESSEDIT.
2231133e27eSPeter Avalos v132   11/8/89  Allow editing of command prefix.
2241133e27eSPeter Avalos v133   11/16/89 Add -y option (thanks to Jeff Sullivan).
2251133e27eSPeter Avalos v134   12/1/89  Glob filenames in the -l command.
2261133e27eSPeter Avalos v135   12/5/89  Combined {}()[] commands into one, and
2271133e27eSPeter Avalos                 added ESC-^F and ESC-^B commands.
2281133e27eSPeter Avalos v136   1/20/90  Added -S, -R flags.  Added | command.
2291133e27eSPeter Avalos                 Added warning for binary files. (thanks
2301133e27eSPeter Avalos                 to Richard Brittain and J. Sullivan).
2311133e27eSPeter Avalos v137   1/21/90  Rewrote horrible pappend code.
2321133e27eSPeter Avalos                 Added * notation for hi-bit chars.
2331133e27eSPeter Avalos v138   1/24/90  Fix magic cookie terminal handling.
2341133e27eSPeter Avalos                 Get rid of "cleanup" loop in ch_get.
2351133e27eSPeter Avalos v139   1/27/90  Added MSDOS support.  (many thanks
2361133e27eSPeter Avalos                 to Richard Brittain).
2371133e27eSPeter Avalos v140   2/7/90   Editing a new file adds it to the
2381133e27eSPeter Avalos                 command line list.
2391133e27eSPeter Avalos v141   2/8/90   Add edit_list for editing >1 file.
2401133e27eSPeter Avalos v142   2/10/90  Add :x command.
2411133e27eSPeter Avalos v143   2/11/90  Add * and @ modifies to search cmds.
2421133e27eSPeter Avalos                 Change ESC-/ cmd from /@* to / *.
2431133e27eSPeter Avalos v144   3/1/90   Messed around with ch_zero;
2441133e27eSPeter Avalos                 no real change.
2451133e27eSPeter Avalos v145   3/2/90   Added -R and -v/-V for MSDOS;
2461133e27eSPeter Avalos                 renamed FILENAME to avoid conflict.
2471133e27eSPeter Avalos v146   3/5/90   Pull cmdbuf functions out of command.c
2481133e27eSPeter Avalos v147   3/7/90   Implement ?@; fix multi-file edit bugs.
2491133e27eSPeter Avalos v148   3/29/90  Fixed bug in :e<file> then :e#.
2501133e27eSPeter Avalos v149   4/3/90   Change error,ierror,query to use PARG.
2511133e27eSPeter Avalos v150   4/6/90   Add LESS_CHARSET, LESS_CHARDEF.
2521133e27eSPeter Avalos v151   4/13/90  Remove -g option; clean up ispipe.
2531133e27eSPeter Avalos v152   4/14/90  lsystem() closes input file, for
2541133e27eSPeter Avalos                 editors which require exclusive open.
2551133e27eSPeter Avalos v153   4/18/90  Fix bug if SHELL unset;
2561133e27eSPeter Avalos                 fix bug in overstrike control char.
2571133e27eSPeter Avalos v154   4/25/90  Output to fd 2 via buffer.
2581133e27eSPeter Avalos v155   4/30/90  Ignore -i if uppercase in pattern
2591133e27eSPeter Avalos                 (thanks to Michael Rendell.)
2601133e27eSPeter Avalos v156   5/3/90   Remove scroll limits in forw() & back();
2611133e27eSPeter Avalos                 causes problems with -c.
2621133e27eSPeter Avalos v157   5/4/90   Forward search starts at next real line
2631133e27eSPeter Avalos                 (not screen line) after jump target.
2641133e27eSPeter Avalos v158   6/14/90  Added F command.
2651133e27eSPeter Avalos v159   7/29/90  Fix bug in exiting: output not flushed.
2661133e27eSPeter Avalos v160   7/29/90  Clear screen before initial output w/ -c.
2671133e27eSPeter Avalos v161   7/29/90  Add -T flag.
2681133e27eSPeter Avalos v162   8/14/90  Fix bug with +F on command line.
2691133e27eSPeter Avalos v163   8/21/90  Added LESSBINFMT variable.
2701133e27eSPeter Avalos v164   9/5/90   Added -p, LINES, COLUMNS and
2711133e27eSPeter Avalos                 unset mark ' == BOF, for 1003.2 D5.
2721133e27eSPeter Avalos v165   9/6/90   At EOF with -c set, don't display empty
2731133e27eSPeter Avalos                 screen when try to page forward.
2741133e27eSPeter Avalos v166   9/6/90   Fix G when final line in file wraps.
2751133e27eSPeter Avalos v167   9/11/90  Translate CR/LF -> LF for 1003.2.
2761133e27eSPeter Avalos v168   9/13/90  Return to curr file if "tag not found".
2771133e27eSPeter Avalos v169   12/12/90 G goes to EOF even if file has grown.
2781133e27eSPeter Avalos v170   1/17/91  Add optimization for BSD _setjmp;
2791133e27eSPeter Avalos                 fix #include ioctl.h TERMIO problem.
2801133e27eSPeter Avalos                 (thanks to Paul Eggert)
2811133e27eSPeter Avalos                 Posted to USENET.
2821133e27eSPeter Avalos -----------------------------------------------------------------
2831133e27eSPeter Avalos v171   3/6/91   Fix -? bug in get_filename.
2841133e27eSPeter Avalos v172   3/15/91  Fix G bug in empty file.
2851133e27eSPeter Avalos                 Fix bug with ?\n and -i and uppercase
2861133e27eSPeter Avalos                 pattern at EOF!
2871133e27eSPeter Avalos                 (thanks to Paul Eggert)
2881133e27eSPeter Avalos v173   3/17/91  Change N cmd to not permanently change
2891133e27eSPeter Avalos                 direction. (thanks to Brian Matthews)
2901133e27eSPeter Avalos v174   3/18/91  Fix bug with namelogfile not getting
2911133e27eSPeter Avalos                 cleared when change files.
2921133e27eSPeter Avalos v175   3/18/91  Fix bug with ++cmd on command line.
2931133e27eSPeter Avalos                 (thanks to Jim Meyering)
2941133e27eSPeter Avalos v176   4/2/91   Change | to not force current screen,
2951133e27eSPeter Avalos                 include marked line, start/end from
2961133e27eSPeter Avalos                 top of screen.  Improve search speed.
2971133e27eSPeter Avalos                 (thanks to Don Mears)
2981133e27eSPeter Avalos v177   4/2/91   Add LESSHELP variable.
2991133e27eSPeter Avalos                 Fix bug with F command with -e.
3001133e27eSPeter Avalos                 Try /dev/tty for input before using fd 2.
3011133e27eSPeter Avalos                 Patches posted to USENET  4/2/91.
3021133e27eSPeter Avalos -----------------------------------------------------------------
3031133e27eSPeter Avalos v178   4/8/91   Fixed bug in globbing logfile name.
3041133e27eSPeter Avalos                 (thanks to Jim Meyering)
3051133e27eSPeter Avalos v179   4/9/91   Allow negative -z for screen-relative.
3061133e27eSPeter Avalos v180   4/9/91   Clear to eos rather than eol if "db";
3071133e27eSPeter Avalos                 don't use "sr" if "da".
3081133e27eSPeter Avalos                 (thanks to Tor Lillqvist)
3091133e27eSPeter Avalos v181   4/18/91  Fixed bug with "negative" chars 80 - FF.
3101133e27eSPeter Avalos                 (thanks to Benny Sander Hofmann)
3111133e27eSPeter Avalos v182   5/16/91  Fixed bug with attribute at EOL.
3121133e27eSPeter Avalos                 (thanks to Brian Matthews)
3131133e27eSPeter Avalos v183   6/1/91   Rewrite linstall to do smart config.
3141133e27eSPeter Avalos v184   7/11/91  Process \b in searches based on -u
3151133e27eSPeter Avalos                 rather than -i.
3161133e27eSPeter Avalos v185   7/11/91  -Pxxx sets short prompt; assume SIGWINCH
3171133e27eSPeter Avalos                 after a SIGSTOP. (thanks to Ken Laprade)
3181133e27eSPeter Avalos -----------------------------------------------------------------
3191133e27eSPeter Avalos v186   4/20/92  Port to MS-DOS (Microsoft C).
3201133e27eSPeter Avalos v187   4/23/92  Added -D option & TAB_COMPLETE_FILENAME.
3211133e27eSPeter Avalos v188   4/28/92  Added command line editing features.
3221133e27eSPeter Avalos v189   12/8/92  Fix mem overrun in anscreen.c:init;
3231133e27eSPeter Avalos                 fix edit_list to recover from bin file.
3241133e27eSPeter Avalos v190   2/13/93  Make TAB enter one filename at a time;
3251133e27eSPeter Avalos                 create ^L with old TAB functionality.
3261133e27eSPeter Avalos v191   3/10/93  Defer creating "flash" page for MS-DOS.
3271133e27eSPeter Avalos v192   9/6/93   Add BACK-TAB.
3281133e27eSPeter Avalos v193   9/17/93  Simplify binary_file handling.
3291133e27eSPeter Avalos v194   1/4/94   Add rudiments of alt_filename handling.
3301133e27eSPeter Avalos v195   1/11/94  Port back to Unix; support keypad.
3311133e27eSPeter Avalos -----------------------------------------------------------------
3321133e27eSPeter Avalos v196   6/7/94   Fix bug with bad filename; fix IFILE
3331133e27eSPeter Avalos                 type problem. (thanks to David MacKenzie)
3341133e27eSPeter Avalos v197   6/7/94   Fix bug with .less tables inserted wrong.
3351133e27eSPeter Avalos v198   6/23/94  Use autoconf installation technology.
3361133e27eSPeter Avalos                 (thanks to David MacKenzie)
3371133e27eSPeter Avalos v199   6/29/94  Fix MS-DOS build (thanks to Tim Wiegman).
3381133e27eSPeter Avalos v200   7/25/94  Clean up copyright, minor fixes.
3391133e27eSPeter Avalos         Posted to prep.ai.mit.edu
3401133e27eSPeter Avalos -----------------------------------------------------------------
3411133e27eSPeter Avalos v201   7/27/94  Check for no memcpy; add casts to calloc;
3421133e27eSPeter Avalos                 look for regcmp in libgen.a.
3431133e27eSPeter Avalos                 (thanks to Kaveh Ghazi).
3441133e27eSPeter Avalos v202   7/28/94  Fix bug in edit_next/edit_prev with
345e639dc31SJohn Marino                 non-existent files.
3461133e27eSPeter Avalos v203   8/2/94   Fix a variety of configuration bugs on
3471133e27eSPeter Avalos                 various systems. (thanks to Sakai
3481133e27eSPeter Avalos                 Kiyotaka, Harald Koenig, Bjorn Brox,
3491133e27eSPeter Avalos                 Teemu Rantanen, and Thorsten Lockert)
3501133e27eSPeter Avalos v204   8/3/94   Use strerror if available.
3511133e27eSPeter Avalos                 (thanks to J.T. Conklin)
3521133e27eSPeter Avalos v205   8/5/94   Fix bug in finding "me" termcap entry.
3531133e27eSPeter Avalos                 (thanks to Andreas Stolcke)
3541133e27eSPeter Avalos 8/10/94         v205+: Change BUFSIZ to LBUFSIZE to avoid name
3551133e27eSPeter Avalos                 conflict with stdio.h.
3561133e27eSPeter Avalos                 Posted to prep.ai.mit.edu
3571133e27eSPeter Avalos -----------------------------------------------------------------
3581133e27eSPeter Avalos v206   8/10/94  Use initial_scrpos for -t to avoid
3591133e27eSPeter Avalos                 displaying first page before init().
3601133e27eSPeter Avalos                 (thanks to Dominique Petitpierre)
3611133e27eSPeter Avalos v207   8/12/94  Fix bug if stdout is not tty.
3621133e27eSPeter Avalos v208   8/16/94  Fix bug in close_altfile if goto err1
3631133e27eSPeter Avalos                 in edit_ifile. (Thanks to M.J. Hewitt)
3641133e27eSPeter Avalos v209   8/16/94  Change scroll to wscroll to avoid
3651133e27eSPeter Avalos                 conflict with library function.
3661133e27eSPeter Avalos v210   8/16/94  Fix bug with bold on 8 bit chars.
3671133e27eSPeter Avalos                 (thanks to Vitor Duarte)
3681133e27eSPeter Avalos v211   8/16/94  Don't quit on EOI in jump_loc / forw.
3691133e27eSPeter Avalos v212   8/18/94  Use time_t if available.
3701133e27eSPeter Avalos v213   8/20/94  Allow ospeed to be defined in termcap.h.
3711133e27eSPeter Avalos v214   8/20/94  Added HILITE_SEARCH, -F, ESC-u cmd.
3721133e27eSPeter Avalos                 (thanks to Paul Lew and Bob Byrnes)
3731133e27eSPeter Avalos v215   8/23/94  Fix -i toggle behavior.
3741133e27eSPeter Avalos v216   8/23/94  Process BS in all searches, not only -u.
3751133e27eSPeter Avalos v217   8/24/94  Added -X flag.
3761133e27eSPeter Avalos v218   8/24/94  Reimplement undo_search.
3771133e27eSPeter Avalos v219   8/24/94  Find tags marked with line number
3781133e27eSPeter Avalos                 instead of pattern.
3791133e27eSPeter Avalos v220   8/24/94  Stay at same position after SIG_WINCH.
3801133e27eSPeter Avalos v221   8/24/94  Fix bug in file percentage in big file.
3811133e27eSPeter Avalos v222   8/25/94  Do better if can't reopen current file.
3821133e27eSPeter Avalos v223   8/27/94  Support setlocale.
3831133e27eSPeter Avalos                 (thanks to Robert Joop)
3841133e27eSPeter Avalos v224   8/29/94  Revert v216: process BS in search
3851133e27eSPeter Avalos                 only if -u.
3861133e27eSPeter Avalos v225   9/6/94   Rewrite undo_search again: toggle.
3871133e27eSPeter Avalos v226   9/15/94  Configuration fixes.
3881133e27eSPeter Avalos                 (thanks to David MacKenzie)
3891133e27eSPeter Avalos v227   9/19/94  Fixed strerror config problem.
3901133e27eSPeter Avalos                 Posted to prep.ai.mit.edu
3911133e27eSPeter Avalos -----------------------------------------------------------------
3921133e27eSPeter Avalos v228   9/21/94  Fix bug in signals: repeated calls to
3931133e27eSPeter Avalos                 get_editkeys overflowed st_edittable.
3941133e27eSPeter Avalos v229   9/21/94  Fix "Nothing to search" error if -a
3951133e27eSPeter Avalos                 and SRCH_PAST_EOF.
3961133e27eSPeter Avalos v230   9/21/94  Don't print extra error msg in search
3971133e27eSPeter Avalos                 after regerror().
3981133e27eSPeter Avalos v231   9/22/94  Fix hilite bug if search matches 0 chars.
3991133e27eSPeter Avalos                 (thanks to John Polstra)
4001133e27eSPeter Avalos v232   9/23/94  Deal with weird systems that have
4011133e27eSPeter Avalos                 termios.h but not tcgetattr().
4021133e27eSPeter Avalos                 Posted to prep.ai.mit.edu
4031133e27eSPeter Avalos -----------------------------------------------------------------
4041133e27eSPeter Avalos v233   9/26/94  Use get_term() instead of pos_init() in
4051133e27eSPeter Avalos                 psignals to re-get lower_left termcap.
4061133e27eSPeter Avalos                 (Thanks to John Malecki)
4071133e27eSPeter Avalos v234   9/26/94  Make MIDDLE closer to middle of screen.
4081133e27eSPeter Avalos v235   9/27/94  Use local strchr if system doesn't have.
4091133e27eSPeter Avalos v236   9/28/94  Don't use libucb; use libterm if
4101133e27eSPeter Avalos                 libtermcap & libcurses doesn't work.
4111133e27eSPeter Avalos                 (Fix for Solaris; thanks to Frank Kaefer)
4121133e27eSPeter Avalos v237   9/30/94  Use system isupper() etc if provided.
4131133e27eSPeter Avalos                 Posted to prep.ai.mit.edu
4141133e27eSPeter Avalos -----------------------------------------------------------------
4151133e27eSPeter Avalos v238   10/6/94  Make binary non-blinking if LESSBINFMT
4161133e27eSPeter Avalos                 is set to a string without a *.
4171133e27eSPeter Avalos v239   10/7/94  Don't let delimit_word run back past
4181133e27eSPeter Avalos                 beginning of cmdbuf.
4191133e27eSPeter Avalos v240   10/10/94 Don't write into termcap buffer.
4201133e27eSPeter Avalos                 (Thanks to Benoit Speckel)
4211133e27eSPeter Avalos v241   10/13/94 New lesskey file format.
4221133e27eSPeter Avalos                 Don't expand filenames in search command.
4231133e27eSPeter Avalos v242   10/14/94 Allow lesskey specification of "literal".
4241133e27eSPeter Avalos v243   10/14/94 Add #stop command to lesskey.
4251133e27eSPeter Avalos v244   10/16/94 Add -f flag to lesskey.
4261133e27eSPeter Avalos v245   10/25/94 Allow TAB_COMPLETE_FILENAME to be undefd.
4271133e27eSPeter Avalos v246   10/27/94 Move help file to /usr/local/share.
4281133e27eSPeter Avalos v247   10/27/94 Add -V option.
4291133e27eSPeter Avalos v248   11/5/94  Add -V option to lesskey.
4301133e27eSPeter Avalos v249   11/5/94  Remove -f flag from lesskey; default
4311133e27eSPeter Avalos                 input file is ~/.lesskey.in, not stdin.
4321133e27eSPeter Avalos v250   11/7/94  Lesskey input file "-" means stdin.
4331133e27eSPeter Avalos v251   11/9/94  Convert cfgetospeed result to ospeed.
4341133e27eSPeter Avalos                 (Thanks to Andrew Chernov)
4351133e27eSPeter Avalos v252   11/16/94 Change default lesskey input file from
4361133e27eSPeter Avalos                 .lesskey.in to .lesskey.
4371133e27eSPeter Avalos                 Posted to prep.ai.mit.edu
4381133e27eSPeter Avalos -----------------------------------------------------------------
4391133e27eSPeter Avalos v253   11/21/94 Fix bug when tags file has a backslash.
4401133e27eSPeter Avalos v254   12/6/94  Fix -k option.
4411133e27eSPeter Avalos v255   12/8/94  Add #define EXAMINE to disable :e etc.
4421133e27eSPeter Avalos v256   12/10/94 Change highlighting: only highlite search
4431133e27eSPeter Avalos                 results (but now it is reliable).
4441133e27eSPeter Avalos v257   12/10/94 Add goto_line and repaint_highlight
4451133e27eSPeter Avalos                 to optimize highlight repaints.
4461133e27eSPeter Avalos v258   12/12/94 Fixup in hilite_line if BS_SPECIAL.
4471133e27eSPeter Avalos v259   12/12/94 Convert to autoconf 2.0.
4481133e27eSPeter Avalos v260   12/13/94 Add SECURE define.
4491133e27eSPeter Avalos v261   12/14/94 Use system WERASE char as EC_W_BACKSPACE.
4501133e27eSPeter Avalos v262   12/16/94 Add -g/-G flag and screen_hilite.
4511133e27eSPeter Avalos v263   12/20/94 Reimplement/optimize -G flag behavior.
4521133e27eSPeter Avalos v264   12/23/94 Allow EXTRA string after line-edit cmd
4531133e27eSPeter Avalos                 in lesskey file.
4541133e27eSPeter Avalos v265   12/24/94 Add LESSOPEN=|cmd syntax.
4551133e27eSPeter Avalos v266   12/26/94 Add -I flag.
4561133e27eSPeter Avalos v267   12/28/94 Formalize the four-byte header emitted
4571133e27eSPeter Avalos                 by a LESSOPEN pipe.
4581133e27eSPeter Avalos v268   12/28/94 Get rid of four-byte header.
4591133e27eSPeter Avalos v269   1/2/95   Close alt file before open new one.
4601133e27eSPeter Avalos                 Avoids multiple popen().
4611133e27eSPeter Avalos v270   1/3/95   Use VISUAL; use S_ISDIR/S_ISREG; fix
4621133e27eSPeter Avalos                 config problem with Solaris POSIX regcomp.
4631133e27eSPeter Avalos v271   1/4/95   Don't quit on read error.
4641133e27eSPeter Avalos v272   1/5/95   Get rid of -L.
4651133e27eSPeter Avalos v273   1/6/95   Fix ch_ungetchar bug; don't call
4661133e27eSPeter Avalos                 LESSOPEN on a pipe.
4671133e27eSPeter Avalos v274   1/6/95   Ported to OS/2 (thanks to Kai Uwe Rommel)
4681133e27eSPeter Avalos v275   1/18/95  Fix bug if toggle -G at EOF.
4691133e27eSPeter Avalos v276   1/30/95  Fix OS/2 version.
4701133e27eSPeter Avalos v277   1/31/95  Add "next" charset; don't display ^X
4711133e27eSPeter Avalos                 for X > 128.
4721133e27eSPeter Avalos v278   2/14/95  Change default for -G.
4731133e27eSPeter Avalos                 Posted to prep.ai.mit.edu
4741133e27eSPeter Avalos -----------------------------------------------------------------
4751133e27eSPeter Avalos v279   2/22/95  Add GNU options --help, --version.
4761133e27eSPeter Avalos                 Minor config fixes.
4771133e27eSPeter Avalos v280   2/24/95  Clean up calls to glob(); don't set #
4781133e27eSPeter Avalos                 if we can't open the new file.
4791133e27eSPeter Avalos v281   2/24/95  Repeat search should turn on hilites.
4801133e27eSPeter Avalos v282   3/2/95   Minor fixes.
4811133e27eSPeter Avalos v283   3/2/95   Fix homefile; make OS2 look in $HOME.
4821133e27eSPeter Avalos v284   3/2/95   Error if "v" on LESSOPENed file;
4831133e27eSPeter Avalos                 "%" figures out file size on pipe.
4841133e27eSPeter Avalos v285   3/7/95   Don't set # in lsystem;
4851133e27eSPeter Avalos                 lesskey try $HOME first.
4861133e27eSPeter Avalos v286   3/7/95   Reformat change history (too much free time?).
4871133e27eSPeter Avalos v287   3/8/95   Fix hilite bug if overstrike multiple chars.
4881133e27eSPeter Avalos v288   3/8/95   Allow lesskey to override get_editkey keys.
4891133e27eSPeter Avalos v289   3/9/95   Fix adj_hilite bug when line gets processed by
4901133e27eSPeter Avalos                 hilite_line more than once.
4911133e27eSPeter Avalos v290   3/9/95   Make configure automatically.  Fix Sequent problem
4921133e27eSPeter Avalos                 with incompatible sigsetmask().
4931133e27eSPeter Avalos                 Posted to prep.ai.mit.edu
4941133e27eSPeter Avalos -----------------------------------------------------------------
4951133e27eSPeter Avalos v291   3/21/95  Add #env to lesskey.  Fix MS-DOS build.
4961133e27eSPeter Avalos                 Posted to simtel.
4971133e27eSPeter Avalos -----------------------------------------------------------------
4981133e27eSPeter Avalos v292   4/24/95  Add MS-DOS support for Borland C.
4991133e27eSPeter Avalos                 Fix arrow keys in MS-DOS versions.
5001133e27eSPeter Avalos v293   4/28/95  Add auto-versioning stuff to make dist.
5011133e27eSPeter Avalos v294   5/12/95  Fix Borland build.
5021133e27eSPeter Avalos v295   1/20/96  Fix search on squished file; add /@@.
5031133e27eSPeter Avalos v296   1/23/96  Allow cmdbuf larger than screen width.
5041133e27eSPeter Avalos v297   1/24/96  Don't call termcap if tgetent fails;
5051133e27eSPeter Avalos                 add #defines for buffers.
5061133e27eSPeter Avalos v298   1/24/96  Change @@ to ^K.
5071133e27eSPeter Avalos                 Add alternate search modifiers ^N, ^F, ^E.
5081133e27eSPeter Avalos v299   1/25/96  Fix percent overflow in jump_percent (thanks to Brent Wiese);
5091133e27eSPeter Avalos                 don't send "ti" after shell command till RETURN pressed.
5101133e27eSPeter Avalos v300   1/25/96  Change -U to print tabs as ^I.
5111133e27eSPeter Avalos v301   1/30/96  Make hilites work in cmd F output.
5121133e27eSPeter Avalos v302   1/31/96  Fix cmd F to notice window-change signals.
5131133e27eSPeter Avalos v303   1/31/96  Add ESC-SPACE command.
5141133e27eSPeter Avalos v304   2/1/96   Add ^R search modifier; add LESSSECURE.
5151133e27eSPeter Avalos v305   2/2/96   Workaround Linux /proc kernel bug; add LESSKEY.
5161133e27eSPeter Avalos v306   3/16/96  Minor fixes.
5171133e27eSPeter Avalos v307   3/25/96  Allow cmd line arg "--"; fix DOS & OS/2 defines.h.
5181133e27eSPeter Avalos v308   4/4/96   Port to OS-9 (thanks to Boisy Pitre); fix -d.
5191133e27eSPeter Avalos v309   4/9/96   Fix OS-9 version; fix tags bug with "$".
5201133e27eSPeter Avalos v310   4/10/96  Get rid of HELPFILE.
5211133e27eSPeter Avalos v311   4/22/96  Add Windows32 support; merge doscreen.c into screen.c.
5221133e27eSPeter Avalos v312   4/24/96  Don't quit after "cannot reopen" error.
5231133e27eSPeter Avalos v313   4/25/96  Added horizontal scrolling.
5241133e27eSPeter Avalos v314   4/26/96  Modified -e to quit on reaching end of a squished file.
5251133e27eSPeter Avalos v315   4/26/96  Fix "!;TAB" bug.
5261133e27eSPeter Avalos v316   5/2/96   Make "|a" when (a < curr screen) go to end of curr screen.
5271133e27eSPeter Avalos v317   5/14/96  Various fixes for the MS-DOS and OS/2 builds.
5281133e27eSPeter Avalos                 Added ## and %% handling for filenames
5291133e27eSPeter Avalos v318   5/29/96  Port to OS-9 Microware compiler; minor fixes
5301133e27eSPeter Avalos                 (thanks to Martin Gregorie).
5311133e27eSPeter Avalos v319   7/8/96   Fix Windows port (thanks to Jeff Paquette).
5321133e27eSPeter Avalos v320   7/11/96  Final fixes for Windows port.
5331133e27eSPeter Avalos v321   7/18/96  Minor fixes.
5341133e27eSPeter Avalos                 Posted to Web page.
5351133e27eSPeter Avalos -----------------------------------------------------------------
5361133e27eSPeter Avalos v322   8/13/96  Fix bug in shell escape from help file; add support for
5371133e27eSPeter Avalos                 Microsoft Visual C under Windows; numerous small fixes.
5381133e27eSPeter Avalos v323   8/19/96  Fixes for Windows version (thanks to Simon Munton);
5391133e27eSPeter Avalos                 fix for Linux library weirdness (thanks to Jim Diamond);
5401133e27eSPeter Avalos                 port to DJGPP (thanks to Eli Zaretskii).
5411133e27eSPeter Avalos v324   8/21/96  Add support for spaces in filenames (thanks to Simon Munton).
5421133e27eSPeter Avalos v325   8/21/96  Add lessecho, for spaces in filenames under Unix.
5431133e27eSPeter Avalos v326   8/27/96  Fix DJGPP version.
5441133e27eSPeter Avalos v327   9/1/96   Reorganize lglob, make spaces in filenames work better in Unix.
5451133e27eSPeter Avalos v328   10/7/96  Append / to directory name in filename completion.
5461133e27eSPeter Avalos                 Fix MS-DOS and OS-9 versions.
5471133e27eSPeter Avalos v329   10/11/96 Fix more MS-DOS bugs; add LESSSEPARATOR; add -" option.
5481133e27eSPeter Avalos                 Add LESSMETACHARS, LESSMETAESCAPE.
5491133e27eSPeter Avalos v330   10/21/96 Minor fixes.
5501133e27eSPeter Avalos                 Posted to Web page.
5511133e27eSPeter Avalos -----------------------------------------------------------------
5521133e27eSPeter Avalos v331   4/22/97  Various Windows fixes (thanks to Gurusamy Sarathy).
5531133e27eSPeter Avalos v332   4/22/97  Enter filenames from cmd line into edit history.
5541133e27eSPeter Avalos                 Posted to Web page.
5551133e27eSPeter Avalos -----------------------------------------------------------------
5561133e27eSPeter Avalos v333    3/4/99  Changed -w to highlite new line after forward movement.
5571133e27eSPeter Avalos v334    3/9/99  Avoid overflowing prompt buffer; add %d and %D.
5581133e27eSPeter Avalos v335   3/20/99  Add EBCDIC support (thanks to Thomas Dorner).
5591133e27eSPeter Avalos                 Use HOMEDRIVE/HOMEPATH on Windows (thanks to Preston Bannister).
5601133e27eSPeter Avalos                 Posted to Web page.
5611133e27eSPeter Avalos -----------------------------------------------------------------
5621133e27eSPeter Avalos v336    4/8/99  Fix installation bugs.
5631133e27eSPeter Avalos v337    4/9/99  Fix another installation bug.
5641133e27eSPeter Avalos                 Posted to Web page.
5651133e27eSPeter Avalos -----------------------------------------------------------------
5661133e27eSPeter Avalos v338   4/13/99  Add support for long option names.
5671133e27eSPeter Avalos v339   4/18/99  Add \k, long option names to lesskey.  Add -^P.  Add :d.
5681133e27eSPeter Avalos v340   4/21/99  Add regexec2.  Fix Windows build.
5691133e27eSPeter Avalos                 Posted to Web page.
5701133e27eSPeter Avalos -----------------------------------------------------------------
5711133e27eSPeter Avalos v341    5/6/99  Add -F option; %c & ?c prompt escapes.
5721133e27eSPeter Avalos                 (Thanks to Michele Maltoni)
5731133e27eSPeter Avalos v342   7/22/99  Add system-wide lesskey file; allow GPL or Less License.
5741133e27eSPeter Avalos v343   9/23/99  Support UTF-8 (Thanks to Robert Brady).
5751133e27eSPeter Avalos                 Add %P and ?P in prompts.
5761133e27eSPeter Avalos v344  10/27/99  -w highlights target line of g and p commands.
5771133e27eSPeter Avalos v345  10/29/99  Make -R pass thru ESC but not other control chars.
5781133e27eSPeter Avalos                 Posted to Web page.
5791133e27eSPeter Avalos -----------------------------------------------------------------
5801133e27eSPeter Avalos v346   11/4/99  Fix bugs in long option processing; R cmd should clear hilites.
5811133e27eSPeter Avalos                 Posted to Web page.
5821133e27eSPeter Avalos -----------------------------------------------------------------
5831133e27eSPeter Avalos v347  12/13/99  Fixes for DJGPP version (thanks to Eli Zaretskii).
5841133e27eSPeter Avalos v348  12/28/99  Fix deleting file with marks (thanks to Dimitar Jekov).
5851133e27eSPeter Avalos                 Fix color problem in DJGPP version (thanks to Eli Zaretskii).
5861133e27eSPeter Avalos v349   1/24/00  Fix minor DJGPP bugs; check environment vars for UTF-8;
5871133e27eSPeter Avalos                 add --with-editor (thanks to Eli, Markus Kuhn, Thomas Schoepf).
5881133e27eSPeter Avalos v350   3/1/00   Fix clear-while-standout bug.
5891133e27eSPeter Avalos v351   3/5/00   Change -M and = prompts to show top & bottom line number.
5901133e27eSPeter Avalos                 Posted to Web page.
5911133e27eSPeter Avalos -----------------------------------------------------------------
5921133e27eSPeter Avalos v352   3/8/00   Fix scan_option NULL dereference.
5931133e27eSPeter Avalos -----------------------------------------------------------------
5941133e27eSPeter Avalos v353   3/20/00  Fix SECURE compile bug, allow space after numeric option.
5951133e27eSPeter Avalos v354   3/23/00  Add support for PCRE; add --with-regex configure option.
5961133e27eSPeter Avalos -----------------------------------------------------------------
5971133e27eSPeter Avalos v355   6/28/00  Add -# option (thanks to Andy Levinson).
5981133e27eSPeter Avalos v356   7/5/00   Add -J option.
5991133e27eSPeter Avalos v357   7/6/00   Support sigprocmask.
6001133e27eSPeter Avalos -----------------------------------------------------------------
6011133e27eSPeter Avalos v358   7/8/00   Fix problems with #stop in lesskey file.
6021133e27eSPeter Avalos                 Posted to Web page.
6031133e27eSPeter Avalos -----------------------------------------------------------------
6041133e27eSPeter Avalos v359  9/10/00   Fixes for Win32 display problems (thanks to Maurizio Vairani).
6051133e27eSPeter Avalos v360  1/17/01   Move sysless to etc.
6061133e27eSPeter Avalos v361  12/4/01   Add IBM-1047 charset & EBCDIC fixes (thanks to Thomas Dorner).
6071133e27eSPeter Avalos                 Fix 32 bit dependencies (thanks to Paul Eggert).
6081133e27eSPeter Avalos                 Fix UTF-8 overstriking (thanks to Robert Brady).
6091133e27eSPeter Avalos v362  12/4/01   Make status column show search targets.
6101133e27eSPeter Avalos v363  12/6/01   Add --no-keypad option.
6111133e27eSPeter Avalos                 Add variable width tabstops (thanks to Peter Samuelson).
6121133e27eSPeter Avalos v364 12/10/01   Better handling of very long lines in input;
6131133e27eSPeter Avalos                 Fix horizontal shifting of colored text.
6141133e27eSPeter Avalos v365 12/11/01   Fix overstriking of tabs;
6151133e27eSPeter Avalos                 Add support for global(1) and multiple tag matches
6161133e27eSPeter Avalos                 (thanks to Shigio Yamaguchi and Tim Vanderhoek).
6171133e27eSPeter Avalos v366 12/11/01   Fixes for OS/2 (thanks to Kyosuke Tokoro).
6181133e27eSPeter Avalos v367 12/13/01   Allow -D and -x options to terminate without dollar sign;
6191133e27eSPeter Avalos                 Right/left arrow when entering N are shift cmds, not line edit.
6201133e27eSPeter Avalos v368 12/18/01   Update lesskey commands.
6211133e27eSPeter Avalos v370 12/23/01   Fix tags error messages.
6221133e27eSPeter Avalos                 Posted to Web page.
6231133e27eSPeter Avalos -----------------------------------------------------------------
6241133e27eSPeter Avalos v371 12/26/01   Fix new_file bug; use popen in Windows version;
6251133e27eSPeter Avalos                 fix some compiler warnings.
6261133e27eSPeter Avalos v372 12/29/01   Make -b be in units of 1K.
6271133e27eSPeter Avalos v373  1/14/02   Improve handling of filenames containing shell metachars.
6281133e27eSPeter Avalos v374   2/7/02   Fix memory leak; fix bug in -x argument parsing.
6291133e27eSPeter Avalos v375   4/7/02   Fix searching for SGR sequences; fix SECURE build;
6301133e27eSPeter Avalos                 add SGR support to DJGPP version (thanks to Eli Zaretskii).
631*e433da38SAaron LI v376  6/10/02   Fix bug in overstriking multibyte UTF-8 characters
6321133e27eSPeter Avalos                 (thanks to Jungshik Shin).
6331133e27eSPeter Avalos                 Posted to Web page.
6341133e27eSPeter Avalos -----------------------------------------------------------------
6351133e27eSPeter Avalos v377  9/10/02   Fix bug in Windows version when file contains CR;
6361133e27eSPeter Avalos                 fix bug in search highlights with -R;
6371133e27eSPeter Avalos                 make initial buffer limit really be 64K not unlimited.
6381133e27eSPeter Avalos v378  9/30/02   Misc bug fixes and compiler warning cleanup.
6391133e27eSPeter Avalos                 Posted to Web page.
6401133e27eSPeter Avalos -----------------------------------------------------------------
6411133e27eSPeter Avalos v379 11/23/02   Add -L option; fix bug with ctrl-K in lesskey files;
6421133e27eSPeter Avalos                 improve UTF-8 overstriking and underscore overstriking;
6431133e27eSPeter Avalos                 fix minor man page problems; change to autoconf 2.54.
6441133e27eSPeter Avalos v380 11/24/02   Make LINENUM same as POSITION.
6451133e27eSPeter Avalos v381 11/28/02   Make -N use 7 columns for line number if possible.
6461133e27eSPeter Avalos -----------------------------------------------------------------
6471133e27eSPeter Avalos v382   2/3/04   Remove copyrighted code.
6481133e27eSPeter Avalos -----------------------------------------------------------------
6491133e27eSPeter Avalos v383  2/16/04   Add history file; add -K option; improve UTF-8 handling;
6501133e27eSPeter Avalos                 fix some signed char bugs (thanks to Christian Biere);
6511133e27eSPeter Avalos                 fix some upper/lower case bugs (thanks to Bjoern Jacke);
6521133e27eSPeter Avalos                 add erase2 char (thanks to David Lawrence);
6531133e27eSPeter Avalos                 add windows charset (thanks to Dimitar Zhekov).
6541133e27eSPeter Avalos v384  2/20/04   Improvements in UTF-8 handling.
6551133e27eSPeter Avalos v385  2/23/04   Fix UTF-8 output bug.
6561133e27eSPeter Avalos -----------------------------------------------------------------
6571133e27eSPeter Avalos v386  9/13/05   Improvements to UTF-8 shift & color (thanks to Charles Levert);
6581133e27eSPeter Avalos                 protect against invalid LESSOPEN and LESSCLOSE values.
6591133e27eSPeter Avalos v387  9/14/05   Update Charles Levert's UTF-8 patch.
6601133e27eSPeter Avalos v388  9/14/05   Change history behavior; change most sprintf calls to snprintf.
6611133e27eSPeter Avalos v389  9/14/05   Fix copy & paste with long lines; improve performance of
6621133e27eSPeter Avalos                 expand_linebuf; fix crash in init_mlist;
6631133e27eSPeter Avalos v390  9/15/05   Show search matches in status column even if -G is set.
6641133e27eSPeter Avalos -----------------------------------------------------------------
6651133e27eSPeter Avalos v391  9/17/05   Fix bugs.
6661133e27eSPeter Avalos v392  10/14/05  Fix line wrapping bug.
6671133e27eSPeter Avalos v393  10/19/05  Allow multiple attributes per char; fix bold+underline bug
6681133e27eSPeter Avalos                 (thanks again to Charles Levert).
6691133e27eSPeter Avalos v394  11/8/05   Fix prompt bug; fix compile problem in Windows build.
6701133e27eSPeter Avalos -----------------------------------------------------------------
6711133e27eSPeter Avalos v395  1/12/07   Update Unicode tables (thanks to Charles Levert);
6721133e27eSPeter Avalos                 don't chmod if LESSHISTFILE = /dev/null;
6731133e27eSPeter Avalos                 make -f work for directories; support DESTDIR in Makefile;
6741133e27eSPeter Avalos                 fix sigset_t detection in configure;
6751133e27eSPeter Avalos                 make "t" cmd traverse tags in correct order
6761133e27eSPeter Avalos v396  1/13/07   Add compatibility with POSIX more.
6771133e27eSPeter Avalos v397  3/21/07   Allow decimal point in number for % command;
6781133e27eSPeter Avalos                 Allow decimal point in number for -j option;
6791133e27eSPeter Avalos                 Allow n command to fetch last search pattern from history
6801133e27eSPeter Avalos                 (thanks to arno).
6811133e27eSPeter Avalos v398  3/22/07   Don't rewrite history file if not necessary;
6821133e27eSPeter Avalos                 fix bug when filenames contain "$".
6831133e27eSPeter Avalos v399  3/22/07   Don't move to bottom of screen at startup;
6841133e27eSPeter Avalos                 don't output extraneous newlines.
6851133e27eSPeter Avalos v400  3/23/07   Allow search to find pattern after null byte (PCRE and no-regex)
6861133e27eSPeter Avalos                 (thanks to Michael Constant).
6871133e27eSPeter Avalos -----------------------------------------------------------------
6881133e27eSPeter Avalos v401  3/24/07   Minor documentation fixes.
6891133e27eSPeter Avalos v402  3/30/07   Fix autoconf bug when memcpy etc are inline;
6901133e27eSPeter Avalos                 fix bug in terminating number following -j option.
6911133e27eSPeter Avalos v403  5/25/07   Fix Windows build.
6921133e27eSPeter Avalos v404  6/5/07    Fix display bug with F command and long lines.
6931133e27eSPeter Avalos v405  6/17/07   Fix display bug when using -w option.
6941133e27eSPeter Avalos v406  6/17/07   Fix secure build.
6951133e27eSPeter Avalos v407  8/16/07   Fix bugs; support CSI chars.
6961133e27eSPeter Avalos v408  10/1/07   Fix bug in -i with non-ASCII chars.
6971133e27eSPeter Avalos v409  10/12/07  Fix crash when viewing text with invalid UTF-8 sequences.
6981133e27eSPeter Avalos v411  11/6/07   Fix case-insensitive searching with non-ASCII text.
6991133e27eSPeter Avalos v412  11/6/07   Use symbolic SEEK constants.
7001133e27eSPeter Avalos v413  11/6/07   Fix search highlight bug with non-ASCII text.
7011133e27eSPeter Avalos v414  11/6/07   Fix display bug with no-wrap terminals.
7021133e27eSPeter Avalos v415  11/14/07  Add --follow-name option.
7031133e27eSPeter Avalos v416  11/22/07  Fix crash when searching text with invalid UTF-8 sequences.
7041133e27eSPeter Avalos v417  12/31/07  Don't support single-char CSI in UTF-8 mode;
7051133e27eSPeter Avalos                 fix bug with -R and invalid CSI sequences;
7061133e27eSPeter Avalos                 fix bug searching text with SGR sequences with -r;
7071133e27eSPeter Avalos                 emulate SGR sequences in WIN32 build.
7081133e27eSPeter Avalos v418  12/31/07  Clean up.
7098be36e5bSPeter Avalos -----------------------------------------------------------------
7108be36e5bSPeter Avalos v419  1/16/08   Make CSI char 0x9B work in UTF-8 mode (thanks to Colin Watson).
7118be36e5bSPeter Avalos v420  2/24/08   Add & command; fix -F option; fix '' after G.
7128be36e5bSPeter Avalos v421  2/24/08   Ignore filtered lines when searching.
7138be36e5bSPeter Avalos v422  3/2/08    Output CR at startup.
7148be36e5bSPeter Avalos v423  5/27/08   Clean up.
7158be36e5bSPeter Avalos v424  6/16/08   Fix compile bug with pcre; don't filter help file.
7168be36e5bSPeter Avalos v425  7/14/08   Fix non-ANSI code in list handling in ch.c.
7178be36e5bSPeter Avalos v426  10/27/08  Fix ignaw terminal handling (thanks to Per Hedeland);
7188be36e5bSPeter Avalos                 fix binary file detection in UTF-8 mode.
7198be36e5bSPeter Avalos v427  3/16/09   A few Win32 fixes (thanks to Jason Hood).
7208be36e5bSPeter Avalos v428  3/30/09   Add "|-" syntax to LESSOPEN.
7218be36e5bSPeter Avalos v429  4/10/09   Fix search highlighting bug with underlined text.
722a9adbba3SJan Lentfer -----------------------------------------------------------------
723a9adbba3SJan Lentfer v430  4/22/09   Don't pass "-" to non-pipe LESSOPEN unless it starts with "-".
724a9adbba3SJan Lentfer v431  4/29/09   Fix highlight bug when match is at end of line.
725a9adbba3SJan Lentfer v432  6/27/09   Better fix for highlight bugs;
726a9adbba3SJan Lentfer                 fix new problems with ignaw terminals.
727a9adbba3SJan Lentfer v433  6/28/09   Cleanup search code.
728a9adbba3SJan Lentfer v434  6/29/09   More cleanup.
729a9adbba3SJan Lentfer v435  7/04/09   Fix bugs with non-regex filtering.
730a9adbba3SJan Lentfer v436  7/05/09   Fix memory leak.
73125ce721eSPeter Avalos -----------------------------------------------------------------
73225ce721eSPeter Avalos v437  7/14/09   Fix bug in handling some long option names;
73325ce721eSPeter Avalos                 make percentage calculation more accurate.
73425ce721eSPeter Avalos v438  12/29/10  Fix bugs with -i/-I and & filtering;
73525ce721eSPeter Avalos                 exit with status 2 on ctrl-C with -K.
73625ce721eSPeter Avalos v439  12/31/10  Add -A option.
73725ce721eSPeter Avalos v440  1/5/11    Fix bug displaying prompt after = command.
73825ce721eSPeter Avalos v441  1/21/11   Fix semi-infinite loop if no newlines in file;
73925ce721eSPeter Avalos                 make new -A behavior the default.
74025ce721eSPeter Avalos -----------------------------------------------------------------
74125ce721eSPeter Avalos v442  3/2/11    Fix search bug.
74225ce721eSPeter Avalos                 Add ctrl-G line edit command.
74325ce721eSPeter Avalos v443  4/9/11    Fix Windows build.
744b099ac32SPeter Avalos v444  6/8/11    Fix ungetc bug; remove vestiges of obsolete -l option.
745e639dc31SJohn Marino -----------------------------------------------------------------
746e639dc31SJohn Marino v445  10/19/11  Fix hilite bug in backwards scroll with -J.
747e639dc31SJohn Marino                 Fix hilite bug with backspaces.
748e639dc31SJohn Marino                 Fix bugs handling SGR sequences in Win32 (thanks to Eric Lee).
749e639dc31SJohn Marino                 Add support for GNU regex (thanks to Reuben Thomas).
750e639dc31SJohn Marino v446  5/15/12   Up/down arrows in cmd editing search for matching cmd.
751e639dc31SJohn Marino v447  5/21/12   Add ESC-F command, two-pipe LESSOPEN syntax.
752e639dc31SJohn Marino v448  6/15/12   Print name of regex library in version message.
753e639dc31SJohn Marino v449  6/23/12   Allow config option --with-regex=none.
754e639dc31SJohn Marino v450  7/4/12    Fix EOF bug with ESC-F.
755e639dc31SJohn Marino v451  7/20/12   Fix typo.
756e639dc31SJohn Marino -----------------------------------------------------------------
757e639dc31SJohn Marino v452  10/19/12  Fix --with-regex=none, fix "stty 0", fix Win32.
758e639dc31SJohn Marino                 Don't quit if errors in cmd line options.
759e639dc31SJohn Marino v453  10/27/12  Increase buffer sizes.
760e639dc31SJohn Marino v454  11/5/12   Fix typo.
761e639dc31SJohn Marino v455  11/5/12   Fix typo.
762e639dc31SJohn Marino v456  11/8/12   Fix option string incompatibility.
763e639dc31SJohn Marino v457  12/8/12   Use new option string syntax only after --use-backslash.
764e639dc31SJohn Marino v458  4/4/13    Fix display bug in using up/down in cmd buffer.
765fa0be7c5SJohn Marino -----------------------------------------------------------------
766fa0be7c5SJohn Marino v459  5/6/13    Fix ++ bug.
767fa0be7c5SJohn Marino v460  6/19/13   Automate construction of Unicode tables.
768fa0be7c5SJohn Marino v461  6/21/13   Collapse multiple CRs before LF.
769fa0be7c5SJohn Marino v462  11/26/13  Don't overwrite history file, just append to it.
770fa0be7c5SJohn Marino v463  7/13/14   Misc. fixes.
771fa0be7c5SJohn Marino v464  7/19/14   Fix bugs & improve performance in & filtering
772fa0be7c5SJohn Marino                 (thanks to John Sullivan).
773fa0be7c5SJohn Marino v465  8/9/14    More fixes from John Sullivan.
774fa0be7c5SJohn Marino v466  8/23/14   Add colon to LESSANSIMIDCHARS.
775fa0be7c5SJohn Marino v467  9/18/14   Misc. fixes.
776fa0be7c5SJohn Marino v468  9/18/14   Fix typo
777fa0be7c5SJohn Marino v469  10/2/14   Allow extra string in command to append to a multichar
778fa0be7c5SJohn Marino                 cmd without executing it; fix bug using GNU regex.
779fa0be7c5SJohn Marino v470  10/5/14   Fix some compiler warnings.
780fa0be7c5SJohn Marino v471  12/14/14  Fix unget issues with prompt. Allow disabling history
781fa0be7c5SJohn Marino                 when compiled value of LESSHISTFILE = "-".
7829b760066SJohn Marino v473  12/19/14  Fix prompt bug with stdin and -^P in lesskey extra string.
7839b760066SJohn Marino v474  1/30/15   Fix bug in backwards search with match on bottom line.
7849b760066SJohn Marino                 Make follow mode reopen file if file shrinks.
7859b760066SJohn Marino v475  3/2/15    Fix possible buffer overrun with invalid UTF-8;
7869b760066SJohn Marino                 fix bug when compiled with no regex; fix non-match search.
7879b760066SJohn Marino v476  5/3/15    Update man pages.
7889b760066SJohn Marino v477  5/19/15   Fix off-by-one in jump_forw_buffered;
7899b760066SJohn Marino                 don't add FAKE_* files to cmd history.
7909b760066SJohn Marino v478  5/21/15   Fix nonportable pointer usage in hilite tree.
7919b760066SJohn Marino v479  7/6/15    Allow %% escapes in LESSOPEN variable.
7929b760066SJohn Marino v480  7/24/15   Fix bug in no-regex searches; support MSVC v1900.
7939b760066SJohn Marino v481  8/20/15   Fix broken -g option.
79402d62a0fSDaniel Fojt -----------------------------------------------------------------
79502d62a0fSDaniel Fojt v482  2/25/16   Update Unicode database to "2015-06-16, 20:24:00 GMT [KW]".
79602d62a0fSDaniel Fojt v483  2/27/16   Regenerate hilite when change search caselessness.
79702d62a0fSDaniel Fojt                 (Thanks to Jason Hood)
79802d62a0fSDaniel Fojt                 Fix bug when terminal has no "cm". (Thanks to Noel Cragg)
79902d62a0fSDaniel Fojt v484  9/20/16   Update to Unicode 9.0.0 database.
80002d62a0fSDaniel Fojt v485  10/21/16  Fix "nothing to search" bug when top/bottom line is empty;
80102d62a0fSDaniel Fojt                 Display line numbers in bold. (thanks to Jason Hood);
80202d62a0fSDaniel Fojt                 Fix incorrect display when entering double-width chars in
80302d62a0fSDaniel Fojt                 search string.
80402d62a0fSDaniel Fojt v486  10/22/16  New commands ESC-{ and ESC-} to shift to start/end of
80502d62a0fSDaniel Fojt                 displayed lines; new option -Da in Windows version to
80602d62a0fSDaniel Fojt                 enable SGR mode (thanks to Jason Hood).
80702d62a0fSDaniel Fojt v487  10/23/16  configure --help formatting.
80802d62a0fSDaniel Fojt -----------------------------------------------------------------
80902d62a0fSDaniel Fojt v488  2/23/17   Fix memory leaks in search (thanks to John Brooks).
81002d62a0fSDaniel Fojt v489  3/30/17   Make -F not do init/deinit if file fits on one screen
81102d62a0fSDaniel Fojt                 (thanks to Jindrich Novy).
81202d62a0fSDaniel Fojt v490  4/5/17    Switch to ANSI prototypes in funcs.h; remove "register".
81302d62a0fSDaniel Fojt v491  4/7/17    Fix signed char bug.
81402d62a0fSDaniel Fojt v492  4/21/17   Handle SIGTERM.
81502d62a0fSDaniel Fojt v493  6/22/17   Fix bug initializing charset in MSDOS build.
81602d62a0fSDaniel Fojt v494  6/26/17   Update Unicode tables; make Cf chars composing not binary.
81702d62a0fSDaniel Fojt v495  7/3/17    Improve binary file detection (thanks to Bela Lubkin);
81802d62a0fSDaniel Fojt                 do -R filter when matching tags (thanks to Matthew Malcomson).
81902d62a0fSDaniel Fojt v496  7/5/17    Add LESSRSCROLL marker.
82002d62a0fSDaniel Fojt v497  7/5/17    Sync.
82102d62a0fSDaniel Fojt v498  7/7/17    Fix early truncation of text if last char is double-width.
82202d62a0fSDaniel Fojt v499  7/10/17   Misc fixes.
82302d62a0fSDaniel Fojt v500  7/11/17   Fix bug where certain env variables couldn't be set in lesskey.
82402d62a0fSDaniel Fojt v501  7/12/17   Make sure rscroll char is standout by default.
82502d62a0fSDaniel Fojt v502  7/13/17   Control rscroll char via command line option not env variable.
82602d62a0fSDaniel Fojt v503  7/13/17   Switch to git.
82702d62a0fSDaniel Fojt v504  7/13/17   Call opt_rscroll at startup; change mkhelp.c to mkhelp.pl.
82802d62a0fSDaniel Fojt v505  7/17/17   Add M and ESC-M commands;
82902d62a0fSDaniel Fojt                 fix buffer handling with stdin and LESSOPEN.
83002d62a0fSDaniel Fojt v506  7/17/17   On Windows, convert UTF-8 to multibyte if console is not UTF-8;
83102d62a0fSDaniel Fojt                 handle extended chars on input (thanks to Jason Hood).
83202d62a0fSDaniel Fojt v507  7/18/17   Fix some bugs handling filenames containing shell metachars.
83302d62a0fSDaniel Fojt v508  7/19/17   Fix bugs when using LESSOPEN to read stdin.
83402d62a0fSDaniel Fojt v509  7/19/17   Fix another stdin bug.
83502d62a0fSDaniel Fojt v510  7/20/17   Fix bug in determining when to reopen a file.
83602d62a0fSDaniel Fojt v511  7/25/17   Fix bugs in recent MSDOS changes (thanks to Jason Hood).
83702d62a0fSDaniel Fojt v512  7/26/17   Fix MSDOS build.
83802d62a0fSDaniel Fojt v513  7/26/17   Fix switch to normal attr at end of line with -R and rscroll.
83902d62a0fSDaniel Fojt v514  7/27/17   Fix bug in fcomplete when pattern does not match a file.
84002d62a0fSDaniel Fojt v515  7/28/17   Allow 'u' in -D option on Windows.
84102d62a0fSDaniel Fojt v516  7/29/17   Fix bug using LESSOPEN with filename containing metachars.
84202d62a0fSDaniel Fojt v517  7/30/17   Status column shows matches even if hiliting is disabled via -G.
84302d62a0fSDaniel Fojt v518  8/1/17    Use underline in sgr mode in MSDOS (thanks to Jason Hood).
84402d62a0fSDaniel Fojt v519  8/10/17   Fix rscroll bug when last char of line starts coloration.
84502d62a0fSDaniel Fojt v520  9/3/17    Fix compiler warning.
84602d62a0fSDaniel Fojt v521  10/20/17  Fix binary file warning in UTF-8 files with SGI sequences.
84702d62a0fSDaniel Fojt v522  10/20/17  Handle keypad ENTER key properly.
84802d62a0fSDaniel Fojt v523  10/23/17  Cleanup.
84902d62a0fSDaniel Fojt v524  10/24/17  Fix getcc bug.
85002d62a0fSDaniel Fojt v525  10/24/17  Change M command to mark last displayed line.
85102d62a0fSDaniel Fojt v526  10/25/17  Fix search hilite bug introduced in v517.
85202d62a0fSDaniel Fojt v527  10/30/17  Fix search hilite bug on last page with -a.
85302d62a0fSDaniel Fojt v528  11/3/17   Make second ESC-u clear status column.
85402d62a0fSDaniel Fojt v529  11/12/17  Display Unicode formatting chars in hex if -U is set.
85502d62a0fSDaniel Fojt v530  12/2/17   Minor doc change and add missing VOID_PARAM.
85602d62a0fSDaniel Fojt -----------------------------------------------------------------
85702d62a0fSDaniel Fojt v531  5/13/18   Fix bug with v on empty file; fix bug with v on file with
85802d62a0fSDaniel Fojt                 metachars in name; add --nohistdups option.
85902d62a0fSDaniel Fojt v532  7/27/18   Redraw screen on SIGWINCH even if screen size doesn't change.
86002d62a0fSDaniel Fojt v533  8/1/18    Shell escape filenames in history; use PCRE_UTF8 flag;
86102d62a0fSDaniel Fojt                 use wide-chars for Windows console title (thanks to Jason Hood).
86202d62a0fSDaniel Fojt v534  8/9/18    Support PCRE2.
86302d62a0fSDaniel Fojt v535  8/16/18   Don't count lines of initial screen if using -X with -F
86402d62a0fSDaniel Fojt                 (thanks to Linus Torvalds).
86502d62a0fSDaniel Fojt v536  8/31/18   Use descriptive error messages for PCRE2.
86602d62a0fSDaniel Fojt v537  8/31/18   Support mingw build system (thanks to Mike Soyka).
86702d62a0fSDaniel Fojt v538  9/3/18    Clean up some WIN32 code.
86802d62a0fSDaniel Fojt v539  9/13/18   Fix spurious input on Windows with CAPSLOCK.
86902d62a0fSDaniel Fojt v540  10/29/18  Add --mouse option.
87002d62a0fSDaniel Fojt v541  10/30/18  Add --MOUSE option.
87102d62a0fSDaniel Fojt v542  11/6/18   Add mouse support for WIN32; add --wheel-lines option.
87202d62a0fSDaniel Fojt                 (thanks to Jason Hood).
87302d62a0fSDaniel Fojt v543  11/12/18  Code cleanup.
87402d62a0fSDaniel Fojt v544  11/16/18  Don't init/deinit keyboard/mouse if quit due to -F.
87502d62a0fSDaniel Fojt v545  11/22/18  Fix Windows build, memory leaks.
87602d62a0fSDaniel Fojt v546  11/29/18  Add --save-marks option.
87702d62a0fSDaniel Fojt v547  11/30/18  Fix some bugs with saved marks.
87802d62a0fSDaniel Fojt v548  12/14/18  Ignore mouse input when line editing.
87902d62a0fSDaniel Fojt v549  2/10/19   Support X11 mouse extension 1006;
88002d62a0fSDaniel Fojt                 Win32 fixes (thanks to Jason Hood).
88102d62a0fSDaniel Fojt v550  2/16/19   Fix Win32 build; don't enable mouse unless --mouse is set.
88202d62a0fSDaniel Fojt v551  6/10/19   Doc changes.
8830c7ad07eSAntonio Huete Jimenez -----------------------------------------------------------------
8840c7ad07eSAntonio Huete Jimenez v552  7/8/19    Update Unicode tables.
8850c7ad07eSAntonio Huete Jimenez v553  10/17/19  Support tinfow; handle zero-width Hangul chars.
8860c7ad07eSAntonio Huete Jimenez v554  1/19/20   Remove erroneous free().
8870c7ad07eSAntonio Huete Jimenez v555  3/15/20   Display error msg immediately when toggle -o without stdin.
8880c7ad07eSAntonio Huete Jimenez v556  3/15/20   Update copyright.
8890c7ad07eSAntonio Huete Jimenez v557  3/21/20   Fix memory corruption with libtermcap.
8900c7ad07eSAntonio Huete Jimenez v558  4/17/20   Don't init terminal if -F and file fits on one screen (WIN32).
8910c7ad07eSAntonio Huete Jimenez v559  4/19/20   Handle deinit correctly on WIN32.
8920c7ad07eSAntonio Huete Jimenez v560  5/3/20    Fix regression when command results in no movement;
8930c7ad07eSAntonio Huete Jimenez                 fix some less.nro issues (thanks to Bjarni I. Gislason).
8940c7ad07eSAntonio Huete Jimenez v561  5/11/20   Fix erroneous EOF calculation when F command is interrupted.
8950c7ad07eSAntonio Huete Jimenez v562  5/19/20   Update Unicode tables; minor doc formatting.
8960c7ad07eSAntonio Huete Jimenez v563  6/13/20   Fix crash due to realpath() incompatibility.
8970c7ad07eSAntonio Huete Jimenez v564  8/25/20   Handle realpath consistently; update docs.
8980c7ad07eSAntonio Huete Jimenez v565  11/3/20   Add ESC-U command, optimize calls to realpath().
8990c7ad07eSAntonio Huete Jimenez v566  11/25/20  Fix crash when reopening a file while using LESSOPEN;
9000c7ad07eSAntonio Huete Jimenez                 support OSC 8 hyperlinks.
9010c7ad07eSAntonio Huete Jimenez v567  11/25/20  Fix typo.
9020c7ad07eSAntonio Huete Jimenez v568  11/29/20  Fix some hyperlink bugs; add ^W search modifier
9030c7ad07eSAntonio Huete Jimenez                 (thanks to Arminius); allow Makefile.aut to use Python
9040c7ad07eSAntonio Huete Jimenez                 instead of Perl (thanks to Charlie Lin).
9050c7ad07eSAntonio Huete Jimenez v569  12/1/20   Allow multiple & filters (thanks to Mattias Johansson),
9060c7ad07eSAntonio Huete Jimenez                 allow ^X to exit F command.
9070c7ad07eSAntonio Huete Jimenez v570  12/12/20  Better handling of multiple + or -p options;
9080c7ad07eSAntonio Huete Jimenez                 fix bugs in horizontal scrolling.
9090c7ad07eSAntonio Huete Jimenez v571  12/30/20  Add --line-num-width and --status-col-width options.
9100c7ad07eSAntonio Huete Jimenez v572  1/4/21    Save lastmark in history file; don't toggle mouse reporting;
9110c7ad07eSAntonio Huete Jimenez                 implement termcap delays.
9120c7ad07eSAntonio Huete Jimenez v573  1/9/21    Limit eof bell to 1 per second.
9130c7ad07eSAntonio Huete Jimenez v574  1/13/21   Add incremental search.
9140c7ad07eSAntonio Huete Jimenez v575  1/17/21   Fix build without HILITE_SEARCH;
9150c7ad07eSAntonio Huete Jimenez                 fix bug with ^K in lesskey extra string.
9160c7ad07eSAntonio Huete Jimenez v576  2/4/21    Make sure search result is visible; add --use-color and --color.
9170c7ad07eSAntonio Huete Jimenez v577  2/9/21    Use ttyname to get name of tty device.
9180c7ad07eSAntonio Huete Jimenez v578  2/9/21    Doc
9190c7ad07eSAntonio Huete Jimenez v579  2/14/21   Fix double-width char bugs and non-match search crash.
9200c7ad07eSAntonio Huete Jimenez v580  3/2/21    Some color fixes; fix compiler warnings; some lesstest support.
9210c7ad07eSAntonio Huete Jimenez v581  4/6/21    Ignore SIGTSTP in secure mode; don't print "skipping" when filtering.
9220c7ad07eSAntonio Huete Jimenez v582  4/21/21   Less now reads lesskey source file rather than binary;
9230c7ad07eSAntonio Huete Jimenez                 fix bug in finding tags with backslashes.
9240c7ad07eSAntonio Huete Jimenez v583  4/21/21   Use XDG_CONFIG_HOME and XDG_DATA_HOME to find files.
9250c7ad07eSAntonio Huete Jimenez v584  4/30/21   Add --file-size option.
9260c7ad07eSAntonio Huete Jimenez v585  5/2/21    Allow color desc W per man page.
9270c7ad07eSAntonio Huete Jimenez v586  5/7/21    Doc changes.
9280c7ad07eSAntonio Huete Jimenez v587  5/27/21   Fix --with-secure; fix --file-size message on Windows;
9290c7ad07eSAntonio Huete Jimenez                 fix colored search hilite in colored text; don't exit
9300c7ad07eSAntonio Huete Jimenez                 if -F and screen is resized; fix memcpy usage.
9310c7ad07eSAntonio Huete Jimenez v588  5/27/21   Fix release.
9320c7ad07eSAntonio Huete Jimenez v589  5/29/21   Copyright & build changes.
9330c7ad07eSAntonio Huete Jimenez v590  6/3/21    Fix non-autoconf Makefiles.
9340c7ad07eSAntonio Huete Jimenez v591  8/8/21    Use \kB for backspace key in lesskey; add more \k codes;
9350c7ad07eSAntonio Huete Jimenez                 handle multibyte chars in prompt.
9360c7ad07eSAntonio Huete Jimenez v592  8/24/21   Add --status-line option; limit use of /proc kludge; add --header.
9370c7ad07eSAntonio Huete Jimenez v593  8/30/21   Add header columns, --no-number-headers.
9380c7ad07eSAntonio Huete Jimenez v594  10/1/21   Let regex library handle caseless; add --redraw-on-quit option;
9390c7ad07eSAntonio Huete Jimenez                 add #version to lesskey.
9400c7ad07eSAntonio Huete Jimenez v595  10/12/21  Add H color type; add += to lesskey var section;
9410c7ad07eSAntonio Huete Jimenez                 add --search-options.
9420c7ad07eSAntonio Huete Jimenez v596  11/8/21   Look for lesskey in $HOME/.config.
9430c7ad07eSAntonio Huete Jimenez v597  11/16/21  Fix bugs in --header.
9440c7ad07eSAntonio Huete Jimenez v598  12/6/21   Look for lesshst in $XDG_STATE_HOME and $HOME/.local/state.
9450c7ad07eSAntonio Huete Jimenez v599  12/28/21  Defer moving to lower left in some cases;
9460c7ad07eSAntonio Huete Jimenez                 suppress TAB expansion in some cases.
9470c7ad07eSAntonio Huete Jimenez v600  1/7/22    Use /dev/tty if cannot open ttyname().
9480c7ad07eSAntonio Huete Jimenez v601  1/31/22   Add --exit-follow-on-close option.
9490c7ad07eSAntonio Huete Jimenez v602  3/1/22    Doc changes.
9500c7ad07eSAntonio Huete Jimenez v603  3/14/22   Fix --header.
9510c7ad07eSAntonio Huete Jimenez v604  5/14/22   Fix termlib detection; fix non-ASCII input on Windows.
9520c7ad07eSAntonio Huete Jimenez v605  6/14/22   Update version number.
9530c7ad07eSAntonio Huete Jimenez v606  7/17/22   Fix bug with multibyte chars and --incsearch;
9540c7ad07eSAntonio Huete Jimenez                 escape filenames in LESSCLOSE; fix bin_file overrun.
9550c7ad07eSAntonio Huete Jimenez v607  7/19/22   Update Unicode tables.
9560c7ad07eSAntonio Huete Jimenez v608  7/22/22   Fix highlighting on colored text boundaries.
957320d7c8aSAaron LI v609  11/10/22  Add LESSUTFCHARDEF; fix overstrike color bug;
958320d7c8aSAaron LI                 fix procfs bug; fix signal race.
959320d7c8aSAaron LI v610  11/14/22  Update Unicode tables; fix again-search after filter;
960320d7c8aSAaron LI                 improve ^X to interrupt F command.
961320d7c8aSAaron LI v611  11/16/22  Fix EOF bug related to ^X change.
962320d7c8aSAaron LI v612  11/18/22  Fix more bugs related to ^X change.
963320d7c8aSAaron LI v613  11/28/22  Even more ^X issues.
964320d7c8aSAaron LI v614  11/28/22  Add ^X to wait message.
965320d7c8aSAaron LI v615  11/30/22  Add --no-vbell option.
966320d7c8aSAaron LI v616  12/9/22   Don't open tty as input file without -f.
967320d7c8aSAaron LI v617  12/10/22  Support poll on newer versions of MacOS.
968320d7c8aSAaron LI v618  12/29/22  Add --no-search-headers option; use C89 function definitions.
969320d7c8aSAaron LI v619  12/30/22  Fix bug using 'n' before '/'.
970320d7c8aSAaron LI v620  1/12/23   Add --modelines option; add --intr option;
971320d7c8aSAaron LI                 add subpattern coloring.
972320d7c8aSAaron LI v621  1/15/23   Add --wordwrap option; add LESS_LINES & LESS_COLUMNS.
973320d7c8aSAaron LI v622  1/27/23   Add --show-preproc-errors option.
974320d7c8aSAaron LI v623  2/2/23    Add # command; add ^S search modifier.
975320d7c8aSAaron LI v624  2/11/23   Add --proc-backspace, --proc-tab and --proc-return options.
976320d7c8aSAaron LI v625  2/16/23   Minor fixes.
977320d7c8aSAaron LI v626  2/19/23   Fix rare crash in add_attr_normal.
978320d7c8aSAaron LI v627  2/19/23   Doc.
979320d7c8aSAaron LI v628  2/20/23   Don't require newline after +&...
980320d7c8aSAaron LI v629  2/26/23   Delay "waiting for data" message for 500 ms.
981320d7c8aSAaron LI v630  3/18/23   Add LESS_DATA_DELAY.
982320d7c8aSAaron LI v631  3/26/23   Fix input of dead keys on Windows.
983320d7c8aSAaron LI v632  4/6/23    Make lesstest work on MacOS; minor fixes.
984320d7c8aSAaron LI v633  5/3/23    Fix build on systems with ncurses/termcap.h or ncursesw/termcap.h.
985320d7c8aSAaron LI v634  5/29/23   Allow program piping into less to access tty;
986320d7c8aSAaron LI                 fix search modifier ^E after ^W.
987320d7c8aSAaron LI v635  6/2/23    Fix crash with ! search modifier.
988320d7c8aSAaron LI v636  6/18/23   Fix -D in MS-DOS build; fix mouse wheel in MS-DOS build.
989320d7c8aSAaron LI v637  6/28/23   Fix early EOF when SIGWINCH is received.
990320d7c8aSAaron LI v638  6/29/23   Fix compile error with ECHONL.
991320d7c8aSAaron LI v639  6/29/23   Fix SIGWINCH while reading tty.
992320d7c8aSAaron LI v640  7/10/23   Add lesstest to release.
993320d7c8aSAaron LI v641  7/10/23   Fix release.
994320d7c8aSAaron LI v642  7/10/23   Fix release.
995320d7c8aSAaron LI v643  7/20/23   Fix crash on Windows with -o.
996*e433da38SAaron LI v644  9/16/23   Improve ^C on non-terminated pipe; fix crash when files are
997*e433da38SAaron LI                 deleted; support large files and non-BMP chars on Windows;
998*e433da38SAaron LI                 fix # bug; don't filter header lines; fix shifting long lines;
999*e433da38SAaron LI                 add --match-shift.
1000*e433da38SAaron LI v645  11/5/23   Default Windows charset is utf-8; update Unicode tables;
1001*e433da38SAaron LI                 fix ESC-} bug; mouse right-click jumps to '#';
1002*e433da38SAaron LI                 add LESSSECURE_ALLOW; add --lesskey-content & LESSKEY_CONTENT;
1003*e433da38SAaron LI                 allow env var expansion in lesskey files; add LESS_UNSUPPORT.
1004*e433da38SAaron LI v646  11/6/23   Bug fixes.
1005*e433da38SAaron LI v647  11/16/23  Fix --+option; fix compiler warnings.
1006*e433da38SAaron LI v648  11/16/23  Add lang.h to release.
1007*e433da38SAaron LI v649  12/1/23   Add line number param to --header.
1008*e433da38SAaron LI v650  2/6/24    Add --no-search-header-lines and --no-search-header-columns;
1009*e433da38SAaron LI                 add ^L search modifier; add ^P shell command modifier;
1010*e433da38SAaron LI                 add search wrap message; add ^O^N, ^O^P, ^O^L and ^O^O commands.
1011*e433da38SAaron LI v651  3/4/24    Add --color attributes (*~_&); fix #/% substitution if name
1012*e433da38SAaron LI                 contains spaces; allow --rscroll with non-ASCII char.
1013*e433da38SAaron LI v652  3/11/24   Fix sleep_ms with usleep.
1014*e433da38SAaron LI v653  3/20/24   Make default charset utf-8.
1015*e433da38SAaron LI v654  4/28/24   Allow space to end parameter for some options; fix usleep bug;
1016*e433da38SAaron LI                 fix bugs when filename contains control chars; fix DJGPP build.
1017*e433da38SAaron LI v655  5/16/24   Fix search history bug with --incsearch.
1018*e433da38SAaron LI v656  5/23/24   Fix bug using escape sequences in prompt.
1019*e433da38SAaron LI v657  5/31/24   Fix buffer overrun when using LESSOPEN.
1020*e433da38SAaron LI v658  6/13/24   Fix double-free in lesskey parser; fix crash using small value
1021*e433da38SAaron LI                 for --line-num-width.
1022*e433da38SAaron LI v659  6/20/24   Fix typo in help.
1023*e433da38SAaron LI v660  6/24/24   Fix bug in ixerror.
1024*e433da38SAaron LI v661  6/29/24   Simpler fix for ixerror bug.
10251133e27eSPeter Avalos */
10261133e27eSPeter Avalos 
1027*e433da38SAaron LI char version[] = "661";
1028