xref: /freebsd/contrib/less/NEWS (revision 30a1828c5196c415c8afc0d50f9131885d0c6b43)
1a5f0fb15SPaul Saab
2a5f0fb15SPaul Saab                     NEWS about less
3a5f0fb15SPaul Saab
4a5f0fb15SPaul Saab======================================================================
5a5f0fb15SPaul Saab
6*30a1828cSXin LI  For the latest news about less, see https://greenwoodsoftware.com/less
7a5f0fb15SPaul Saab  You can also download the latest version of less from there.
8a5f0fb15SPaul Saab
92235c7feSXin LI  Report bugs, suggestions or comments at
102235c7feSXin LI  https://github.com/gwsw/less/issues.
112235c7feSXin LI
122235c7feSXin LI======================================================================
132235c7feSXin LI
14*30a1828cSXin LI	Major changes between "less" versions 581 and 590
15*30a1828cSXin LI
16*30a1828cSXin LI* Make less able to read lesskey source files (deprecating lesskey).
17*30a1828cSXin LI
18*30a1828cSXin LI* If XDG_CONFIG_HOME is set, find lesskey source file
19*30a1828cSXin LI  in $XDG_CONFIG_HOME/lesskey rather than $HOME/.lesskey.
20*30a1828cSXin LI
21*30a1828cSXin LI* If XDG_DATA_HOME is set, find and store history file
22*30a1828cSXin LI  in $XDG_DATA_HOME/lesshst rather than $HOME/.lesshst.
23*30a1828cSXin LI
24*30a1828cSXin LI* Add the --lesskey-src option.
25*30a1828cSXin LI
26*30a1828cSXin LI* Add the --file-size option.
27*30a1828cSXin LI
28*30a1828cSXin LI* With -F, if screen is resized to make file fit on one screen, don't exit.
29*30a1828cSXin LI
30*30a1828cSXin LI* Fix bug which could leave terminal in mouse-reporting mode
31*30a1828cSXin LI  after exiting less.
32*30a1828cSXin LI
33*30a1828cSXin LI* Fix bug which caused failure to respond to window resize.
34*30a1828cSXin LI
35*30a1828cSXin LI* Fix backslash bug searching in tag file.
36*30a1828cSXin LI
37*30a1828cSXin LI======================================================================
38*30a1828cSXin LI
39*30a1828cSXin LI	Major changes between "less" versions 563 and 581
402235c7feSXin LI
412235c7feSXin LI* Change ESC-u command to toggle, not disable, highlighting per man page.
422235c7feSXin LI
432235c7feSXin LI* Add ESC-U command.
442235c7feSXin LI
452235c7feSXin LI* Add ctrl-W search modifier for wrapping search.
462235c7feSXin LI
472235c7feSXin LI* F command can be interrupted by ^X.
482235c7feSXin LI
492235c7feSXin LI* Support OSC 8 hyperlinks when -R is in effect.
502235c7feSXin LI
512235c7feSXin LI* g command with no number will ignore -j and put first line at top of screen.
522235c7feSXin LI
532235c7feSXin LI* Multiple + or -p command line options are handled better.
542235c7feSXin LI
552235c7feSXin LI* Add the --incsearch option.
562235c7feSXin LI
572235c7feSXin LI* Add the --line-num-width option.
582235c7feSXin LI
592235c7feSXin LI* Add the --status-col-width option.
602235c7feSXin LI
612235c7feSXin LI* Add the --use-color and --color options.
622235c7feSXin LI
632235c7feSXin LI* Display -w highlight even if highlighted line is empty.
642235c7feSXin LI
652235c7feSXin LI* If search result is in a long line, scroll to ensure it is visible.
662235c7feSXin LI
672235c7feSXin LI* Editing the same file under different names now creates only
682235c7feSXin LI  one entry in the file list.
692235c7feSXin LI
702235c7feSXin LI* Make visual bell more visible on some terminals.
712235c7feSXin LI
722235c7feSXin LI* Ring end-of-file bell no more than once per second.
732235c7feSXin LI
742235c7feSXin LI* Build can use either Python or Perl for Makefile.aut operations.
752235c7feSXin LI
762235c7feSXin LI* Fix crash when using the @ search modifier.
772235c7feSXin LI
782235c7feSXin LI* Fix crash in the 's' command due to duplicate free.
792235c7feSXin LI
802235c7feSXin LI* Fix realpath crash on Darwin.
81a15691bfSXin LI
82a15691bfSXin LI======================================================================
83a15691bfSXin LI
846f26c71dSXin LI	Major changes between "less" versions 551 and 563
856f26c71dSXin LI
866f26c71dSXin LI* Update Unicode tables.
876f26c71dSXin LI
886f26c71dSXin LI* Treat Hangul Jamo medial vowels and final consonants as zero width.
896f26c71dSXin LI
906f26c71dSXin LI* Display error message immediately when -o is toggled and
916f26c71dSXin LI  input is not a pipe.
926f26c71dSXin LI
936f26c71dSXin LI* Fix regression: make screen repaint when "squished" and
946f26c71dSXin LI  a no-movement command is given.
956f26c71dSXin LI
966f26c71dSXin LI* Fix erroneous EOF calculation when F command is interrupted.
976f26c71dSXin LI
986f26c71dSXin LI* Make WIN32C version include this fix from 551:
996f26c71dSXin LI  Don't count lines in initial screen if using -X with -F.
1006f26c71dSXin LI
1016f26c71dSXin LI* Fix display bug in WIN32C version.
1026f26c71dSXin LI
1036f26c71dSXin LI* Fix memory corruption when built with libtermcap.
1046f26c71dSXin LI
1056f26c71dSXin LI* Support libtinfow.
1066f26c71dSXin LI
1076f26c71dSXin LI======================================================================
1086f26c71dSXin LI
109b7780dbeSXin LI	Major changes between "less" versions 530 and 551
110b7780dbeSXin LI
111b7780dbeSXin LI* Add --mouse option.
112b7780dbeSXin LI
113b7780dbeSXin LI* Add --wheel-lines option.
114b7780dbeSXin LI
115b7780dbeSXin LI* Add --no-histdups option.
116b7780dbeSXin LI
117b7780dbeSXin LI* Add --save-marks option.
118b7780dbeSXin LI
119b7780dbeSXin LI* Support PCRE2 regular expression library.
120b7780dbeSXin LI
121b7780dbeSXin LI* Redraw screen on SIGWINCH even if screen size doesn't change.
122b7780dbeSXin LI
123b7780dbeSXin LI* Shell-escape filenames in history so they can be used again.
124b7780dbeSXin LI
125b7780dbeSXin LI* Ring bell if user enters invalid long option name.
126b7780dbeSXin LI
127b7780dbeSXin LI* Use PCRE_UTF8 flag for pcre regular expressions when in UTF-8 mode.
128b7780dbeSXin LI
129b7780dbeSXin LI* Windows: use wide-char string to set console title.
130b7780dbeSXin LI
131b7780dbeSXin LI* Don't count lines in initial screen if using -X with -F.
132b7780dbeSXin LI
133b7780dbeSXin LI* Support mingw build system.
134b7780dbeSXin LI
135b7780dbeSXin LI* Fix bug in v command on empty file.
136b7780dbeSXin LI
137b7780dbeSXin LI* Fix bug in v command when filename contains shell metacharacters.
138b7780dbeSXin LI
139b7780dbeSXin LI======================================================================
140b7780dbeSXin LI
14174709ed0SXin LI	Major changes between "less" versions 487 and 530
142f6b74a7dSXin LI
143f6b74a7dSXin LI* Don't output terminal init sequence if using -F and file fits on one screen.
144f6b74a7dSXin LI
145b2ea2440SXin LI* When using -S, mark truncated lines with a special character.
146b2ea2440SXin LI  The character can be changed or disabled via the new --rscroll option.
147f6b74a7dSXin LI
148b2ea2440SXin LI* New command M marks the last line displayed on the screen.
149f6b74a7dSXin LI
150b2ea2440SXin LI* New command ESC-m removes a line mark.
151b2ea2440SXin LI
152b2ea2440SXin LI* Status column (enabled via -J) now shows mark letters.
153b2ea2440SXin LI
154b2ea2440SXin LI* Status column shows search matches even if highlighting is disabled via -G.
155b2ea2440SXin LI
156b2ea2440SXin LI* A second ESC-u command will clear search match markers in the status column.
157b2ea2440SXin LI
158b2ea2440SXin LI* Do same ANSI escape code filtering for tag matching that we do for
159b2ea2440SXin LI  searching, to help when viewing syntax-highlighted code.
160b2ea2440SXin LI
161b2ea2440SXin LI* Catch SIGTERM and clean up before exiting.
162b2ea2440SXin LI
163b2ea2440SXin LI* Fix bug initializing default charset on Windows.
164b2ea2440SXin LI
165b2ea2440SXin LI* Handle keypad ENTER key correctly if it sends something other than newline.
166b2ea2440SXin LI
167b2ea2440SXin LI* Fix buffering bug when using stdin with a LESSOPEN pipe.
168b2ea2440SXin LI
169b2ea2440SXin LI* On Windows, allow 'u' in -D option to enable underlining.
170b2ea2440SXin LI
171b2ea2440SXin LI* On Windows, use underline in sgr mode.
172b2ea2440SXin LI
173b2ea2440SXin LI* On Windows, convert UTF-8 to multibyte if console is not UTF-8.
174b2ea2440SXin LI
175b2ea2440SXin LI* Update Unicode tables to 2017-03-08.
176b2ea2440SXin LI
177b2ea2440SXin LI* Pass-thru Unicode formating chars (Cf type) instead of treating them
178b2ea2440SXin LI  as binary chars. But treat them as binary if -U is set.
179b2ea2440SXin LI
180b2ea2440SXin LI* Fix erroneous binary file warning when UTF-8 file contains ANSI SGR sequences.
181b2ea2440SXin LI
182b2ea2440SXin LI* Fix bugs when using LESSOPEN and switching between stdin and other files.
183b2ea2440SXin LI
184b2ea2440SXin LI* Fix some bugs handling filenames containing shell metacharacters.
185f6b74a7dSXin LI
186f6b74a7dSXin LI* Fix some memory leaks.
187f6b74a7dSXin LI
188b2ea2440SXin LI* Allow some debugging environment variables to be set in lesskey file.
189b2ea2440SXin LI
190b2ea2440SXin LI* Code improvements:
191b2ea2440SXin LI  . Use ANSI prototypes in funcs.h declarations.
192b2ea2440SXin LI  . Fix some const mismatches.
193b2ea2440SXin LI  . Remove archaic "register" in variable declarations.
194b2ea2440SXin LI
195f6b74a7dSXin LI======================================================================
196f6b74a7dSXin LI
197f6b74a7dSXin LI	Major changes between "less" versions 481 and 487
198f6b74a7dSXin LI
199f6b74a7dSXin LI* New commands ESC-{ and ESC-} to shift to start/end of displayed lines.
200f6b74a7dSXin LI
201f6b74a7dSXin LI* Make search highlights work correctly when changing caselessness with -i.
202f6b74a7dSXin LI
203f6b74a7dSXin LI* New option -Da in Windows version to enable SGR mode.
204f6b74a7dSXin LI
205f6b74a7dSXin LI* Fix "nothing to search" error when top or bottom line on screen is empty.
206f6b74a7dSXin LI
207f6b74a7dSXin LI* Fix bug when terminal has no "cm" termcap entry.
208f6b74a7dSXin LI
209f6b74a7dSXin LI* Fix incorrect display when entering double-width chars in search string.
210f6b74a7dSXin LI
211f6b74a7dSXin LI* Fix bug in Unicode handling that missed some double width characters.
212f6b74a7dSXin LI
213f6b74a7dSXin LI* Update Unicode database to 9.0.0.
214f6b74a7dSXin LI
215f6b74a7dSXin LI======================================================================
216f6b74a7dSXin LI
217a15691bfSXin LI	Major changes between "less" versions 458 and 481
218a15691bfSXin LI
219a15691bfSXin LI* Don't overwrite history file; just append to it.
220a15691bfSXin LI
221a15691bfSXin LI* New command ESC-G goes to end of currently buffered data in a pipe.
222a15691bfSXin LI
223a15691bfSXin LI* Disable history feature when compiled with LESSHISTFILE set to "-".
224a15691bfSXin LI
225a15691bfSXin LI* In more-compatible mode, make the -p option apply to every file opened,
226a15691bfSXin LI  not just the first one.
227a15691bfSXin LI
228a15691bfSXin LI* In more-compatible mode, change the -e option to work like -E, not -EF.
229a15691bfSXin LI
230a15691bfSXin LI* Treat multiple CRs before LF are like one CR (all the CRs are hidden).
231a15691bfSXin LI
232a15691bfSXin LI* Allow "extra" string in lesskey file to append to a multi-char command
233a15691bfSXin LI  (like a search pattern), without executing the command.
234a15691bfSXin LI
235a15691bfSXin LI* Ignore -u/-U setting while viewing help file, so that
236a15691bfSXin LI  underline and bold chars are displayed correctly.
237a15691bfSXin LI
238a15691bfSXin LI* Improve detection of "binary" files in UTF-8 mode.
239a15691bfSXin LI
240a15691bfSXin LI* Fix bug with ++ commands.
241a15691bfSXin LI
242a15691bfSXin LI* Fix bug where prompt was sometimes not displayed with +G.
243a15691bfSXin LI
244a15691bfSXin LI* Fix possible memory corruption
245a15691bfSXin LI
246a15691bfSXin LI* Fix bugs and improve performance in ampersand filtering.
247a15691bfSXin LI
248a15691bfSXin LI* Automate construction of Unicode tables from Unicode database.
249a15691bfSXin LI
250a15691bfSXin LI* Allow %% escape sequence in LESSOPEN variable.
25196e55cc7SXin LI
25296e55cc7SXin LI======================================================================
25396e55cc7SXin LI
2547bd2567cSXin LI	Major changes between "less" versions 451 and 458
2554cc5fc9aSXin LI
2567bd2567cSXin LI* Allow backslash escaping of metacharacters in LESS environment variable
2577bd2567cSXin LI  after the --use-backslash option.
2584cc5fc9aSXin LI
2594cc5fc9aSXin LI* Don't quit if syntax errors are found in command line options.
2604cc5fc9aSXin LI
2614cc5fc9aSXin LI* Increase sizes of some internal buffers.
2624cc5fc9aSXin LI
2634cc5fc9aSXin LI* Fix configure bug with --with-regex=none.
2644cc5fc9aSXin LI
2654cc5fc9aSXin LI* Fix crash with "stty rows 0".
2664cc5fc9aSXin LI
2674cc5fc9aSXin LI* Fix Win32 attribute display bug.
2684cc5fc9aSXin LI
2697bd2567cSXin LI* Fix display bug when using up/down arrow on the command line.
2707bd2567cSXin LI
2714cc5fc9aSXin LI======================================================================
2724cc5fc9aSXin LI
273e2449719SXin LI	Major changes between "less" versions 444 and 451
27496e55cc7SXin LI
27596e55cc7SXin LI* Add ESC-F command to keep reading data until a pattern is found.
27696e55cc7SXin LI
27796e55cc7SXin LI* Use exit code of LESSOPEN script if LESSOPEN starts with "||".
27896e55cc7SXin LI
27996e55cc7SXin LI* When up/down arrow is used on the command line immediately after
28096e55cc7SXin LI  typing text, the next command starting with that text is found.
28196e55cc7SXin LI
28296e55cc7SXin LI* Add support for GNU regex.
28396e55cc7SXin LI
28496e55cc7SXin LI* Add configure option --with-regex=none and fix compile errors
28596e55cc7SXin LI  when compiling with no regex library.
28696e55cc7SXin LI
28796e55cc7SXin LI* Fix bugs handling SGR sequences in Win32.
28896e55cc7SXin LI
28996e55cc7SXin LI* Fix possible crashes caused by malformed LESSOPEN or
29096e55cc7SXin LI  LESSCLOSE variables.
29196e55cc7SXin LI
29296e55cc7SXin LI* Fix bug highlighting text which is discontiguous in the file
29396e55cc7SXin LI  due to backspace processing.
29496e55cc7SXin LI
29596e55cc7SXin LI* Fix bug in displaying status column when scrolling backwards
29696e55cc7SXin LI  with -J and -S in effect.
297a5f0fb15SPaul Saab
298a5f0fb15SPaul Saab======================================================================
299a5f0fb15SPaul Saab
300b24bfc5aSXin LI	Major changes between "less" versions 443 and 444
301b24bfc5aSXin LI
302b24bfc5aSXin LI* Fix bug in unget handling that can cause strange effects on the
303b24bfc5aSXin LI  command line.
304b24bfc5aSXin LI
305b24bfc5aSXin LI* Remove vestiges of obsolete -l option that can cause a crash.
306b24bfc5aSXin LI
307b24bfc5aSXin LI======================================================================
308b24bfc5aSXin LI
30933096f16SXin LI	Major changes between "less" versions 436 and 443
31033096f16SXin LI
31133096f16SXin LI* Change search behavior such that when a search is given an explicit
31233096f16SXin LI  pattern, the entire displayed screen is included in the search and
31333096f16SXin LI  not just the portion after the target line.
31433096f16SXin LI
31533096f16SXin LI* Add -A option to change search behavior to the old way: only
31633096f16SXin LI  the portion of the screen after the target line is searched.
31733096f16SXin LI
31833096f16SXin LI* Add %F formatting to prompt strings, replaced by the last component
31933096f16SXin LI  of the input file.
32033096f16SXin LI
32133096f16SXin LI* Control-G while editing a command exits the command.
32233096f16SXin LI
32333096f16SXin LI* Less now exits with status 2 if control-C is pressed and -K is in effect.
32433096f16SXin LI
32533096f16SXin LI* Fix "ungetc overflow" when passing long commands via the -p option.
32633096f16SXin LI
32733096f16SXin LI* Fix bug in using line filtering via the & command
32833096f16SXin LI  in combination with -i and -I.
32933096f16SXin LI
33033096f16SXin LI* Fix bug in handling negative arguments to the -j option.
33133096f16SXin LI
33233096f16SXin LI* Fix bug in handling %t in prompt strings.
33333096f16SXin LI
33433096f16SXin LI* Improve handling of long option names.
33533096f16SXin LI
33633096f16SXin LI* Improve percentage calculation for very large files.
33733096f16SXin LI
33833096f16SXin LI======================================================================
33933096f16SXin LI
340f0be0a1fSXin LI	Major changes between "less" versions 429 and 436
341f0be0a1fSXin LI
342f0be0a1fSXin LI* Don't pass "-" to non-pipe LESSOPEN unless it starts with "-".
343f0be0a1fSXin LI
344f0be0a1fSXin LI* Allow a fraction as the argument to the -# (--shift) option.
345f0be0a1fSXin LI
346f0be0a1fSXin LI* Fix highlight bug when underlined/overstruck text matches at end of line.
347f0be0a1fSXin LI
348f0be0a1fSXin LI* Fix non-regex searches with ctrl-R.
349f0be0a1fSXin LI
350f0be0a1fSXin LI======================================================================
351f0be0a1fSXin LI
3527374caaaSXin LI	Major changes between "less" versions 424 and 429
3537374caaaSXin LI
3547374caaaSXin LI* LESSOPEN pipe will now be used on standard input, if the LESSOPEN
3557374caaaSXin LI  environment variable begins with "|-".
3567374caaaSXin LI
3577374caaaSXin LI* The -D option with one number now means use the normal background color.
3587374caaaSXin LI
3597374caaaSXin LI* Don't change permissions on history file if it is not a regular file.
3607374caaaSXin LI
3617374caaaSXin LI* Fix non-ANSI-compliant code that caused problems with some compilers.
3627374caaaSXin LI
3637374caaaSXin LI* Fix binary file detection in UTF-8 mode.
3647374caaaSXin LI
3657374caaaSXin LI* Fix display problems with long lines on "ignaw" terminals.
3667374caaaSXin LI
3677374caaaSXin LI* Fix problem interrupting the line number calculation for initial prompt.
3687374caaaSXin LI
3697374caaaSXin LI* Fix SGR emulation when dealing with multiple attributes (eg. bold+underline).
3707374caaaSXin LI
3717374caaaSXin LI* Fix highlight bug when searching for underlined/overstruck text.
3727374caaaSXin LI
3737374caaaSXin LI======================================================================
3747374caaaSXin LI
3757374caaaSXin LI	Major changes between "less" versions 418 and 424
3767374caaaSXin LI
3777374caaaSXin LI* New "&" command allows filtering of lines based on a pattern.
3787374caaaSXin LI
3797374caaaSXin LI* Status column now displays a search match, even if the matched
3807374caaaSXin LI  string is scrolled off screen because -S is in effect.
3817374caaaSXin LI
3827374caaaSXin LI* Improve behavior of -F option.
3837374caaaSXin LI
3847374caaaSXin LI* Allow CSI character (0x9B) to work in UTF-8 mode.
3857374caaaSXin LI
3867374caaaSXin LI* Output carriage return at startup in case terminal doesn't default
3877374caaaSXin LI  to column 1.
3887374caaaSXin LI
3897374caaaSXin LI* Fix bug in '' (quote, quote) command after G command.
3907374caaaSXin LI
3917374caaaSXin LI======================================================================
3927374caaaSXin LI
3937374caaaSXin LI	Major changes between "less" versions 416 and 418
3947374caaaSXin LI
3957374caaaSXin LI* Color escape sequences are now supported in WIN32 build.
3967374caaaSXin LI
3977374caaaSXin LI* Makefile now uses EXEEXT feature of autoconf.
3987374caaaSXin LI
3997374caaaSXin LI* Fix search bug when using -R and text contains ANSI color escape sequences.
4007374caaaSXin LI
4017374caaaSXin LI* Fix crash when using -r with UTF-8 text containing 0x9B bytes.
4027374caaaSXin LI
4037374caaaSXin LI* Fix display bug when using ' command to move less than one page forward.
4047374caaaSXin LI
4057374caaaSXin LI* Update GPL to version 3.
4067374caaaSXin LI
4077374caaaSXin LI======================================================================
408a5f0fb15SPaul Saab
40933a9f6abSXin LI	Major changes between "less" versions 409 and 416
410464501a8SXin LI
411464501a8SXin LI* New --follow-name option makes F command follow the name of a file
412464501a8SXin LI  rather than the file descriptor if an open file is renamed.
413464501a8SXin LI
414464501a8SXin LI* Make searching with -i/-I work correctly with non-ASCII text.
415464501a8SXin LI
416464501a8SXin LI* Fix DJGPP build.
417464501a8SXin LI
418464501a8SXin LI======================================================================
419464501a8SXin LI
420f78327b5SXin LI	Major changes between "less" versions 406 and 409
4211c6a5c10SXin LI
4221c6a5c10SXin LI* Support CSI escape sequences, like SGR escape sequences.
4231c6a5c10SXin LI
4241c6a5c10SXin LI* Fix bug which caused screen to fail to repaint when window is resized.
4251c6a5c10SXin LI
4261c6a5c10SXin LI* Fix bug in using -i and -I flags with non-ASCII text.
4271c6a5c10SXin LI
4281c6a5c10SXin LI* Fix configure bug on systems which don't support langinfo.h.
4291c6a5c10SXin LI
430f78327b5SXin LI* Fix crash when searching text containing certain invalid UTF-8 sequences.
431f78327b5SXin LI
4321c6a5c10SXin LI======================================================================
4331c6a5c10SXin LI
434efd72c2eSXin LI	Major changes between "less" versions 394 and 406
4357f074f9cSXin LI
4367f074f9cSXin LI* Allow decimal point in number for % (percent) command.
4377f074f9cSXin LI
4387f074f9cSXin LI* Allow decimal point in number for -j option (fraction of screen height).
4397f074f9cSXin LI
4407f074f9cSXin LI* Make n command fetch previous pattern from history file on first search.
4417f074f9cSXin LI
4427f074f9cSXin LI* Don't rewrite history file if it has not changed.
4437f074f9cSXin LI
4447f074f9cSXin LI* Don't move to bottom of screen on first page.
4457f074f9cSXin LI
4467f074f9cSXin LI* Don't output extraneous newlines, so copy & pasting lines from the
4477f074f9cSXin LI  output works better.
4487f074f9cSXin LI
4497f074f9cSXin LI* The -c option has been made identical with the -C option.
4507f074f9cSXin LI
4517f074f9cSXin LI* Allow "/dev/null" as synomym for "-" in LESSHISTFILE to indicate
4527f074f9cSXin LI  that no history file should be used.
4537f074f9cSXin LI
4547f074f9cSXin LI* Search can now find text which follows a null byte, if the PCRE
4557f074f9cSXin LI  library is used, or if no-regex searching (ctrl-R) is used.
4567f074f9cSXin LI
4577f074f9cSXin LI* Better compatibility with POSIX more specification.
4587f074f9cSXin LI
4597f074f9cSXin LI* Make -f work for directories.
4607f074f9cSXin LI
4617f074f9cSXin LI* Make "t" cmd traverse tags in the correct order.
4627f074f9cSXin LI
4637f074f9cSXin LI* Allow a few binary characters in the input file before warning
4647f074f9cSXin LI  that the file is binary.
4657f074f9cSXin LI
4667f074f9cSXin LI* Don't warn that file is binary if it merely contains ANSI color sequences
4677f074f9cSXin LI  and -R is in effect.
4687f074f9cSXin LI
4697f074f9cSXin LI* Update Unicode character tables.
4707f074f9cSXin LI
4717f074f9cSXin LI* Support DESTDIR in Makefile.
4727f074f9cSXin LI
4737f074f9cSXin LI* Fix bug when filename contains certain shell metacharacters such as "$".
4747f074f9cSXin LI
4757f074f9cSXin LI* Fix bug when resizing the window while waiting for input from a pipe.
4767f074f9cSXin LI
4777f074f9cSXin LI* Fix configure bugs.
4787f074f9cSXin LI
4797f074f9cSXin LI======================================================================
4807f074f9cSXin LI
4816dcb072bSXin LI	Major changes between "less" versions 382 and 394
4826dcb072bSXin LI
4836dcb072bSXin LI* Add history file to save search and shell command history between
4846dcb072bSXin LI  invocations of less.
4856dcb072bSXin LI
4866dcb072bSXin LI* Improve behavior of history list for search and shell commands.
4876dcb072bSXin LI
4886dcb072bSXin LI* Add -K (or --quit-on-intr) option to make less exit immediately on ctrl-C.
4896dcb072bSXin LI
4906dcb072bSXin LI* Improve handling of UTF-8 files and commands, including better
4916dcb072bSXin LI  line wrapping and handling double-width chars.
4926dcb072bSXin LI
4936dcb072bSXin LI* Added LESSUTFBINFMT environment variable to control display of
4946dcb072bSXin LI  non-printable characters in a UTF-8 file.
4956dcb072bSXin LI
4966dcb072bSXin LI* Add --with-secure option to configure, to make it easier to
4976dcb072bSXin LI  build a secure version of less.
4986dcb072bSXin LI
4996dcb072bSXin LI* Show search matches in the status column even if search highlights
5006dcb072bSXin LI  are disabled via the -G option or the ESC-u command.
5016dcb072bSXin LI
5026dcb072bSXin LI* Improve performance when the file contains very long lines.
5036dcb072bSXin LI
5046dcb072bSXin LI* Add "windows" charset.
5056dcb072bSXin LI
5066dcb072bSXin LI* Add man page for lessecho.
5076dcb072bSXin LI
5086dcb072bSXin LI* Add support for erase2 character, treated same as erase.
5096dcb072bSXin LI
5106dcb072bSXin LI* Use ASCII lowercase/uppercase logic when operating on the command line.
5116dcb072bSXin LI
5126dcb072bSXin LI* Update makefile for Borland C++ 5.5.1.
5136dcb072bSXin LI
5146dcb072bSXin LI* Fix bug in calculating number of pages for %D prompt.
5156dcb072bSXin LI
5166dcb072bSXin LI* Fix bug in handling tag file error.
5176dcb072bSXin LI
5186dcb072bSXin LI* Fix obscure bug if input file is deleted while viewing help.
5196dcb072bSXin LI
5206dcb072bSXin LI* Fix bug handling filenames which include square brackets.
5216dcb072bSXin LI
5226dcb072bSXin LI* Fix possible buffer overflow in "global" tag search.
5236dcb072bSXin LI
5246dcb072bSXin LI* Fix possible buffer overflow in usage of LESSOPEN and LESSCLOSE.
5256dcb072bSXin LI
5266dcb072bSXin LI* Fix buffer overflow in reverse search.
5276dcb072bSXin LI
5286dcb072bSXin LI======================================================================
5296dcb072bSXin LI
5306dcb072bSXin LI	Major changes between "less" versions 381 and 382
5316dcb072bSXin LI
5326dcb072bSXin LI* Removed some old copyrighted code.
5336dcb072bSXin LI  This probably breaks OS/9 support.
5346dcb072bSXin LI
5356dcb072bSXin LI======================================================================
5366dcb072bSXin LI
537000ba3e8STim J. Robbins	Major changes between "less" versions 378 and 381
538000ba3e8STim J. Robbins
539000ba3e8STim J. Robbins* New -L option to disable LESSOPEN processing.
540000ba3e8STim J. Robbins
541000ba3e8STim J. Robbins* Further support for large (64 bit) file addressing.
542000ba3e8STim J. Robbins  Large file support is now set up by the configure script.
543000ba3e8STim J. Robbins
544000ba3e8STim J. Robbins* Use autoconf 2.54.
545000ba3e8STim J. Robbins  Replace configure.in, acconfig.h, defines.h.top with configure.ac.
546000ba3e8STim J. Robbins
547000ba3e8STim J. Robbins* Overstriking underscore with underscore is now bold or underlined
548000ba3e8STim J. Robbins  depending on context.
549000ba3e8STim J. Robbins
550000ba3e8STim J. Robbins* Use only 7 spaces for line numbers in -N mode, if possible.
551000ba3e8STim J. Robbins
552000ba3e8STim J. Robbins* Fix some bugs in handling overstriking in UTF-8 files.
553000ba3e8STim J. Robbins
554000ba3e8STim J. Robbins* Fix some nroff issues in the man page.
555000ba3e8STim J. Robbins
556000ba3e8STim J. Robbins======================================================================
557000ba3e8STim J. Robbins
558000ba3e8STim J. Robbins	Major changes between "less" versions 376 and 378
559000ba3e8STim J. Robbins
560000ba3e8STim J. Robbins* Bug fixes:
561000ba3e8STim J. Robbins  Default buffer space is now 64K as documented.
562000ba3e8STim J. Robbins  Search highlighting works properly when used with -R.
563000ba3e8STim J. Robbins  Windows version works properly when input file contains carriage returns.
564000ba3e8STim J. Robbins  Clean up some compiler warnings.
565000ba3e8STim J. Robbins
566000ba3e8STim J. Robbins======================================================================
567000ba3e8STim J. Robbins
568000ba3e8STim J. Robbins	Major changes between "less" versions 358 and 376
569c9346414SPaul Saab
570c9346414SPaul Saab* -x option can now specify multiple variable-width tab stops.
571c9346414SPaul Saab
572c9346414SPaul Saab* -X option no longer disables keypad initialization.
573c9346414SPaul Saab  New option --no-keypad disables keypad initialization.
574c9346414SPaul Saab
575c9346414SPaul Saab* New commands t and T step through multiple tag matches.
576c9346414SPaul Saab  Added support for "global(1)" tags
577c9346414SPaul Saab  (see http://www.gnu.org/software/global/global.html).
578c9346414SPaul Saab
579c9346414SPaul Saab* New prompt style set by option -Pw defines the message printed
580c9346414SPaul Saab  while waiting for data in the F command.
581c9346414SPaul Saab
582c9346414SPaul Saab* System-wide lesskey file now defaults to sysless in etc directory
583c9346414SPaul Saab  instead of .sysless in bin directory.
584c9346414SPaul Saab  Use "configure --sysconfdir=..." to change it.
585c9346414SPaul Saab  (For backwards compatibility, .sysless in bin is still recognized.)
586c9346414SPaul Saab
587c9346414SPaul Saab* Pressing RightArrow or LeftArrow while entering a number now shifts
588c9346414SPaul Saab  the display N columns rather than editing the number itself.
589c9346414SPaul Saab
590c9346414SPaul Saab* Status column (enabled with -J) now shows search results.
591c9346414SPaul Saab
592c9346414SPaul Saab* Windows version sets window title.
593c9346414SPaul Saab
594c9346414SPaul Saab* Default LESSCHARSET for MS-DOS versions is now "dos".
595c9346414SPaul Saab
596000ba3e8STim J. Robbins* Searching works better with ANSI (SGR) escape sequences.
597000ba3e8STim J. Robbins  ANSI color escape sequences are now supported in the MS-DOS (DJGPP) version.
598000ba3e8STim J. Robbins
599000ba3e8STim J. Robbins* Improved performance in reading very large pipes.
600c9346414SPaul Saab
601c9346414SPaul Saab* Eliminated some dependencies on file offets being 32 bits.
602c9346414SPaul Saab
603c9346414SPaul Saab* Fixed problems when viewing files with very long lines.
604c9346414SPaul Saab
605c9346414SPaul Saab* Fixed overstriking in UTF-8 mode, and overstriking tabs.
606c9346414SPaul Saab
607c9346414SPaul Saab* Improved horizontal shifting of text using -R option with ANSI color.
608c9346414SPaul Saab
609000ba3e8STim J. Robbins* Improved handling of filenames containing shell metacharacters.
610000ba3e8STim J. Robbins
611c9346414SPaul Saab* Some fixes for EBCDIC systems.
612c9346414SPaul Saab
613c9346414SPaul Saab* Some fixes for OS/2 systems.
614c9346414SPaul Saab
615c9346414SPaul Saab======================================================================
616c9346414SPaul Saab
6178ed69c6fSPaul Saab	Major changes between "less" versions 354 and 358
6188ed69c6fSPaul Saab
6198ed69c6fSPaul Saab* Add -J (--status-column) option to display a status column.
6208ed69c6fSPaul Saab
6218ed69c6fSPaul Saab* Add -# (--shift) option to set default horizontal shift distance.
6228ed69c6fSPaul Saab  Default horizontal shift distance is now one-half screen width.
6238ed69c6fSPaul Saab
6248ed69c6fSPaul Saab* Horizontal shifting does not shift line numbers if -N is in effect.
6258ed69c6fSPaul Saab
6268ed69c6fSPaul Saab* Horizontal shifting acts as though -S were set, to avoid confusion.
6278ed69c6fSPaul Saab
6288ed69c6fSPaul Saab======================================================================
6298ed69c6fSPaul Saab
6308ed69c6fSPaul Saab
631a5f0fb15SPaul Saab	Major changes between "less" versions 352 and 354
632a5f0fb15SPaul Saab
633a5f0fb15SPaul Saab* Allow space after numeric-valued command line options.
634a5f0fb15SPaul Saab
635a5f0fb15SPaul Saab* Fix problem with configuring terminal libraries on some systems.
636a5f0fb15SPaul Saab
637a5f0fb15SPaul Saab* Add support for PCRE regular expression library.
638a5f0fb15SPaul Saab
639a5f0fb15SPaul Saab* Add --with-regex option to configure to allow manually selecting
640a5f0fb15SPaul Saab  a regular expression library.
641a5f0fb15SPaul Saab
642a5f0fb15SPaul Saab* Fix bug compiling with SECURE = 1.
643a5f0fb15SPaul Saab
644a5f0fb15SPaul Saab======================================================================
645a5f0fb15SPaul Saab
646a5f0fb15SPaul Saab
647a5f0fb15SPaul Saab	Major changes between "less" versions 346 and 352
648a5f0fb15SPaul Saab
649a5f0fb15SPaul Saab* Enable UTF-8 if "UTF-8" appears in locale-related environment variables.
650a5f0fb15SPaul Saab
651a5f0fb15SPaul Saab* Add --with-editor option to configure script.
652a5f0fb15SPaul Saab
653a5f0fb15SPaul Saab* The -M prompt and = message now show the top and bottom line number.
654a5f0fb15SPaul Saab
655a5f0fb15SPaul Saab* Fix bug in running the editor on a file whose name contains quotes, etc.
656a5f0fb15SPaul Saab
657a5f0fb15SPaul Saab* Fix bug in horizontal scrolling of long lines.
658a5f0fb15SPaul Saab
659a5f0fb15SPaul Saab* Fix bug in doing :d on a file which contains marks.
660a5f0fb15SPaul Saab
661a5f0fb15SPaul Saab* Fix bug causing cleared lines to sometimes be filled with standout,
662a5f0fb15SPaul Saab  bold, underline, etc. on certain terminals.
663a5f0fb15SPaul Saab
664a5f0fb15SPaul Saab* Fixes for MS-DOS (DJGPP) version.
665a5f0fb15SPaul Saab
666a5f0fb15SPaul Saab======================================================================
667a5f0fb15SPaul Saab
668a5f0fb15SPaul Saab
669a5f0fb15SPaul Saab	Major changes between "less" versions 340 and 346
670a5f0fb15SPaul Saab
671a5f0fb15SPaul Saab* The UTF-8 character set is now supported.
672a5f0fb15SPaul Saab
673a5f0fb15SPaul Saab* The default character set is now latin1 rather than ascii.
674a5f0fb15SPaul Saab
675a5f0fb15SPaul Saab* New option -R (--RAW-CONTROL-CHARS) is like -r but handles
676a5f0fb15SPaul Saab  long (wrapped) lines correctly, as long as the input contains only
677a5f0fb15SPaul Saab  normal text and ANSI color escape sequences.
678a5f0fb15SPaul Saab
679a5f0fb15SPaul Saab* New option -F (--quit-if-one-screen) quits if the text fits on
680a5f0fb15SPaul Saab  the first screen.
681a5f0fb15SPaul Saab
682a5f0fb15SPaul Saab* The -w option now highlights the target line of a g or p command.
683a5f0fb15SPaul Saab
684a5f0fb15SPaul Saab* A system-wide lesskey file is supported (LESSKEY_SYSTEM).
685a5f0fb15SPaul Saab
686a5f0fb15SPaul Saab* New escape for prompt strings: %c is replaced by column number.
687a5f0fb15SPaul Saab
688a5f0fb15SPaul Saab* New escape for prompt strings: %P is replaced by percentage into
689a5f0fb15SPaul Saab  file, based on line number rather than byte offset.
690a5f0fb15SPaul Saab
691a5f0fb15SPaul Saab* HOME and END keys now jump to beginning of file or end of file.
692a5f0fb15SPaul Saab
693a5f0fb15SPaul Saab======================================================================
694a5f0fb15SPaul Saab
695a5f0fb15SPaul Saab
696a5f0fb15SPaul Saab	Major changes between "less" versions 337 and 340
697a5f0fb15SPaul Saab
698a5f0fb15SPaul Saab* Command line options for less may now be given in either the old
699a5f0fb15SPaul Saab  single-letter form, or a new long name form (--option-name).
700a5f0fb15SPaul Saab  See the less man page or "less --help" for the list of long option names.
701a5f0fb15SPaul Saab
702a5f0fb15SPaul Saab* Command line options for lesskey may now be given in a new long name
703a5f0fb15SPaul Saab  form.  See the lesskey man page for the list of long option names.
704a5f0fb15SPaul Saab
705a5f0fb15SPaul Saab* New command -- toggles an option using the long option name.
706a5f0fb15SPaul Saab
707a5f0fb15SPaul Saab* New command __ queries an option using the long option name.
708a5f0fb15SPaul Saab
709a5f0fb15SPaul Saab* The old -- command is renamed as -!.
710a5f0fb15SPaul Saab
711a5f0fb15SPaul Saab* If a ^P is entered between the dash and the option letter of the -
712a5f0fb15SPaul Saab  command, the message describing the new setting is suppressed.
713a5f0fb15SPaul Saab
714a5f0fb15SPaul Saab* Lesskey files may now contain \k escape sequences to represent the
715a5f0fb15SPaul Saab  "special" keys (arrows, PAGE-UP/PAGE-DOWN, HOME, END, INSERT, DELETE).
716a5f0fb15SPaul Saab
717a5f0fb15SPaul Saab* New command :d removes the current file from the list of files.
718a5f0fb15SPaul Saab
719a5f0fb15SPaul Saab* New option -~ (like -w before version 335)
720a5f0fb15SPaul Saab  suppresses tildes after end-of-file.
721a5f0fb15SPaul Saab
722a5f0fb15SPaul Saab* Less is now released under the GNU General Public License.
723a5f0fb15SPaul Saab
724a5f0fb15SPaul Saab======================================================================
725a5f0fb15SPaul Saab
726a5f0fb15SPaul Saab
727a5f0fb15SPaul Saab	Major changes between "less" versions 335 and 337
728a5f0fb15SPaul Saab
729a5f0fb15SPaul Saab* Fixed bugs in "make install".
730a5f0fb15SPaul Saab
731a5f0fb15SPaul Saab======================================================================
732a5f0fb15SPaul Saab
733a5f0fb15SPaul Saab
734a5f0fb15SPaul Saab	Major changes between "less" versions 332 and 335
735a5f0fb15SPaul Saab
736a5f0fb15SPaul Saab* The old -w flag (suppress tildes after end-of-file) has been removed.
737a5f0fb15SPaul Saab
738a5f0fb15SPaul Saab* New -w flag highlights the first new line after a forward-screen.
739a5f0fb15SPaul Saab
740a5f0fb15SPaul Saab* New -W flag highlights the first new line after any forward movement.
741a5f0fb15SPaul Saab
742a5f0fb15SPaul Saab* Window resize works even if LINES and/or COLUMNS environment
743a5f0fb15SPaul Saab  variables are incorrect.
744a5f0fb15SPaul Saab
745a5f0fb15SPaul Saab* New percent escapes for prompt strings:
746a5f0fb15SPaul Saab  %d is replaced by the page number, and
747a5f0fb15SPaul Saab  %D is replaced by the number of pages in the file.
748a5f0fb15SPaul Saab
749a5f0fb15SPaul Saab* Added charsets "iso8859" and "ebcdic".
750a5f0fb15SPaul Saab
751a5f0fb15SPaul Saab* In Windows version, uses HOMEDRIVE and HOMEPATH if HOME is not defined.
752a5f0fb15SPaul Saab
753a5f0fb15SPaul Saab* Fixed some bugs causing incorrect display on DOS/Windows.
754a5f0fb15SPaul Saab
755a5f0fb15SPaul Saab======================================================================
756a5f0fb15SPaul Saab
757a5f0fb15SPaul Saab
758a5f0fb15SPaul Saab	Major changes between "less" versions 330 and 332
759a5f0fb15SPaul Saab
760a5f0fb15SPaul Saab* Filenames from the command line are entered into the command history,
761a5f0fb15SPaul Saab  so UPARROW/DOWNARROW can be used to retrieve them from the :e command.
762a5f0fb15SPaul Saab
763a5f0fb15SPaul Saab* Now works correctly on Windows when using a scrolling terminal
764a5f0fb15SPaul Saab  window (buffer larger than display window).
765a5f0fb15SPaul Saab
766a5f0fb15SPaul Saab* On Windows, now restores the console screen on exit.
767a5f0fb15SPaul Saab  Use -X to get the old behavior.
768a5f0fb15SPaul Saab
769a5f0fb15SPaul Saab* Fixed bug on Windows when CAPS-LOCK or NUM-LOCK is pressed.
770a5f0fb15SPaul Saab
771a5f0fb15SPaul Saab* Fixed bug on Windows when piping output of an interactive program.
772a5f0fb15SPaul Saab
773a5f0fb15SPaul Saab* Fixed bug in tags file processing when tags file has DOS-style
774a5f0fb15SPaul Saab  line terminators (CR/LF).
775a5f0fb15SPaul Saab
776a5f0fb15SPaul Saab* Fixed compilation problem on OS/2.
777a5f0fb15SPaul Saab
778a5f0fb15SPaul Saab======================================================================
779a5f0fb15SPaul Saab
780a5f0fb15SPaul Saab
781a5f0fb15SPaul Saab	Major changes between "less" versions 321 and 330
782a5f0fb15SPaul Saab
783a5f0fb15SPaul Saab* Now supports filenames containing spaces (in double quotes).
784a5f0fb15SPaul Saab  New option -" can be used to change the quoting characters.
785a5f0fb15SPaul Saab
786a5f0fb15SPaul Saab* In filename completion, a slash is appended to a directory name.
787a5f0fb15SPaul Saab  If the environment variable LESSSEPARATOR is set, the value of
788a5f0fb15SPaul Saab  that variable, rather than a slash, is appended.
789a5f0fb15SPaul Saab
790a5f0fb15SPaul Saab* LeftArrow and RightArrow are same as ESC-[ and ESC-].
791a5f0fb15SPaul Saab
792a5f0fb15SPaul Saab* Added commands ESC-( and ESC-), same as ESC-[ and ESC-].
793a5f0fb15SPaul Saab
794a5f0fb15SPaul Saab* A "quit" command defined in a lesskey file may now have an "extra"
795a5f0fb15SPaul Saab  string, which is used to return an exit code from less when it quits.
796a5f0fb15SPaul Saab
797a5f0fb15SPaul Saab* New environment variables LESSMETACHARS and LESSMETAESCAPE provide
798a5f0fb15SPaul Saab  more control over how less interfaces to the shell.
799a5f0fb15SPaul Saab
800a5f0fb15SPaul Saab* Ported to Microsoft Visual C compiler for Windows.
801a5f0fb15SPaul Saab
802a5f0fb15SPaul Saab* Ported to DJGPP compiler for MS-DOS.
803a5f0fb15SPaul Saab
804a5f0fb15SPaul Saab* Bug fixes.
805a5f0fb15SPaul Saab
806a5f0fb15SPaul Saab======================================================================
807a5f0fb15SPaul Saab
808a5f0fb15SPaul Saab
809a5f0fb15SPaul Saab	Major changes between "less" versions 291 and 321
810a5f0fb15SPaul Saab
811a5f0fb15SPaul Saab* Command line at bottom of screen now scrolls, so it can be longer
812a5f0fb15SPaul Saab  than the screen width.
813a5f0fb15SPaul Saab
814a5f0fb15SPaul Saab* New commands ESC-] and ESC-[ scroll the display horizontally.
815a5f0fb15SPaul Saab
816a5f0fb15SPaul Saab* New command ESC-SPACE scrolls forward a full screen, even if it
817a5f0fb15SPaul Saab  hits end-of-file.
818a5f0fb15SPaul Saab
819a5f0fb15SPaul Saab* Alternate modifiers for search commands: ^N is same as !,
820a5f0fb15SPaul Saab  ^F is same as @, and ^E is same as *.
821a5f0fb15SPaul Saab
822a5f0fb15SPaul Saab* New modifier for search commands: ^K means highlight the matches
823a5f0fb15SPaul Saab  currently on-screen, but don't move to the first match.
824a5f0fb15SPaul Saab
825a5f0fb15SPaul Saab* New modifier for search commands: ^R means don't use regular
826a5f0fb15SPaul Saab  expressions in the search.
827a5f0fb15SPaul Saab
828a5f0fb15SPaul Saab* Environment variable LESSKEY gives name of default lesskey file.
829a5f0fb15SPaul Saab
830a5f0fb15SPaul Saab* Environment variable LESSSECURE will force less to run in
831a5f0fb15SPaul Saab  "secure" mode.
832a5f0fb15SPaul Saab
833a5f0fb15SPaul Saab* Command line argument "--" signals that the rest of the arguments
834a5f0fb15SPaul Saab  are files (not option flags).
835a5f0fb15SPaul Saab
836a5f0fb15SPaul Saab* Help file (less.hlp) is no longer installed.  Help text is now
837a5f0fb15SPaul Saab  embedded in the less executable itself.
838a5f0fb15SPaul Saab
839a5f0fb15SPaul Saab* Added -Ph to change the prompt for the help text.
840a5f0fb15SPaul Saab  Added -Ps to change the default short prompt (same as plain -P).
841a5f0fb15SPaul Saab
842a5f0fb15SPaul Saab* Ported to the Borland C compiler for MS-DOS.
843a5f0fb15SPaul Saab
844a5f0fb15SPaul Saab* Ported to Windows 95 & Windows NT.
845a5f0fb15SPaul Saab
846a5f0fb15SPaul Saab* Ported to OS-9.
847a5f0fb15SPaul Saab
848a5f0fb15SPaul Saab* Ported to GNU Hurd.
849a5f0fb15SPaul Saab
850a5f0fb15SPaul Saab======================================================================
851a5f0fb15SPaul Saab
852a5f0fb15SPaul Saab
853a5f0fb15SPaul Saab	Major changes between "less" versions 290 and 291
854a5f0fb15SPaul Saab
855a5f0fb15SPaul Saab* Less environment variables can be specified in lesskey files.
856a5f0fb15SPaul Saab
857a5f0fb15SPaul Saab* Fixed MS-DOS build.
858a5f0fb15SPaul Saab
859a5f0fb15SPaul Saab======================================================================
860a5f0fb15SPaul Saab
861a5f0fb15SPaul Saab
862a5f0fb15SPaul Saab	Major changes between "less" versions 278 and 290
863a5f0fb15SPaul Saab
864a5f0fb15SPaul Saab* Accepts GNU-style options "--help" and "--version".
865a5f0fb15SPaul Saab
866a5f0fb15SPaul Saab* OS/2 version looks for less.ini in $HOME before $INIT and $PATH.
867a5f0fb15SPaul Saab
868a5f0fb15SPaul Saab* Bug fixes
869a5f0fb15SPaul Saab
870a5f0fb15SPaul Saab======================================================================
871a5f0fb15SPaul Saab
872a5f0fb15SPaul Saab
873a5f0fb15SPaul Saab	Major changes between "less" versions 252 and 278
874a5f0fb15SPaul Saab
875a5f0fb15SPaul Saab* A LESSOPEN preprocessor may now pipe the converted file data to less,
876a5f0fb15SPaul Saab  rather than writing it to a temporary file.
877a5f0fb15SPaul Saab
878a5f0fb15SPaul Saab* Search pattern highlighting has been fixed.  It now highlights
879a5f0fb15SPaul Saab  reliably, even if a string is split across two screen lines,
880a5f0fb15SPaul Saab  contains TABs, etc.
881a5f0fb15SPaul Saab
882a5f0fb15SPaul Saab* The -F flag (which suppress search highlighting) has been changed
883a5f0fb15SPaul Saab  to -G.  A new flag, -g, changes search highlighting to highlight
884a5f0fb15SPaul Saab  only the string found by the last search command, instead of all
885a5f0fb15SPaul Saab  strings which match the last search command.
886a5f0fb15SPaul Saab
887a5f0fb15SPaul Saab* New flag -I acts like -i, but ignores case even if the search
888a5f0fb15SPaul Saab  pattern contains uppercase letters.
889a5f0fb15SPaul Saab
890a5f0fb15SPaul Saab* Less now checks for the environment variable VISUAL before EDITOR.
891a5f0fb15SPaul Saab
892a5f0fb15SPaul Saab* Ported to OS/2.
893a5f0fb15SPaul Saab
894a5f0fb15SPaul Saab======================================================================
895a5f0fb15SPaul Saab
896a5f0fb15SPaul Saab
897a5f0fb15SPaul Saab	Major changes between "less" versions 237 and 252
898a5f0fb15SPaul Saab
899a5f0fb15SPaul Saab* Changes in line-editing keys:
900a5f0fb15SPaul Saab  The literal key is now ^V or ^A rather than \ (backslash).
901a5f0fb15SPaul Saab  Filename completion commands (TAB and ^L) are disabled
902a5f0fb15SPaul Saab  when typing a search pattern.
903a5f0fb15SPaul Saab
904a5f0fb15SPaul Saab* Line-editing command keys can be redefined using lesskey.
905a5f0fb15SPaul Saab
906a5f0fb15SPaul Saab* Lesskey with no input file defaults to $HOME/.lesskey
907a5f0fb15SPaul Saab  rather than standard input.
908a5f0fb15SPaul Saab
909a5f0fb15SPaul Saab* New option -V displays version number of less.
910a5f0fb15SPaul Saab
911a5f0fb15SPaul Saab* New option -V displays version number of lesskey.
912a5f0fb15SPaul Saab
913a5f0fb15SPaul Saab* Help file less.hlp is now installed by default in /usr/local/share
914a5f0fb15SPaul Saab  rather than /usr/local/lib.
915a5f0fb15SPaul Saab
916a5f0fb15SPaul Saab
917a5f0fb15SPaul Saab======================================================================
918a5f0fb15SPaul Saab
919a5f0fb15SPaul Saab
920a5f0fb15SPaul Saab	Major changes between "less" versions 170 and 237
921a5f0fb15SPaul Saab
922a5f0fb15SPaul Saab* By popular demand, text which matches the current search pattern
923a5f0fb15SPaul Saab  is highlighted.  New -F flag disables this feature.
924a5f0fb15SPaul Saab
925a5f0fb15SPaul Saab* Henry Spencer's regexp.c is now included, for systems which do not
926a5f0fb15SPaul Saab  have a regular expression library.
927a5f0fb15SPaul Saab  regexp.c is Copyright (c) 1986 by University of Toronto.
928a5f0fb15SPaul Saab
929a5f0fb15SPaul Saab* New line-editing keys, including command history (arrow keys) and
930a5f0fb15SPaul Saab  filename completion (TAB).
931a5f0fb15SPaul Saab
932a5f0fb15SPaul Saab* Input preprocessor allows modification of input files (e.g. uncompress)
933a5f0fb15SPaul Saab  via LESSOPEN/LESSCLOSE environment variables.
934a5f0fb15SPaul Saab
935a5f0fb15SPaul Saab* New -X flag disables sending termcap "ti" and "te" (initialize and
936a5f0fb15SPaul Saab  deinitialize) strings to the terminal.
937a5f0fb15SPaul Saab
938a5f0fb15SPaul Saab* Changing -i from within less now correctly affects a subsequent
939a5f0fb15SPaul Saab  repeated search.
940a5f0fb15SPaul Saab
941a5f0fb15SPaul Saab* Searching for underlined or overstruck text now works when the -u
942a5f0fb15SPaul Saab  flag is in effect, rather than the -i flag.
943a5f0fb15SPaul Saab
944a5f0fb15SPaul Saab* Use setlocale (LANG and LC_CTYPE environment variables) to determine
945a5f0fb15SPaul Saab  the character set if LESSCHARSET/LESSCHARDEF are not set.
946a5f0fb15SPaul Saab
947a5f0fb15SPaul Saab* The default format for displaying binary characters is now standout
948a5f0fb15SPaul Saab  (reverse video) rather than blinking.  This can still be changed by
949a5f0fb15SPaul Saab  setting the LESSBINFMT environment variable.
950a5f0fb15SPaul Saab
951a5f0fb15SPaul Saab* Use autoconf installation technology.
952a5f0fb15SPaul Saab
953a5f0fb15SPaul Saab* Ported to MS-DOS.
954a5f0fb15SPaul Saab
955a5f0fb15SPaul Saab        ********************************
956a5f0fb15SPaul Saab          Things that may surprise you
957a5f0fb15SPaul Saab        ********************************
958a5f0fb15SPaul Saab
959a5f0fb15SPaul Saab* When you enter text at the bottom of the screen (search string,
960a5f0fb15SPaul Saab  filename, etc.), some keys act different than previously.
961a5f0fb15SPaul Saab  Specifically, \ (backslash), ESC, TAB, BACKTAB, and control-L
962a5f0fb15SPaul Saab  now have line editing functions.
963a5f0fb15SPaul Saab
964a5f0fb15SPaul Saab* Some previous unofficial versions of less were able to display
965a5f0fb15SPaul Saab  compressed files.  The new LESSOPEN/LESSCLOSE feature now provides
966a5f0fb15SPaul Saab  this functionality in a different way.
967a5f0fb15SPaul Saab
968a5f0fb15SPaul Saab* Some previous unofficial versions of less provided a -Z flag to
969a5f0fb15SPaul Saab  set the number of lines of text to retain between full screen scrolls.
970a5f0fb15SPaul Saab  The -z-n flag (that is, -z with a negative number) provides this
971a5f0fb15SPaul Saab  functionality.
972a5f0fb15SPaul Saab
973a5f0fb15SPaul Saab
974a5f0fb15SPaul Saab======================================================================
975a5f0fb15SPaul Saab
976a5f0fb15SPaul Saab
977a5f0fb15SPaul Saab	Major changes between "less" versions 123 and 170
978a5f0fb15SPaul Saab
979a5f0fb15SPaul Saab* New option -j allows target lines to be positioned anywhere on screen.
980a5f0fb15SPaul Saab
981a5f0fb15SPaul Saab* New option -S truncates displayed line at the screen width,
982a5f0fb15SPaul Saab  rather than wrapping onto the next line.
983a5f0fb15SPaul Saab
984a5f0fb15SPaul Saab* New option -y limits amount of forward scroll.
985a5f0fb15SPaul Saab
986a5f0fb15SPaul Saab* New option -T specifies a "tags" file.
987a5f0fb15SPaul Saab
988a5f0fb15SPaul Saab* Non-printable, non-control characters are displayed in octal.
989a5f0fb15SPaul Saab  Such characters, as well as control characters, are displayed
990a5f0fb15SPaul Saab  in blinking mode.
991a5f0fb15SPaul Saab
992a5f0fb15SPaul Saab* New command -+ sets an option to its default.
993a5f0fb15SPaul Saab* New command -- sets an option to the opposite of its default.
994a5f0fb15SPaul Saab
995a5f0fb15SPaul Saab* Lesskey file may have a string appended to a key's action,
996a5f0fb15SPaul Saab  which acts as though typed in after the command.
997a5f0fb15SPaul Saab
998a5f0fb15SPaul Saab* New commands ESC-^F and ESC-^B match arbitrary types of brackets.
999a5f0fb15SPaul Saab
1000a5f0fb15SPaul Saab* New command F monitors a growing file (like "tail -f").
1001a5f0fb15SPaul Saab
1002a5f0fb15SPaul Saab* New command | pipes a section of the input file into a shell command.
1003a5f0fb15SPaul Saab
1004a5f0fb15SPaul Saab* New command :x directly jumps to a file in the command line list.
1005a5f0fb15SPaul Saab
1006a5f0fb15SPaul Saab* Search commands have been enhanced and reorganized:
1007a5f0fb15SPaul Saab	n	Repeat search, same direction.
1008a5f0fb15SPaul Saab	N	Repeat search, opposite direction.
1009a5f0fb15SPaul Saab	ESC-/	Search forward thru file boundaries
1010a5f0fb15SPaul Saab	ESC-?	Search backward thru file boundaries
1011a5f0fb15SPaul Saab	ESC-n	Repeat search thru file boundaries, same direction.
1012a5f0fb15SPaul Saab	ESC-N	Repeat search thru file boundaries, opposite direction.
1013a5f0fb15SPaul Saab  Special character * causes search to search thru file boundaries.
1014a5f0fb15SPaul Saab  Special character @ causes search to begin at start/end of file list.
1015a5f0fb15SPaul Saab
1016a5f0fb15SPaul Saab* Examining a new file adds it to the command line list.
1017a5f0fb15SPaul Saab  A list of files, or an expression which matches more than one file,
1018a5f0fb15SPaul Saab  may be examined; all of them are added to the command line list.
1019a5f0fb15SPaul Saab
1020a5f0fb15SPaul Saab* Environment variables LESSCHARSET and LESSCHARDEF can define
1021a5f0fb15SPaul Saab  a non-ASCII character set.
1022a5f0fb15SPaul Saab
1023a5f0fb15SPaul Saab* Partial support for MSDOS, including options -R for repainting screen
1024a5f0fb15SPaul Saab  on quit, -v/-V to select video mode, and -W to change window size.
1025a5f0fb15SPaul Saab
1026a5f0fb15SPaul Saab
1027a5f0fb15SPaul Saab======================================================================
1028a5f0fb15SPaul Saab
1029a5f0fb15SPaul Saab
1030a5f0fb15SPaul Saab	Major changes between "less" versions 97 and 123
1031a5f0fb15SPaul Saab
1032a5f0fb15SPaul Saab* New option (-N) causes line numbers to be displayed in the
1033a5f0fb15SPaul Saab  text of the file (like vi "set nu").
1034a5f0fb15SPaul Saab
1035a5f0fb15SPaul Saab* New option (-?) prints help message immediately.
1036a5f0fb15SPaul Saab
1037a5f0fb15SPaul Saab* New option (-r) displays "raw" control characters, without
1038a5f0fb15SPaul Saab  mapping them to ^X notation.
1039a5f0fb15SPaul Saab
1040a5f0fb15SPaul Saab* New option (-f) forces less to open non-regular files
1041a5f0fb15SPaul Saab  (directories, etc).
1042a5f0fb15SPaul Saab
1043a5f0fb15SPaul Saab* New option (-k) can be used to specify lesskey files by name.
1044a5f0fb15SPaul Saab
1045a5f0fb15SPaul Saab* New option (-y) can be used to set a forward scroll limit
1046a5f0fb15SPaul Saab  (like -h sets a backward scroll limit).
1047a5f0fb15SPaul Saab
1048a5f0fb15SPaul Saab* File marks (set by the m command) are now preserved when a new
1049a5f0fb15SPaul Saab  file is edited.  The ' command can thus be used to switch files.
1050a5f0fb15SPaul Saab
1051a5f0fb15SPaul Saab* New command ESC-/ searches all files (on the command line)
1052a5f0fb15SPaul Saab  for a pattern.
1053a5f0fb15SPaul Saab
1054a5f0fb15SPaul Saab* New command ESC-n repeats previous search, spanning files.
1055a5f0fb15SPaul Saab
1056a5f0fb15SPaul Saab* The N command has been changed to repeat the previous search
1057a5f0fb15SPaul Saab  in the reverse direction.  The old N command is still available
1058a5f0fb15SPaul Saab  via :n.
1059a5f0fb15SPaul Saab
1060a5f0fb15SPaul Saab* New command ESC-N repeats previous search in the reverse
1061a5f0fb15SPaul Saab  direction and spanning files.
1062a5f0fb15SPaul Saab
1063a5f0fb15SPaul Saab* 8 bit characters are now supported.  A new option (-g) can be
1064a5f0fb15SPaul Saab  used to strip off the eighth bit (the previous behavior).
1065a5f0fb15SPaul Saab
1066a5f0fb15SPaul Saab* Options which take a following string (like -t) may now
1067a5f0fb15SPaul Saab  optionally have a space between the option letter and the string.
1068a5f0fb15SPaul Saab
1069a5f0fb15SPaul Saab* Six new commands { } ( ) [ and ] can be used to match
1070a5f0fb15SPaul Saab  brackets of specific types, similar to vi % command.
1071a5f0fb15SPaul Saab
1072a5f0fb15SPaul Saab* New commands z and w move forward/backward one window and
1073a5f0fb15SPaul Saab  simultaneously set the window size.
1074a5f0fb15SPaul Saab
1075a5f0fb15SPaul Saab* Prompt string expansion now has %L for line number of the last
1076a5f0fb15SPaul Saab  line in the file, and %E for the name of the editor.
1077a5f0fb15SPaul Saab  Also, % escapes which refer to a line (b=bottom, t=top, etc.)
1078a5f0fb15SPaul Saab  can use j for the jump target line.
1079a5f0fb15SPaul Saab
1080a5f0fb15SPaul Saab* New environment variable LESSEDIT can be used to tailor the
1081a5f0fb15SPaul Saab  command string passed to the editor by the v command.
1082a5f0fb15SPaul Saab
1083a5f0fb15SPaul Saab* Examining a file which was previously examined will return
1084a5f0fb15SPaul Saab  to the same position in the file.
1085a5f0fb15SPaul Saab
1086a5f0fb15SPaul Saab* A "%" is expanded to the current filename and a "#" to the
1087a5f0fb15SPaul Saab  previous filename, in both shell commands and the E command.
1088a5f0fb15SPaul Saab  (Previously % worked only in shell commands and # worked
1089a5f0fb15SPaul Saab  only in the E command.)
1090a5f0fb15SPaul Saab
1091a5f0fb15SPaul Saab* New command ":ta" is equivalent to "-t".
1092a5f0fb15SPaul Saab
1093a5f0fb15SPaul Saab* New command "s" is equivalent to "-l".
1094a5f0fb15SPaul Saab
1095a5f0fb15SPaul Saab* The - command may be followed by "+X" to revert to the default
1096a5f0fb15SPaul Saab  for option X, or "-X" to get the opposite of the default.
1097a5f0fb15SPaul Saab
1098a5f0fb15SPaul Saab* Lesskey files may now include characters after the action as
1099a5f0fb15SPaul Saab  extra input to be parsed after the action; for example:
1100a5f0fb15SPaul Saab  "toggle-option X" to toggle a specific option X.
11017f074f9cSXin LI
11027f074f9cSXin LI
11037f074f9cSXin LI
1104f78327b5SXin LI
1105464501a8SXin LI
1106