xref: /freebsd/contrib/less/NEWS (revision b2ea244070ff84eab79e04befb7aa30c982fc84d)
1a5f0fb15SPaul Saab
2a5f0fb15SPaul Saab                     NEWS about less
3a5f0fb15SPaul Saab
4a5f0fb15SPaul Saab======================================================================
5a5f0fb15SPaul Saab
6a5f0fb15SPaul Saab  For the latest news about less, see the "less" Web page:
7c9346414SPaul Saab      http://www.greenwoodsoftware.com/less
8a5f0fb15SPaul Saab  You can also download the latest version of less from there.
9a5f0fb15SPaul Saab
10a15691bfSXin LI  To report bugs, suggestions or comments, send email to bug-less@gnu.org
11a15691bfSXin LI
12a15691bfSXin LI======================================================================
13a15691bfSXin LI
14*b2ea2440SXin LI	Major changes between "less" versions 487 and 529
15f6b74a7dSXin LI
16f6b74a7dSXin LI* Don't output terminal init sequence if using -F and file fits on one screen.
17f6b74a7dSXin LI
18*b2ea2440SXin LI* When using -S, mark truncated lines with a special character.
19*b2ea2440SXin LI  The character can be changed or disabled via the new --rscroll option.
20f6b74a7dSXin LI
21*b2ea2440SXin LI* New command M marks the last line displayed on the screen.
22f6b74a7dSXin LI
23*b2ea2440SXin LI* New command ESC-m removes a line mark.
24*b2ea2440SXin LI
25*b2ea2440SXin LI* Status column (enabled via -J) now shows mark letters.
26*b2ea2440SXin LI
27*b2ea2440SXin LI* Status column shows search matches even if highlighting is disabled via -G.
28*b2ea2440SXin LI
29*b2ea2440SXin LI* A second ESC-u command will clear search match markers in the status column.
30*b2ea2440SXin LI
31*b2ea2440SXin LI* Do same ANSI escape code filtering for tag matching that we do for
32*b2ea2440SXin LI  searching, to help when viewing syntax-highlighted code.
33*b2ea2440SXin LI
34*b2ea2440SXin LI* Catch SIGTERM and clean up before exiting.
35*b2ea2440SXin LI
36*b2ea2440SXin LI* Fix bug initializing default charset on Windows.
37*b2ea2440SXin LI
38*b2ea2440SXin LI* Handle keypad ENTER key correctly if it sends something other than newline.
39*b2ea2440SXin LI
40*b2ea2440SXin LI* Fix buffering bug when using stdin with a LESSOPEN pipe.
41*b2ea2440SXin LI
42*b2ea2440SXin LI* On Windows, allow 'u' in -D option to enable underlining.
43*b2ea2440SXin LI
44*b2ea2440SXin LI* On Windows, use underline in sgr mode.
45*b2ea2440SXin LI
46*b2ea2440SXin LI* On Windows, convert UTF-8 to multibyte if console is not UTF-8.
47*b2ea2440SXin LI
48*b2ea2440SXin LI* Update Unicode tables to 2017-03-08.
49*b2ea2440SXin LI
50*b2ea2440SXin LI* Pass-thru Unicode formating chars (Cf type) instead of treating them
51*b2ea2440SXin LI  as binary chars. But treat them as binary if -U is set.
52*b2ea2440SXin LI
53*b2ea2440SXin LI* Fix erroneous binary file warning when UTF-8 file contains ANSI SGR sequences.
54*b2ea2440SXin LI
55*b2ea2440SXin LI* Fix bugs when using LESSOPEN and switching between stdin and other files.
56*b2ea2440SXin LI
57*b2ea2440SXin LI* Fix some bugs handling filenames containing shell metacharacters.
58f6b74a7dSXin LI
59f6b74a7dSXin LI* Fix some memory leaks.
60f6b74a7dSXin LI
61*b2ea2440SXin LI* Allow some debugging environment variables to be set in lesskey file.
62*b2ea2440SXin LI
63*b2ea2440SXin LI* Code improvements:
64*b2ea2440SXin LI  . Use ANSI prototypes in funcs.h declarations.
65*b2ea2440SXin LI  . Fix some const mismatches.
66*b2ea2440SXin LI  . Remove archaic "register" in variable declarations.
67*b2ea2440SXin LI
68f6b74a7dSXin LI======================================================================
69f6b74a7dSXin LI
70f6b74a7dSXin LI	Major changes between "less" versions 481 and 487
71f6b74a7dSXin LI
72f6b74a7dSXin LI* New commands ESC-{ and ESC-} to shift to start/end of displayed lines.
73f6b74a7dSXin LI
74f6b74a7dSXin LI* Make search highlights work correctly when changing caselessness with -i.
75f6b74a7dSXin LI
76f6b74a7dSXin LI* New option -Da in Windows version to enable SGR mode.
77f6b74a7dSXin LI
78f6b74a7dSXin LI* Fix "nothing to search" error when top or bottom line on screen is empty.
79f6b74a7dSXin LI
80f6b74a7dSXin LI* Fix bug when terminal has no "cm" termcap entry.
81f6b74a7dSXin LI
82f6b74a7dSXin LI* Fix incorrect display when entering double-width chars in search string.
83f6b74a7dSXin LI
84f6b74a7dSXin LI* Fix bug in Unicode handling that missed some double width characters.
85f6b74a7dSXin LI
86f6b74a7dSXin LI* Update Unicode database to 9.0.0.
87f6b74a7dSXin LI
88f6b74a7dSXin LI======================================================================
89f6b74a7dSXin LI
90a15691bfSXin LI	Major changes between "less" versions 458 and 481
91a15691bfSXin LI
92a15691bfSXin LI* Don't overwrite history file; just append to it.
93a15691bfSXin LI
94a15691bfSXin LI* New command ESC-G goes to end of currently buffered data in a pipe.
95a15691bfSXin LI
96a15691bfSXin LI* Disable history feature when compiled with LESSHISTFILE set to "-".
97a15691bfSXin LI
98a15691bfSXin LI* In more-compatible mode, make the -p option apply to every file opened,
99a15691bfSXin LI  not just the first one.
100a15691bfSXin LI
101a15691bfSXin LI* In more-compatible mode, change the -e option to work like -E, not -EF.
102a15691bfSXin LI
103a15691bfSXin LI* Treat multiple CRs before LF are like one CR (all the CRs are hidden).
104a15691bfSXin LI
105a15691bfSXin LI* Allow "extra" string in lesskey file to append to a multi-char command
106a15691bfSXin LI  (like a search pattern), without executing the command.
107a15691bfSXin LI
108a15691bfSXin LI* Ignore -u/-U setting while viewing help file, so that
109a15691bfSXin LI  underline and bold chars are displayed correctly.
110a15691bfSXin LI
111a15691bfSXin LI* Improve detection of "binary" files in UTF-8 mode.
112a15691bfSXin LI
113a15691bfSXin LI* Fix bug with ++ commands.
114a15691bfSXin LI
115a15691bfSXin LI* Fix bug where prompt was sometimes not displayed with +G.
116a15691bfSXin LI
117a15691bfSXin LI* Fix possible memory corruption
118a15691bfSXin LI
119a15691bfSXin LI* Fix bugs and improve performance in ampersand filtering.
120a15691bfSXin LI
121a15691bfSXin LI* Automate construction of Unicode tables from Unicode database.
122a15691bfSXin LI
123a15691bfSXin LI* Allow %% escape sequence in LESSOPEN variable.
12496e55cc7SXin LI
12596e55cc7SXin LI======================================================================
12696e55cc7SXin LI
1277bd2567cSXin LI	Major changes between "less" versions 451 and 458
1284cc5fc9aSXin LI
1297bd2567cSXin LI* Allow backslash escaping of metacharacters in LESS environment variable
1307bd2567cSXin LI  after the --use-backslash option.
1314cc5fc9aSXin LI
1324cc5fc9aSXin LI* Don't quit if syntax errors are found in command line options.
1334cc5fc9aSXin LI
1344cc5fc9aSXin LI* Increase sizes of some internal buffers.
1354cc5fc9aSXin LI
1364cc5fc9aSXin LI* Fix configure bug with --with-regex=none.
1374cc5fc9aSXin LI
1384cc5fc9aSXin LI* Fix crash with "stty rows 0".
1394cc5fc9aSXin LI
1404cc5fc9aSXin LI* Fix Win32 attribute display bug.
1414cc5fc9aSXin LI
1427bd2567cSXin LI* Fix display bug when using up/down arrow on the command line.
1437bd2567cSXin LI
1444cc5fc9aSXin LI======================================================================
1454cc5fc9aSXin LI
146e2449719SXin LI	Major changes between "less" versions 444 and 451
14796e55cc7SXin LI
14896e55cc7SXin LI* Add ESC-F command to keep reading data until a pattern is found.
14996e55cc7SXin LI
15096e55cc7SXin LI* Use exit code of LESSOPEN script if LESSOPEN starts with "||".
15196e55cc7SXin LI
15296e55cc7SXin LI* When up/down arrow is used on the command line immediately after
15396e55cc7SXin LI  typing text, the next command starting with that text is found.
15496e55cc7SXin LI
15596e55cc7SXin LI* Add support for GNU regex.
15696e55cc7SXin LI
15796e55cc7SXin LI* Add configure option --with-regex=none and fix compile errors
15896e55cc7SXin LI  when compiling with no regex library.
15996e55cc7SXin LI
16096e55cc7SXin LI* Fix bugs handling SGR sequences in Win32.
16196e55cc7SXin LI
16296e55cc7SXin LI* Fix possible crashes caused by malformed LESSOPEN or
16396e55cc7SXin LI  LESSCLOSE variables.
16496e55cc7SXin LI
16596e55cc7SXin LI* Fix bug highlighting text which is discontiguous in the file
16696e55cc7SXin LI  due to backspace processing.
16796e55cc7SXin LI
16896e55cc7SXin LI* Fix bug in displaying status column when scrolling backwards
16996e55cc7SXin LI  with -J and -S in effect.
170a5f0fb15SPaul Saab
171a5f0fb15SPaul Saab======================================================================
172a5f0fb15SPaul Saab
173b24bfc5aSXin LI	Major changes between "less" versions 443 and 444
174b24bfc5aSXin LI
175b24bfc5aSXin LI* Fix bug in unget handling that can cause strange effects on the
176b24bfc5aSXin LI  command line.
177b24bfc5aSXin LI
178b24bfc5aSXin LI* Remove vestiges of obsolete -l option that can cause a crash.
179b24bfc5aSXin LI
180b24bfc5aSXin LI======================================================================
181b24bfc5aSXin LI
18233096f16SXin LI	Major changes between "less" versions 436 and 443
18333096f16SXin LI
18433096f16SXin LI* Change search behavior such that when a search is given an explicit
18533096f16SXin LI  pattern, the entire displayed screen is included in the search and
18633096f16SXin LI  not just the portion after the target line.
18733096f16SXin LI
18833096f16SXin LI* Add -A option to change search behavior to the old way: only
18933096f16SXin LI  the portion of the screen after the target line is searched.
19033096f16SXin LI
19133096f16SXin LI* Add %F formatting to prompt strings, replaced by the last component
19233096f16SXin LI  of the input file.
19333096f16SXin LI
19433096f16SXin LI* Control-G while editing a command exits the command.
19533096f16SXin LI
19633096f16SXin LI* Less now exits with status 2 if control-C is pressed and -K is in effect.
19733096f16SXin LI
19833096f16SXin LI* Fix "ungetc overflow" when passing long commands via the -p option.
19933096f16SXin LI
20033096f16SXin LI* Fix bug in using line filtering via the & command
20133096f16SXin LI  in combination with -i and -I.
20233096f16SXin LI
20333096f16SXin LI* Fix bug in handling negative arguments to the -j option.
20433096f16SXin LI
20533096f16SXin LI* Fix bug in handling %t in prompt strings.
20633096f16SXin LI
20733096f16SXin LI* Improve handling of long option names.
20833096f16SXin LI
20933096f16SXin LI* Improve percentage calculation for very large files.
21033096f16SXin LI
21133096f16SXin LI======================================================================
21233096f16SXin LI
213f0be0a1fSXin LI	Major changes between "less" versions 429 and 436
214f0be0a1fSXin LI
215f0be0a1fSXin LI* Don't pass "-" to non-pipe LESSOPEN unless it starts with "-".
216f0be0a1fSXin LI
217f0be0a1fSXin LI* Allow a fraction as the argument to the -# (--shift) option.
218f0be0a1fSXin LI
219f0be0a1fSXin LI* Fix highlight bug when underlined/overstruck text matches at end of line.
220f0be0a1fSXin LI
221f0be0a1fSXin LI* Fix non-regex searches with ctrl-R.
222f0be0a1fSXin LI
223f0be0a1fSXin LI======================================================================
224f0be0a1fSXin LI
2257374caaaSXin LI	Major changes between "less" versions 424 and 429
2267374caaaSXin LI
2277374caaaSXin LI* LESSOPEN pipe will now be used on standard input, if the LESSOPEN
2287374caaaSXin LI  environment variable begins with "|-".
2297374caaaSXin LI
2307374caaaSXin LI* The -D option with one number now means use the normal background color.
2317374caaaSXin LI
2327374caaaSXin LI* Don't change permissions on history file if it is not a regular file.
2337374caaaSXin LI
2347374caaaSXin LI* Fix non-ANSI-compliant code that caused problems with some compilers.
2357374caaaSXin LI
2367374caaaSXin LI* Fix binary file detection in UTF-8 mode.
2377374caaaSXin LI
2387374caaaSXin LI* Fix display problems with long lines on "ignaw" terminals.
2397374caaaSXin LI
2407374caaaSXin LI* Fix problem interrupting the line number calculation for initial prompt.
2417374caaaSXin LI
2427374caaaSXin LI* Fix SGR emulation when dealing with multiple attributes (eg. bold+underline).
2437374caaaSXin LI
2447374caaaSXin LI* Fix highlight bug when searching for underlined/overstruck text.
2457374caaaSXin LI
2467374caaaSXin LI======================================================================
2477374caaaSXin LI
2487374caaaSXin LI	Major changes between "less" versions 418 and 424
2497374caaaSXin LI
2507374caaaSXin LI* New "&" command allows filtering of lines based on a pattern.
2517374caaaSXin LI
2527374caaaSXin LI* Status column now displays a search match, even if the matched
2537374caaaSXin LI  string is scrolled off screen because -S is in effect.
2547374caaaSXin LI
2557374caaaSXin LI* Improve behavior of -F option.
2567374caaaSXin LI
2577374caaaSXin LI* Allow CSI character (0x9B) to work in UTF-8 mode.
2587374caaaSXin LI
2597374caaaSXin LI* Output carriage return at startup in case terminal doesn't default
2607374caaaSXin LI  to column 1.
2617374caaaSXin LI
2627374caaaSXin LI* Fix bug in '' (quote, quote) command after G command.
2637374caaaSXin LI
2647374caaaSXin LI======================================================================
2657374caaaSXin LI
2667374caaaSXin LI	Major changes between "less" versions 416 and 418
2677374caaaSXin LI
2687374caaaSXin LI* Color escape sequences are now supported in WIN32 build.
2697374caaaSXin LI
2707374caaaSXin LI* Makefile now uses EXEEXT feature of autoconf.
2717374caaaSXin LI
2727374caaaSXin LI* Fix search bug when using -R and text contains ANSI color escape sequences.
2737374caaaSXin LI
2747374caaaSXin LI* Fix crash when using -r with UTF-8 text containing 0x9B bytes.
2757374caaaSXin LI
2767374caaaSXin LI* Fix display bug when using ' command to move less than one page forward.
2777374caaaSXin LI
2787374caaaSXin LI* Update GPL to version 3.
2797374caaaSXin LI
2807374caaaSXin LI======================================================================
281a5f0fb15SPaul Saab
28233a9f6abSXin LI	Major changes between "less" versions 409 and 416
283464501a8SXin LI
284464501a8SXin LI* New --follow-name option makes F command follow the name of a file
285464501a8SXin LI  rather than the file descriptor if an open file is renamed.
286464501a8SXin LI
287464501a8SXin LI* Make searching with -i/-I work correctly with non-ASCII text.
288464501a8SXin LI
289464501a8SXin LI* Fix DJGPP build.
290464501a8SXin LI
291464501a8SXin LI======================================================================
292464501a8SXin LI
293f78327b5SXin LI	Major changes between "less" versions 406 and 409
2941c6a5c10SXin LI
2951c6a5c10SXin LI* Support CSI escape sequences, like SGR escape sequences.
2961c6a5c10SXin LI
2971c6a5c10SXin LI* Fix bug which caused screen to fail to repaint when window is resized.
2981c6a5c10SXin LI
2991c6a5c10SXin LI* Fix bug in using -i and -I flags with non-ASCII text.
3001c6a5c10SXin LI
3011c6a5c10SXin LI* Fix configure bug on systems which don't support langinfo.h.
3021c6a5c10SXin LI
303f78327b5SXin LI* Fix crash when searching text containing certain invalid UTF-8 sequences.
304f78327b5SXin LI
3051c6a5c10SXin LI======================================================================
3061c6a5c10SXin LI
307efd72c2eSXin LI	Major changes between "less" versions 394 and 406
3087f074f9cSXin LI
3097f074f9cSXin LI* Allow decimal point in number for % (percent) command.
3107f074f9cSXin LI
3117f074f9cSXin LI* Allow decimal point in number for -j option (fraction of screen height).
3127f074f9cSXin LI
3137f074f9cSXin LI* Make n command fetch previous pattern from history file on first search.
3147f074f9cSXin LI
3157f074f9cSXin LI* Don't rewrite history file if it has not changed.
3167f074f9cSXin LI
3177f074f9cSXin LI* Don't move to bottom of screen on first page.
3187f074f9cSXin LI
3197f074f9cSXin LI* Don't output extraneous newlines, so copy & pasting lines from the
3207f074f9cSXin LI  output works better.
3217f074f9cSXin LI
3227f074f9cSXin LI* The -c option has been made identical with the -C option.
3237f074f9cSXin LI
3247f074f9cSXin LI* Allow "/dev/null" as synomym for "-" in LESSHISTFILE to indicate
3257f074f9cSXin LI  that no history file should be used.
3267f074f9cSXin LI
3277f074f9cSXin LI* Search can now find text which follows a null byte, if the PCRE
3287f074f9cSXin LI  library is used, or if no-regex searching (ctrl-R) is used.
3297f074f9cSXin LI
3307f074f9cSXin LI* Better compatibility with POSIX more specification.
3317f074f9cSXin LI
3327f074f9cSXin LI* Make -f work for directories.
3337f074f9cSXin LI
3347f074f9cSXin LI* Make "t" cmd traverse tags in the correct order.
3357f074f9cSXin LI
3367f074f9cSXin LI* Allow a few binary characters in the input file before warning
3377f074f9cSXin LI  that the file is binary.
3387f074f9cSXin LI
3397f074f9cSXin LI* Don't warn that file is binary if it merely contains ANSI color sequences
3407f074f9cSXin LI  and -R is in effect.
3417f074f9cSXin LI
3427f074f9cSXin LI* Update Unicode character tables.
3437f074f9cSXin LI
3447f074f9cSXin LI* Support DESTDIR in Makefile.
3457f074f9cSXin LI
3467f074f9cSXin LI* Fix bug when filename contains certain shell metacharacters such as "$".
3477f074f9cSXin LI
3487f074f9cSXin LI* Fix bug when resizing the window while waiting for input from a pipe.
3497f074f9cSXin LI
3507f074f9cSXin LI* Fix configure bugs.
3517f074f9cSXin LI
3527f074f9cSXin LI======================================================================
3537f074f9cSXin LI
3546dcb072bSXin LI	Major changes between "less" versions 382 and 394
3556dcb072bSXin LI
3566dcb072bSXin LI* Add history file to save search and shell command history between
3576dcb072bSXin LI  invocations of less.
3586dcb072bSXin LI
3596dcb072bSXin LI* Improve behavior of history list for search and shell commands.
3606dcb072bSXin LI
3616dcb072bSXin LI* Add -K (or --quit-on-intr) option to make less exit immediately on ctrl-C.
3626dcb072bSXin LI
3636dcb072bSXin LI* Improve handling of UTF-8 files and commands, including better
3646dcb072bSXin LI  line wrapping and handling double-width chars.
3656dcb072bSXin LI
3666dcb072bSXin LI* Added LESSUTFBINFMT environment variable to control display of
3676dcb072bSXin LI  non-printable characters in a UTF-8 file.
3686dcb072bSXin LI
3696dcb072bSXin LI* Add --with-secure option to configure, to make it easier to
3706dcb072bSXin LI  build a secure version of less.
3716dcb072bSXin LI
3726dcb072bSXin LI* Show search matches in the status column even if search highlights
3736dcb072bSXin LI  are disabled via the -G option or the ESC-u command.
3746dcb072bSXin LI
3756dcb072bSXin LI* Improve performance when the file contains very long lines.
3766dcb072bSXin LI
3776dcb072bSXin LI* Add "windows" charset.
3786dcb072bSXin LI
3796dcb072bSXin LI* Add man page for lessecho.
3806dcb072bSXin LI
3816dcb072bSXin LI* Add support for erase2 character, treated same as erase.
3826dcb072bSXin LI
3836dcb072bSXin LI* Use ASCII lowercase/uppercase logic when operating on the command line.
3846dcb072bSXin LI
3856dcb072bSXin LI* Update makefile for Borland C++ 5.5.1.
3866dcb072bSXin LI
3876dcb072bSXin LI* Fix bug in calculating number of pages for %D prompt.
3886dcb072bSXin LI
3896dcb072bSXin LI* Fix bug in handling tag file error.
3906dcb072bSXin LI
3916dcb072bSXin LI* Fix obscure bug if input file is deleted while viewing help.
3926dcb072bSXin LI
3936dcb072bSXin LI* Fix bug handling filenames which include square brackets.
3946dcb072bSXin LI
3956dcb072bSXin LI* Fix possible buffer overflow in "global" tag search.
3966dcb072bSXin LI
3976dcb072bSXin LI* Fix possible buffer overflow in usage of LESSOPEN and LESSCLOSE.
3986dcb072bSXin LI
3996dcb072bSXin LI* Fix buffer overflow in reverse search.
4006dcb072bSXin LI
4016dcb072bSXin LI======================================================================
4026dcb072bSXin LI
4036dcb072bSXin LI	Major changes between "less" versions 381 and 382
4046dcb072bSXin LI
4056dcb072bSXin LI* Removed some old copyrighted code.
4066dcb072bSXin LI  This probably breaks OS/9 support.
4076dcb072bSXin LI
4086dcb072bSXin LI======================================================================
4096dcb072bSXin LI
410000ba3e8STim J. Robbins	Major changes between "less" versions 378 and 381
411000ba3e8STim J. Robbins
412000ba3e8STim J. Robbins* New -L option to disable LESSOPEN processing.
413000ba3e8STim J. Robbins
414000ba3e8STim J. Robbins* Further support for large (64 bit) file addressing.
415000ba3e8STim J. Robbins  Large file support is now set up by the configure script.
416000ba3e8STim J. Robbins
417000ba3e8STim J. Robbins* Use autoconf 2.54.
418000ba3e8STim J. Robbins  Replace configure.in, acconfig.h, defines.h.top with configure.ac.
419000ba3e8STim J. Robbins
420000ba3e8STim J. Robbins* Overstriking underscore with underscore is now bold or underlined
421000ba3e8STim J. Robbins  depending on context.
422000ba3e8STim J. Robbins
423000ba3e8STim J. Robbins* Use only 7 spaces for line numbers in -N mode, if possible.
424000ba3e8STim J. Robbins
425000ba3e8STim J. Robbins* Fix some bugs in handling overstriking in UTF-8 files.
426000ba3e8STim J. Robbins
427000ba3e8STim J. Robbins* Fix some nroff issues in the man page.
428000ba3e8STim J. Robbins
429000ba3e8STim J. Robbins======================================================================
430000ba3e8STim J. Robbins
431000ba3e8STim J. Robbins	Major changes between "less" versions 376 and 378
432000ba3e8STim J. Robbins
433000ba3e8STim J. Robbins* Bug fixes:
434000ba3e8STim J. Robbins  Default buffer space is now 64K as documented.
435000ba3e8STim J. Robbins  Search highlighting works properly when used with -R.
436000ba3e8STim J. Robbins  Windows version works properly when input file contains carriage returns.
437000ba3e8STim J. Robbins  Clean up some compiler warnings.
438000ba3e8STim J. Robbins
439000ba3e8STim J. Robbins======================================================================
440000ba3e8STim J. Robbins
441000ba3e8STim J. Robbins	Major changes between "less" versions 358 and 376
442c9346414SPaul Saab
443c9346414SPaul Saab* -x option can now specify multiple variable-width tab stops.
444c9346414SPaul Saab
445c9346414SPaul Saab* -X option no longer disables keypad initialization.
446c9346414SPaul Saab  New option --no-keypad disables keypad initialization.
447c9346414SPaul Saab
448c9346414SPaul Saab* New commands t and T step through multiple tag matches.
449c9346414SPaul Saab  Added support for "global(1)" tags
450c9346414SPaul Saab  (see http://www.gnu.org/software/global/global.html).
451c9346414SPaul Saab
452c9346414SPaul Saab* New prompt style set by option -Pw defines the message printed
453c9346414SPaul Saab  while waiting for data in the F command.
454c9346414SPaul Saab
455c9346414SPaul Saab* System-wide lesskey file now defaults to sysless in etc directory
456c9346414SPaul Saab  instead of .sysless in bin directory.
457c9346414SPaul Saab  Use "configure --sysconfdir=..." to change it.
458c9346414SPaul Saab  (For backwards compatibility, .sysless in bin is still recognized.)
459c9346414SPaul Saab
460c9346414SPaul Saab* Pressing RightArrow or LeftArrow while entering a number now shifts
461c9346414SPaul Saab  the display N columns rather than editing the number itself.
462c9346414SPaul Saab
463c9346414SPaul Saab* Status column (enabled with -J) now shows search results.
464c9346414SPaul Saab
465c9346414SPaul Saab* Windows version sets window title.
466c9346414SPaul Saab
467c9346414SPaul Saab* Default LESSCHARSET for MS-DOS versions is now "dos".
468c9346414SPaul Saab
469000ba3e8STim J. Robbins* Searching works better with ANSI (SGR) escape sequences.
470000ba3e8STim J. Robbins  ANSI color escape sequences are now supported in the MS-DOS (DJGPP) version.
471000ba3e8STim J. Robbins
472000ba3e8STim J. Robbins* Improved performance in reading very large pipes.
473c9346414SPaul Saab
474c9346414SPaul Saab* Eliminated some dependencies on file offets being 32 bits.
475c9346414SPaul Saab
476c9346414SPaul Saab* Fixed problems when viewing files with very long lines.
477c9346414SPaul Saab
478c9346414SPaul Saab* Fixed overstriking in UTF-8 mode, and overstriking tabs.
479c9346414SPaul Saab
480c9346414SPaul Saab* Improved horizontal shifting of text using -R option with ANSI color.
481c9346414SPaul Saab
482000ba3e8STim J. Robbins* Improved handling of filenames containing shell metacharacters.
483000ba3e8STim J. Robbins
484c9346414SPaul Saab* Some fixes for EBCDIC systems.
485c9346414SPaul Saab
486c9346414SPaul Saab* Some fixes for OS/2 systems.
487c9346414SPaul Saab
488c9346414SPaul Saab======================================================================
489c9346414SPaul Saab
4908ed69c6fSPaul Saab	Major changes between "less" versions 354 and 358
4918ed69c6fSPaul Saab
4928ed69c6fSPaul Saab* Add -J (--status-column) option to display a status column.
4938ed69c6fSPaul Saab
4948ed69c6fSPaul Saab* Add -# (--shift) option to set default horizontal shift distance.
4958ed69c6fSPaul Saab  Default horizontal shift distance is now one-half screen width.
4968ed69c6fSPaul Saab
4978ed69c6fSPaul Saab* Horizontal shifting does not shift line numbers if -N is in effect.
4988ed69c6fSPaul Saab
4998ed69c6fSPaul Saab* Horizontal shifting acts as though -S were set, to avoid confusion.
5008ed69c6fSPaul Saab
5018ed69c6fSPaul Saab======================================================================
5028ed69c6fSPaul Saab
5038ed69c6fSPaul Saab
504a5f0fb15SPaul Saab	Major changes between "less" versions 352 and 354
505a5f0fb15SPaul Saab
506a5f0fb15SPaul Saab* Allow space after numeric-valued command line options.
507a5f0fb15SPaul Saab
508a5f0fb15SPaul Saab* Fix problem with configuring terminal libraries on some systems.
509a5f0fb15SPaul Saab
510a5f0fb15SPaul Saab* Add support for PCRE regular expression library.
511a5f0fb15SPaul Saab
512a5f0fb15SPaul Saab* Add --with-regex option to configure to allow manually selecting
513a5f0fb15SPaul Saab  a regular expression library.
514a5f0fb15SPaul Saab
515a5f0fb15SPaul Saab* Fix bug compiling with SECURE = 1.
516a5f0fb15SPaul Saab
517a5f0fb15SPaul Saab======================================================================
518a5f0fb15SPaul Saab
519a5f0fb15SPaul Saab
520a5f0fb15SPaul Saab	Major changes between "less" versions 346 and 352
521a5f0fb15SPaul Saab
522a5f0fb15SPaul Saab* Enable UTF-8 if "UTF-8" appears in locale-related environment variables.
523a5f0fb15SPaul Saab
524a5f0fb15SPaul Saab* Add --with-editor option to configure script.
525a5f0fb15SPaul Saab
526a5f0fb15SPaul Saab* The -M prompt and = message now show the top and bottom line number.
527a5f0fb15SPaul Saab
528a5f0fb15SPaul Saab* Fix bug in running the editor on a file whose name contains quotes, etc.
529a5f0fb15SPaul Saab
530a5f0fb15SPaul Saab* Fix bug in horizontal scrolling of long lines.
531a5f0fb15SPaul Saab
532a5f0fb15SPaul Saab* Fix bug in doing :d on a file which contains marks.
533a5f0fb15SPaul Saab
534a5f0fb15SPaul Saab* Fix bug causing cleared lines to sometimes be filled with standout,
535a5f0fb15SPaul Saab  bold, underline, etc. on certain terminals.
536a5f0fb15SPaul Saab
537a5f0fb15SPaul Saab* Fixes for MS-DOS (DJGPP) version.
538a5f0fb15SPaul Saab
539a5f0fb15SPaul Saab======================================================================
540a5f0fb15SPaul Saab
541a5f0fb15SPaul Saab
542a5f0fb15SPaul Saab	Major changes between "less" versions 340 and 346
543a5f0fb15SPaul Saab
544a5f0fb15SPaul Saab* The UTF-8 character set is now supported.
545a5f0fb15SPaul Saab
546a5f0fb15SPaul Saab* The default character set is now latin1 rather than ascii.
547a5f0fb15SPaul Saab
548a5f0fb15SPaul Saab* New option -R (--RAW-CONTROL-CHARS) is like -r but handles
549a5f0fb15SPaul Saab  long (wrapped) lines correctly, as long as the input contains only
550a5f0fb15SPaul Saab  normal text and ANSI color escape sequences.
551a5f0fb15SPaul Saab
552a5f0fb15SPaul Saab* New option -F (--quit-if-one-screen) quits if the text fits on
553a5f0fb15SPaul Saab  the first screen.
554a5f0fb15SPaul Saab
555a5f0fb15SPaul Saab* The -w option now highlights the target line of a g or p command.
556a5f0fb15SPaul Saab
557a5f0fb15SPaul Saab* A system-wide lesskey file is supported (LESSKEY_SYSTEM).
558a5f0fb15SPaul Saab
559a5f0fb15SPaul Saab* New escape for prompt strings: %c is replaced by column number.
560a5f0fb15SPaul Saab
561a5f0fb15SPaul Saab* New escape for prompt strings: %P is replaced by percentage into
562a5f0fb15SPaul Saab  file, based on line number rather than byte offset.
563a5f0fb15SPaul Saab
564a5f0fb15SPaul Saab* HOME and END keys now jump to beginning of file or end of file.
565a5f0fb15SPaul Saab
566a5f0fb15SPaul Saab======================================================================
567a5f0fb15SPaul Saab
568a5f0fb15SPaul Saab
569a5f0fb15SPaul Saab	Major changes between "less" versions 337 and 340
570a5f0fb15SPaul Saab
571a5f0fb15SPaul Saab* Command line options for less may now be given in either the old
572a5f0fb15SPaul Saab  single-letter form, or a new long name form (--option-name).
573a5f0fb15SPaul Saab  See the less man page or "less --help" for the list of long option names.
574a5f0fb15SPaul Saab
575a5f0fb15SPaul Saab* Command line options for lesskey may now be given in a new long name
576a5f0fb15SPaul Saab  form.  See the lesskey man page for the list of long option names.
577a5f0fb15SPaul Saab
578a5f0fb15SPaul Saab* New command -- toggles an option using the long option name.
579a5f0fb15SPaul Saab
580a5f0fb15SPaul Saab* New command __ queries an option using the long option name.
581a5f0fb15SPaul Saab
582a5f0fb15SPaul Saab* The old -- command is renamed as -!.
583a5f0fb15SPaul Saab
584a5f0fb15SPaul Saab* If a ^P is entered between the dash and the option letter of the -
585a5f0fb15SPaul Saab  command, the message describing the new setting is suppressed.
586a5f0fb15SPaul Saab
587a5f0fb15SPaul Saab* Lesskey files may now contain \k escape sequences to represent the
588a5f0fb15SPaul Saab  "special" keys (arrows, PAGE-UP/PAGE-DOWN, HOME, END, INSERT, DELETE).
589a5f0fb15SPaul Saab
590a5f0fb15SPaul Saab* New command :d removes the current file from the list of files.
591a5f0fb15SPaul Saab
592a5f0fb15SPaul Saab* New option -~ (like -w before version 335)
593a5f0fb15SPaul Saab  suppresses tildes after end-of-file.
594a5f0fb15SPaul Saab
595a5f0fb15SPaul Saab* Less is now released under the GNU General Public License.
596a5f0fb15SPaul Saab
597a5f0fb15SPaul Saab======================================================================
598a5f0fb15SPaul Saab
599a5f0fb15SPaul Saab
600a5f0fb15SPaul Saab	Major changes between "less" versions 335 and 337
601a5f0fb15SPaul Saab
602a5f0fb15SPaul Saab* Fixed bugs in "make install".
603a5f0fb15SPaul Saab
604a5f0fb15SPaul Saab======================================================================
605a5f0fb15SPaul Saab
606a5f0fb15SPaul Saab
607a5f0fb15SPaul Saab	Major changes between "less" versions 332 and 335
608a5f0fb15SPaul Saab
609a5f0fb15SPaul Saab* The old -w flag (suppress tildes after end-of-file) has been removed.
610a5f0fb15SPaul Saab
611a5f0fb15SPaul Saab* New -w flag highlights the first new line after a forward-screen.
612a5f0fb15SPaul Saab
613a5f0fb15SPaul Saab* New -W flag highlights the first new line after any forward movement.
614a5f0fb15SPaul Saab
615a5f0fb15SPaul Saab* Window resize works even if LINES and/or COLUMNS environment
616a5f0fb15SPaul Saab  variables are incorrect.
617a5f0fb15SPaul Saab
618a5f0fb15SPaul Saab* New percent escapes for prompt strings:
619a5f0fb15SPaul Saab  %d is replaced by the page number, and
620a5f0fb15SPaul Saab  %D is replaced by the number of pages in the file.
621a5f0fb15SPaul Saab
622a5f0fb15SPaul Saab* Added charsets "iso8859" and "ebcdic".
623a5f0fb15SPaul Saab
624a5f0fb15SPaul Saab* In Windows version, uses HOMEDRIVE and HOMEPATH if HOME is not defined.
625a5f0fb15SPaul Saab
626a5f0fb15SPaul Saab* Fixed some bugs causing incorrect display on DOS/Windows.
627a5f0fb15SPaul Saab
628a5f0fb15SPaul Saab======================================================================
629a5f0fb15SPaul Saab
630a5f0fb15SPaul Saab
631a5f0fb15SPaul Saab	Major changes between "less" versions 330 and 332
632a5f0fb15SPaul Saab
633a5f0fb15SPaul Saab* Filenames from the command line are entered into the command history,
634a5f0fb15SPaul Saab  so UPARROW/DOWNARROW can be used to retrieve them from the :e command.
635a5f0fb15SPaul Saab
636a5f0fb15SPaul Saab* Now works correctly on Windows when using a scrolling terminal
637a5f0fb15SPaul Saab  window (buffer larger than display window).
638a5f0fb15SPaul Saab
639a5f0fb15SPaul Saab* On Windows, now restores the console screen on exit.
640a5f0fb15SPaul Saab  Use -X to get the old behavior.
641a5f0fb15SPaul Saab
642a5f0fb15SPaul Saab* Fixed bug on Windows when CAPS-LOCK or NUM-LOCK is pressed.
643a5f0fb15SPaul Saab
644a5f0fb15SPaul Saab* Fixed bug on Windows when piping output of an interactive program.
645a5f0fb15SPaul Saab
646a5f0fb15SPaul Saab* Fixed bug in tags file processing when tags file has DOS-style
647a5f0fb15SPaul Saab  line terminators (CR/LF).
648a5f0fb15SPaul Saab
649a5f0fb15SPaul Saab* Fixed compilation problem on OS/2.
650a5f0fb15SPaul Saab
651a5f0fb15SPaul Saab======================================================================
652a5f0fb15SPaul Saab
653a5f0fb15SPaul Saab
654a5f0fb15SPaul Saab	Major changes between "less" versions 321 and 330
655a5f0fb15SPaul Saab
656a5f0fb15SPaul Saab* Now supports filenames containing spaces (in double quotes).
657a5f0fb15SPaul Saab  New option -" can be used to change the quoting characters.
658a5f0fb15SPaul Saab
659a5f0fb15SPaul Saab* In filename completion, a slash is appended to a directory name.
660a5f0fb15SPaul Saab  If the environment variable LESSSEPARATOR is set, the value of
661a5f0fb15SPaul Saab  that variable, rather than a slash, is appended.
662a5f0fb15SPaul Saab
663a5f0fb15SPaul Saab* LeftArrow and RightArrow are same as ESC-[ and ESC-].
664a5f0fb15SPaul Saab
665a5f0fb15SPaul Saab* Added commands ESC-( and ESC-), same as ESC-[ and ESC-].
666a5f0fb15SPaul Saab
667a5f0fb15SPaul Saab* A "quit" command defined in a lesskey file may now have an "extra"
668a5f0fb15SPaul Saab  string, which is used to return an exit code from less when it quits.
669a5f0fb15SPaul Saab
670a5f0fb15SPaul Saab* New environment variables LESSMETACHARS and LESSMETAESCAPE provide
671a5f0fb15SPaul Saab  more control over how less interfaces to the shell.
672a5f0fb15SPaul Saab
673a5f0fb15SPaul Saab* Ported to Microsoft Visual C compiler for Windows.
674a5f0fb15SPaul Saab
675a5f0fb15SPaul Saab* Ported to DJGPP compiler for MS-DOS.
676a5f0fb15SPaul Saab
677a5f0fb15SPaul Saab* Bug fixes.
678a5f0fb15SPaul Saab
679a5f0fb15SPaul Saab======================================================================
680a5f0fb15SPaul Saab
681a5f0fb15SPaul Saab
682a5f0fb15SPaul Saab	Major changes between "less" versions 291 and 321
683a5f0fb15SPaul Saab
684a5f0fb15SPaul Saab* Command line at bottom of screen now scrolls, so it can be longer
685a5f0fb15SPaul Saab  than the screen width.
686a5f0fb15SPaul Saab
687a5f0fb15SPaul Saab* New commands ESC-] and ESC-[ scroll the display horizontally.
688a5f0fb15SPaul Saab
689a5f0fb15SPaul Saab* New command ESC-SPACE scrolls forward a full screen, even if it
690a5f0fb15SPaul Saab  hits end-of-file.
691a5f0fb15SPaul Saab
692a5f0fb15SPaul Saab* Alternate modifiers for search commands: ^N is same as !,
693a5f0fb15SPaul Saab  ^F is same as @, and ^E is same as *.
694a5f0fb15SPaul Saab
695a5f0fb15SPaul Saab* New modifier for search commands: ^K means highlight the matches
696a5f0fb15SPaul Saab  currently on-screen, but don't move to the first match.
697a5f0fb15SPaul Saab
698a5f0fb15SPaul Saab* New modifier for search commands: ^R means don't use regular
699a5f0fb15SPaul Saab  expressions in the search.
700a5f0fb15SPaul Saab
701a5f0fb15SPaul Saab* Environment variable LESSKEY gives name of default lesskey file.
702a5f0fb15SPaul Saab
703a5f0fb15SPaul Saab* Environment variable LESSSECURE will force less to run in
704a5f0fb15SPaul Saab  "secure" mode.
705a5f0fb15SPaul Saab
706a5f0fb15SPaul Saab* Command line argument "--" signals that the rest of the arguments
707a5f0fb15SPaul Saab  are files (not option flags).
708a5f0fb15SPaul Saab
709a5f0fb15SPaul Saab* Help file (less.hlp) is no longer installed.  Help text is now
710a5f0fb15SPaul Saab  embedded in the less executable itself.
711a5f0fb15SPaul Saab
712a5f0fb15SPaul Saab* Added -Ph to change the prompt for the help text.
713a5f0fb15SPaul Saab  Added -Ps to change the default short prompt (same as plain -P).
714a5f0fb15SPaul Saab
715a5f0fb15SPaul Saab* Ported to the Borland C compiler for MS-DOS.
716a5f0fb15SPaul Saab
717a5f0fb15SPaul Saab* Ported to Windows 95 & Windows NT.
718a5f0fb15SPaul Saab
719a5f0fb15SPaul Saab* Ported to OS-9.
720a5f0fb15SPaul Saab
721a5f0fb15SPaul Saab* Ported to GNU Hurd.
722a5f0fb15SPaul Saab
723a5f0fb15SPaul Saab======================================================================
724a5f0fb15SPaul Saab
725a5f0fb15SPaul Saab
726a5f0fb15SPaul Saab	Major changes between "less" versions 290 and 291
727a5f0fb15SPaul Saab
728a5f0fb15SPaul Saab* Less environment variables can be specified in lesskey files.
729a5f0fb15SPaul Saab
730a5f0fb15SPaul Saab* Fixed MS-DOS build.
731a5f0fb15SPaul Saab
732a5f0fb15SPaul Saab======================================================================
733a5f0fb15SPaul Saab
734a5f0fb15SPaul Saab
735a5f0fb15SPaul Saab	Major changes between "less" versions 278 and 290
736a5f0fb15SPaul Saab
737a5f0fb15SPaul Saab* Accepts GNU-style options "--help" and "--version".
738a5f0fb15SPaul Saab
739a5f0fb15SPaul Saab* OS/2 version looks for less.ini in $HOME before $INIT and $PATH.
740a5f0fb15SPaul Saab
741a5f0fb15SPaul Saab* Bug fixes
742a5f0fb15SPaul Saab
743a5f0fb15SPaul Saab======================================================================
744a5f0fb15SPaul Saab
745a5f0fb15SPaul Saab
746a5f0fb15SPaul Saab	Major changes between "less" versions 252 and 278
747a5f0fb15SPaul Saab
748a5f0fb15SPaul Saab* A LESSOPEN preprocessor may now pipe the converted file data to less,
749a5f0fb15SPaul Saab  rather than writing it to a temporary file.
750a5f0fb15SPaul Saab
751a5f0fb15SPaul Saab* Search pattern highlighting has been fixed.  It now highlights
752a5f0fb15SPaul Saab  reliably, even if a string is split across two screen lines,
753a5f0fb15SPaul Saab  contains TABs, etc.
754a5f0fb15SPaul Saab
755a5f0fb15SPaul Saab* The -F flag (which suppress search highlighting) has been changed
756a5f0fb15SPaul Saab  to -G.  A new flag, -g, changes search highlighting to highlight
757a5f0fb15SPaul Saab  only the string found by the last search command, instead of all
758a5f0fb15SPaul Saab  strings which match the last search command.
759a5f0fb15SPaul Saab
760a5f0fb15SPaul Saab* New flag -I acts like -i, but ignores case even if the search
761a5f0fb15SPaul Saab  pattern contains uppercase letters.
762a5f0fb15SPaul Saab
763a5f0fb15SPaul Saab* Less now checks for the environment variable VISUAL before EDITOR.
764a5f0fb15SPaul Saab
765a5f0fb15SPaul Saab* Ported to OS/2.
766a5f0fb15SPaul Saab
767a5f0fb15SPaul Saab======================================================================
768a5f0fb15SPaul Saab
769a5f0fb15SPaul Saab
770a5f0fb15SPaul Saab	Major changes between "less" versions 237 and 252
771a5f0fb15SPaul Saab
772a5f0fb15SPaul Saab* Changes in line-editing keys:
773a5f0fb15SPaul Saab  The literal key is now ^V or ^A rather than \ (backslash).
774a5f0fb15SPaul Saab  Filename completion commands (TAB and ^L) are disabled
775a5f0fb15SPaul Saab  when typing a search pattern.
776a5f0fb15SPaul Saab
777a5f0fb15SPaul Saab* Line-editing command keys can be redefined using lesskey.
778a5f0fb15SPaul Saab
779a5f0fb15SPaul Saab* Lesskey with no input file defaults to $HOME/.lesskey
780a5f0fb15SPaul Saab  rather than standard input.
781a5f0fb15SPaul Saab
782a5f0fb15SPaul Saab* New option -V displays version number of less.
783a5f0fb15SPaul Saab
784a5f0fb15SPaul Saab* New option -V displays version number of lesskey.
785a5f0fb15SPaul Saab
786a5f0fb15SPaul Saab* Help file less.hlp is now installed by default in /usr/local/share
787a5f0fb15SPaul Saab  rather than /usr/local/lib.
788a5f0fb15SPaul Saab
789a5f0fb15SPaul Saab
790a5f0fb15SPaul Saab======================================================================
791a5f0fb15SPaul Saab
792a5f0fb15SPaul Saab
793a5f0fb15SPaul Saab	Major changes between "less" versions 170 and 237
794a5f0fb15SPaul Saab
795a5f0fb15SPaul Saab* By popular demand, text which matches the current search pattern
796a5f0fb15SPaul Saab  is highlighted.  New -F flag disables this feature.
797a5f0fb15SPaul Saab
798a5f0fb15SPaul Saab* Henry Spencer's regexp.c is now included, for systems which do not
799a5f0fb15SPaul Saab  have a regular expression library.
800a5f0fb15SPaul Saab  regexp.c is Copyright (c) 1986 by University of Toronto.
801a5f0fb15SPaul Saab
802a5f0fb15SPaul Saab* New line-editing keys, including command history (arrow keys) and
803a5f0fb15SPaul Saab  filename completion (TAB).
804a5f0fb15SPaul Saab
805a5f0fb15SPaul Saab* Input preprocessor allows modification of input files (e.g. uncompress)
806a5f0fb15SPaul Saab  via LESSOPEN/LESSCLOSE environment variables.
807a5f0fb15SPaul Saab
808a5f0fb15SPaul Saab* New -X flag disables sending termcap "ti" and "te" (initialize and
809a5f0fb15SPaul Saab  deinitialize) strings to the terminal.
810a5f0fb15SPaul Saab
811a5f0fb15SPaul Saab* Changing -i from within less now correctly affects a subsequent
812a5f0fb15SPaul Saab  repeated search.
813a5f0fb15SPaul Saab
814a5f0fb15SPaul Saab* Searching for underlined or overstruck text now works when the -u
815a5f0fb15SPaul Saab  flag is in effect, rather than the -i flag.
816a5f0fb15SPaul Saab
817a5f0fb15SPaul Saab* Use setlocale (LANG and LC_CTYPE environment variables) to determine
818a5f0fb15SPaul Saab  the character set if LESSCHARSET/LESSCHARDEF are not set.
819a5f0fb15SPaul Saab
820a5f0fb15SPaul Saab* The default format for displaying binary characters is now standout
821a5f0fb15SPaul Saab  (reverse video) rather than blinking.  This can still be changed by
822a5f0fb15SPaul Saab  setting the LESSBINFMT environment variable.
823a5f0fb15SPaul Saab
824a5f0fb15SPaul Saab* Use autoconf installation technology.
825a5f0fb15SPaul Saab
826a5f0fb15SPaul Saab* Ported to MS-DOS.
827a5f0fb15SPaul Saab
828a5f0fb15SPaul Saab        ********************************
829a5f0fb15SPaul Saab          Things that may surprise you
830a5f0fb15SPaul Saab        ********************************
831a5f0fb15SPaul Saab
832a5f0fb15SPaul Saab* When you enter text at the bottom of the screen (search string,
833a5f0fb15SPaul Saab  filename, etc.), some keys act different than previously.
834a5f0fb15SPaul Saab  Specifically, \ (backslash), ESC, TAB, BACKTAB, and control-L
835a5f0fb15SPaul Saab  now have line editing functions.
836a5f0fb15SPaul Saab
837a5f0fb15SPaul Saab* Some previous unofficial versions of less were able to display
838a5f0fb15SPaul Saab  compressed files.  The new LESSOPEN/LESSCLOSE feature now provides
839a5f0fb15SPaul Saab  this functionality in a different way.
840a5f0fb15SPaul Saab
841a5f0fb15SPaul Saab* Some previous unofficial versions of less provided a -Z flag to
842a5f0fb15SPaul Saab  set the number of lines of text to retain between full screen scrolls.
843a5f0fb15SPaul Saab  The -z-n flag (that is, -z with a negative number) provides this
844a5f0fb15SPaul Saab  functionality.
845a5f0fb15SPaul Saab
846a5f0fb15SPaul Saab
847a5f0fb15SPaul Saab======================================================================
848a5f0fb15SPaul Saab
849a5f0fb15SPaul Saab
850a5f0fb15SPaul Saab	Major changes between "less" versions 123 and 170
851a5f0fb15SPaul Saab
852a5f0fb15SPaul Saab* New option -j allows target lines to be positioned anywhere on screen.
853a5f0fb15SPaul Saab
854a5f0fb15SPaul Saab* New option -S truncates displayed line at the screen width,
855a5f0fb15SPaul Saab  rather than wrapping onto the next line.
856a5f0fb15SPaul Saab
857a5f0fb15SPaul Saab* New option -y limits amount of forward scroll.
858a5f0fb15SPaul Saab
859a5f0fb15SPaul Saab* New option -T specifies a "tags" file.
860a5f0fb15SPaul Saab
861a5f0fb15SPaul Saab* Non-printable, non-control characters are displayed in octal.
862a5f0fb15SPaul Saab  Such characters, as well as control characters, are displayed
863a5f0fb15SPaul Saab  in blinking mode.
864a5f0fb15SPaul Saab
865a5f0fb15SPaul Saab* New command -+ sets an option to its default.
866a5f0fb15SPaul Saab* New command -- sets an option to the opposite of its default.
867a5f0fb15SPaul Saab
868a5f0fb15SPaul Saab* Lesskey file may have a string appended to a key's action,
869a5f0fb15SPaul Saab  which acts as though typed in after the command.
870a5f0fb15SPaul Saab
871a5f0fb15SPaul Saab* New commands ESC-^F and ESC-^B match arbitrary types of brackets.
872a5f0fb15SPaul Saab
873a5f0fb15SPaul Saab* New command F monitors a growing file (like "tail -f").
874a5f0fb15SPaul Saab
875a5f0fb15SPaul Saab* New command | pipes a section of the input file into a shell command.
876a5f0fb15SPaul Saab
877a5f0fb15SPaul Saab* New command :x directly jumps to a file in the command line list.
878a5f0fb15SPaul Saab
879a5f0fb15SPaul Saab* Search commands have been enhanced and reorganized:
880a5f0fb15SPaul Saab	n	Repeat search, same direction.
881a5f0fb15SPaul Saab	N	Repeat search, opposite direction.
882a5f0fb15SPaul Saab	ESC-/	Search forward thru file boundaries
883a5f0fb15SPaul Saab	ESC-?	Search backward thru file boundaries
884a5f0fb15SPaul Saab	ESC-n	Repeat search thru file boundaries, same direction.
885a5f0fb15SPaul Saab	ESC-N	Repeat search thru file boundaries, opposite direction.
886a5f0fb15SPaul Saab  Special character * causes search to search thru file boundaries.
887a5f0fb15SPaul Saab  Special character @ causes search to begin at start/end of file list.
888a5f0fb15SPaul Saab
889a5f0fb15SPaul Saab* Examining a new file adds it to the command line list.
890a5f0fb15SPaul Saab  A list of files, or an expression which matches more than one file,
891a5f0fb15SPaul Saab  may be examined; all of them are added to the command line list.
892a5f0fb15SPaul Saab
893a5f0fb15SPaul Saab* Environment variables LESSCHARSET and LESSCHARDEF can define
894a5f0fb15SPaul Saab  a non-ASCII character set.
895a5f0fb15SPaul Saab
896a5f0fb15SPaul Saab* Partial support for MSDOS, including options -R for repainting screen
897a5f0fb15SPaul Saab  on quit, -v/-V to select video mode, and -W to change window size.
898a5f0fb15SPaul Saab
899a5f0fb15SPaul Saab
900a5f0fb15SPaul Saab======================================================================
901a5f0fb15SPaul Saab
902a5f0fb15SPaul Saab
903a5f0fb15SPaul Saab	Major changes between "less" versions 97 and 123
904a5f0fb15SPaul Saab
905a5f0fb15SPaul Saab* New option (-N) causes line numbers to be displayed in the
906a5f0fb15SPaul Saab  text of the file (like vi "set nu").
907a5f0fb15SPaul Saab
908a5f0fb15SPaul Saab* New option (-?) prints help message immediately.
909a5f0fb15SPaul Saab
910a5f0fb15SPaul Saab* New option (-r) displays "raw" control characters, without
911a5f0fb15SPaul Saab  mapping them to ^X notation.
912a5f0fb15SPaul Saab
913a5f0fb15SPaul Saab* New option (-f) forces less to open non-regular files
914a5f0fb15SPaul Saab  (directories, etc).
915a5f0fb15SPaul Saab
916a5f0fb15SPaul Saab* New option (-k) can be used to specify lesskey files by name.
917a5f0fb15SPaul Saab
918a5f0fb15SPaul Saab* New option (-y) can be used to set a forward scroll limit
919a5f0fb15SPaul Saab  (like -h sets a backward scroll limit).
920a5f0fb15SPaul Saab
921a5f0fb15SPaul Saab* File marks (set by the m command) are now preserved when a new
922a5f0fb15SPaul Saab  file is edited.  The ' command can thus be used to switch files.
923a5f0fb15SPaul Saab
924a5f0fb15SPaul Saab* New command ESC-/ searches all files (on the command line)
925a5f0fb15SPaul Saab  for a pattern.
926a5f0fb15SPaul Saab
927a5f0fb15SPaul Saab* New command ESC-n repeats previous search, spanning files.
928a5f0fb15SPaul Saab
929a5f0fb15SPaul Saab* The N command has been changed to repeat the previous search
930a5f0fb15SPaul Saab  in the reverse direction.  The old N command is still available
931a5f0fb15SPaul Saab  via :n.
932a5f0fb15SPaul Saab
933a5f0fb15SPaul Saab* New command ESC-N repeats previous search in the reverse
934a5f0fb15SPaul Saab  direction and spanning files.
935a5f0fb15SPaul Saab
936a5f0fb15SPaul Saab* 8 bit characters are now supported.  A new option (-g) can be
937a5f0fb15SPaul Saab  used to strip off the eighth bit (the previous behavior).
938a5f0fb15SPaul Saab
939a5f0fb15SPaul Saab* Options which take a following string (like -t) may now
940a5f0fb15SPaul Saab  optionally have a space between the option letter and the string.
941a5f0fb15SPaul Saab
942a5f0fb15SPaul Saab* Six new commands { } ( ) [ and ] can be used to match
943a5f0fb15SPaul Saab  brackets of specific types, similar to vi % command.
944a5f0fb15SPaul Saab
945a5f0fb15SPaul Saab* New commands z and w move forward/backward one window and
946a5f0fb15SPaul Saab  simultaneously set the window size.
947a5f0fb15SPaul Saab
948a5f0fb15SPaul Saab* Prompt string expansion now has %L for line number of the last
949a5f0fb15SPaul Saab  line in the file, and %E for the name of the editor.
950a5f0fb15SPaul Saab  Also, % escapes which refer to a line (b=bottom, t=top, etc.)
951a5f0fb15SPaul Saab  can use j for the jump target line.
952a5f0fb15SPaul Saab
953a5f0fb15SPaul Saab* New environment variable LESSEDIT can be used to tailor the
954a5f0fb15SPaul Saab  command string passed to the editor by the v command.
955a5f0fb15SPaul Saab
956a5f0fb15SPaul Saab* Examining a file which was previously examined will return
957a5f0fb15SPaul Saab  to the same position in the file.
958a5f0fb15SPaul Saab
959a5f0fb15SPaul Saab* A "%" is expanded to the current filename and a "#" to the
960a5f0fb15SPaul Saab  previous filename, in both shell commands and the E command.
961a5f0fb15SPaul Saab  (Previously % worked only in shell commands and # worked
962a5f0fb15SPaul Saab  only in the E command.)
963a5f0fb15SPaul Saab
964a5f0fb15SPaul Saab* New command ":ta" is equivalent to "-t".
965a5f0fb15SPaul Saab
966a5f0fb15SPaul Saab* New command "s" is equivalent to "-l".
967a5f0fb15SPaul Saab
968a5f0fb15SPaul Saab* The - command may be followed by "+X" to revert to the default
969a5f0fb15SPaul Saab  for option X, or "-X" to get the opposite of the default.
970a5f0fb15SPaul Saab
971a5f0fb15SPaul Saab* Lesskey files may now include characters after the action as
972a5f0fb15SPaul Saab  extra input to be parsed after the action; for example:
973a5f0fb15SPaul Saab  "toggle-option X" to toggle a specific option X.
9747f074f9cSXin LI
9757f074f9cSXin LI
9767f074f9cSXin LI
977f78327b5SXin LI
978464501a8SXin LI
979