xref: /freebsd/contrib/less/NEWS (revision 252d6dde57d5dd0184929d1f8fb65e7713f51c6d)
1a5f0fb15SPaul Saab
2a5f0fb15SPaul Saab                     NEWS about less
3a5f0fb15SPaul Saab
4a5f0fb15SPaul Saab======================================================================
5a5f0fb15SPaul Saab
630a1828cSXin 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*252d6ddeSXin LI	Major changes between "less" versions 668 and 678
15*252d6ddeSXin LI
16*252d6ddeSXin LI* Treat -r in LESS environment variable as -R.
17*252d6ddeSXin LI
18*252d6ddeSXin LI* Add ESC-j and ESC-k commands (github #560).
19*252d6ddeSXin LI
20*252d6ddeSXin LI* Add --no-paste option (github #523).
21*252d6ddeSXin LI
22*252d6ddeSXin LI* Add --no-edit-warn option (github #513).
23*252d6ddeSXin LI
24*252d6ddeSXin LI* Add --form-feed option (github #496).
25*252d6ddeSXin LI
26*252d6ddeSXin LI* Add ESC-b command (github #615).
27*252d6ddeSXin LI
28*252d6ddeSXin LI* Make TAB complete option name in -- command (github #531).
29*252d6ddeSXin LI
30*252d6ddeSXin LI* Update the file size on an attempt to go past end of file.
31*252d6ddeSXin LI
32*252d6ddeSXin LI* Make -R able to pass through any OSC escape sequences,
33*252d6ddeSXin LI  not just OSC 8 (github #504).
34*252d6ddeSXin LI
35*252d6ddeSXin LI* Setting LESS_IS_MORE=0 now disables "more" compatibility even
36*252d6ddeSXin LI  if invoked via a file link named "more" (github #500).
37*252d6ddeSXin LI
38*252d6ddeSXin LI* Pass through escape sequences in prompts even if -R is not set.
39*252d6ddeSXin LI
40*252d6ddeSXin LI* Add LESS_SHELL_LINES to support shell prompts which use more than
41*252d6ddeSXin LI  one line (github #514).
42*252d6ddeSXin LI
43*252d6ddeSXin LI* Add LESSANSIOSCALLOW to define OSC types which may be passed through.
44*252d6ddeSXin LI
45*252d6ddeSXin LI* Add LESSANSIOSCCHARS to define non-standard OSC intro chars.
46*252d6ddeSXin LI
47*252d6ddeSXin LI* Add LESS_SIGUSR1 to define user signal handler (github #582).
48*252d6ddeSXin LI
49*252d6ddeSXin LI* Add mouse and mouse6 commands to lesskey (github #569).
50*252d6ddeSXin LI
51*252d6ddeSXin LI* Improve behavior of ^O^N and ^O^P commands.
52*252d6ddeSXin LI
53*252d6ddeSXin LI* Leave stty tabs setting unchanged (github #620).
54*252d6ddeSXin LI
55*252d6ddeSXin LI* Fix unexpected behavior when entering a partial command followed by
56*252d6ddeSXin LI  a valid command (github #543).
57*252d6ddeSXin LI
58*252d6ddeSXin LI* Fix bug when coloring prompt string with SGR sequences (github #516).
59*252d6ddeSXin LI
60*252d6ddeSXin LI* Fix bug when searching for text near an invalid UTF-8 sequence (github #542).
61*252d6ddeSXin LI
62*252d6ddeSXin LI* Fix display bug when file contains ESC followed by NUL (github #550).
63*252d6ddeSXin LI
64*252d6ddeSXin LI* Fix bug when using +:n +:p +:x or +:d on the command line (github #552).
65*252d6ddeSXin LI
66*252d6ddeSXin LI* Fix bug with --no-number-headers when header is not at start of file
67*252d6ddeSXin LI  (github #566).
68*252d6ddeSXin LI
69*252d6ddeSXin LI* Fix bug where lesstest fails if window is resized (github #570).
70*252d6ddeSXin LI
71*252d6ddeSXin LI* Fix bug using "configure --with-secure=no" (github #584).
72*252d6ddeSXin LI
73*252d6ddeSXin LI* Fix bug using multibyte command chars (github #595).
74*252d6ddeSXin LI
75*252d6ddeSXin LI* Fix auto_wrap setting on Windows (github #497).
76*252d6ddeSXin LI
77*252d6ddeSXin LI* Fix two bugs using ^S search modifier (github #605).
78*252d6ddeSXin LI
79*252d6ddeSXin LI* Fix bug searching for UTF-8 strings with the PCRE2 library (github #610).
80*252d6ddeSXin LI
81*252d6ddeSXin LI* Fix bug highlighting OSC 8 links when opening a new file.
82*252d6ddeSXin LI
83*252d6ddeSXin LI* Fix bug when & filtering is active (github #618).
84*252d6ddeSXin LI
85*252d6ddeSXin LI======================================================================
86*252d6ddeSXin LI
87c77c4889SXin LI	Major changes between "less" versions 661 and 668
88c77c4889SXin LI
89c77c4889SXin LI* Make 256/true colors work better on Windows without -Da
90c77c4889SXin LI  (github #539, github #546, github #562).
91c77c4889SXin LI
92c77c4889SXin LI* Fix build using --with-secure (github #544).
93c77c4889SXin LI
94c77c4889SXin LI* Fix crash when using --header on command line (github #545).
95c77c4889SXin LI
96c77c4889SXin LI* Fix possible crash when scrolling left/right or toggling -S (github #547).
97c77c4889SXin LI
98c77c4889SXin LI* Fix bug when using #stop in a lesskey file (github #551).
99c77c4889SXin LI
100c77c4889SXin LI* Fix bug when using --shift or --match-shift on command line with
101c77c4889SXin LI  a parameter starting with '.' (github #554).
102c77c4889SXin LI
103c77c4889SXin LI* Fix bug in R command when file size changes (github #553).
104c77c4889SXin LI
105c77c4889SXin LI* Fix bug using --header when file does not fill screen (github #556).
106c77c4889SXin LI
107c77c4889SXin LI* Fix ^X bug when output is not a terminal (github #558).
108c77c4889SXin LI
109c77c4889SXin LI* Fix bug where ^Z is not handled immediately (github #563).
110c77c4889SXin LI
111c77c4889SXin LI* Fix bug where first byte from a LESSOPEN filter is deleted if it is
112c77c4889SXin LI  greater than 0x7F (github #568).
113c77c4889SXin LI
114c77c4889SXin LI* Fix uninitialized variable in edit_ifile (github #573).
115c77c4889SXin LI
116c77c4889SXin LI* Fix incorrect handling of UTF-8 chars in prompts (github #576).
117c77c4889SXin LI
118c77c4889SXin LI======================================================================
119c77c4889SXin LI
120c77c4889SXin LI	Major changes between "less" versions 643 and 661
121c77c4889SXin LI
122c77c4889SXin LI* Add ^O^N, ^O^P, ^O^L and ^O^O commands and mouse clicks (with --mouse)
123c77c4889SXin LI  to find and open OSC8 hyperlinks (github #251).
124c77c4889SXin LI
125c77c4889SXin LI* Add --match-shift option.
126c77c4889SXin LI
127c77c4889SXin LI* Add --lesskey-content option (github #447).
128c77c4889SXin LI
129c77c4889SXin LI* Add LESSKEY_CONTENT environment variable (github #447).
130c77c4889SXin LI
131c77c4889SXin LI* Add --no-search-header-lines and --no-search-header-columns options
132c77c4889SXin LI  (github #397).
133c77c4889SXin LI
134c77c4889SXin LI* Add ctrl-L search modifier (github #367).
135c77c4889SXin LI
136c77c4889SXin LI* A ctrl-P at the start of a shell command suppresses the "done"
137c77c4889SXin LI  message (github #462).
138c77c4889SXin LI
139c77c4889SXin LI* Add attribute characters ('*', '~', '_', '&') to --color
140c77c4889SXin LI  parameter (github #471).
141c77c4889SXin LI
142c77c4889SXin LI* Allow expansion of environment variables in lesskey files.
143c77c4889SXin LI
144c77c4889SXin LI* Add LESSSECURE_ALLOW environment variable (github #449).
145c77c4889SXin LI
146c77c4889SXin LI* Add LESS_UNSUPPORT environment variable.
147c77c4889SXin LI
148c77c4889SXin LI* Add line number parameter to --header option (github #436).
149c77c4889SXin LI
150c77c4889SXin LI* Mouse right-click jumps to position marked by left-click (github #390).
151c77c4889SXin LI
152c77c4889SXin LI* Ensure that the target line is not obscured by a header line
153c77c4889SXin LI  set by --header (github #444).
154c77c4889SXin LI
155c77c4889SXin LI* Change default character set to "utf-8", except remains "dos" on MS-DOS.
156c77c4889SXin LI
157c77c4889SXin LI* Add message when search with ^W wraps (github #459).
158c77c4889SXin LI
159c77c4889SXin LI* UCRT builds on Windows 10 and later now support Unicode file names
160c77c4889SXin LI  (github #438).
161c77c4889SXin LI
162c77c4889SXin LI* Improve behavior of interrupt while reading non-terminated pipe
163c77c4889SXin LI  (github #414).
164c77c4889SXin LI
165c77c4889SXin LI* Improve parsing of -j, -x and -# options (github #393).
166c77c4889SXin LI
167c77c4889SXin LI* Support files larger than 4GB on Windows (github #417).
168c77c4889SXin LI
169c77c4889SXin LI* Support entry of Unicode chars larger than U+FFFF on Windows (github #391).
170c77c4889SXin LI
171c77c4889SXin LI* Improve colors of bold, underline and standout text on Windows.
172c77c4889SXin LI
173c77c4889SXin LI* Allow --rscroll to accept non-ASCII characters (github #483).
174c77c4889SXin LI
175c77c4889SXin LI* Allow the parameter to certain options to be terminated with a
176c77c4889SXin LI  space (--color, --quotes, --rscroll, --search-options
177c77c4889SXin LI  and --intr) (github #495).
178c77c4889SXin LI
179c77c4889SXin LI* Fix bug where # substitution failed after viewing help (github #420).
180c77c4889SXin LI
181c77c4889SXin LI* Fix crash if files are deleted while less is viewing them (github #404).
182c77c4889SXin LI
183c77c4889SXin LI* Workaround unreliable ReadConsoleInputW behavior on Windows
184c77c4889SXin LI  with non-ASCII input.
185c77c4889SXin LI
186c77c4889SXin LI* Fix -J display when searching for non-ASCII characters (github #422).
187c77c4889SXin LI
188c77c4889SXin LI* Don't filter header lines via the & command (github #423).
189c77c4889SXin LI
190c77c4889SXin LI* Fix bug when horizontally shifting long lines (github #425).
191c77c4889SXin LI
192c77c4889SXin LI* Add -x and -D options to lesstest, to make it easier to diagnose
193c77c4889SXin LI  a failed lesstest run.
194c77c4889SXin LI
195c77c4889SXin LI* Fix bug searching long lines with --incsearch and -S (github #428).
196c77c4889SXin LI
197c77c4889SXin LI* Fix bug that made ESC-} fail if top line on screen was empty (github #429).
198c77c4889SXin LI
199c77c4889SXin LI* Fix bug with --mouse on Windows when used with pipes (github #440).
200c77c4889SXin LI
201c77c4889SXin LI* Fix bug in --+OPTION command line syntax.
202c77c4889SXin LI
203c77c4889SXin LI* Fix display bug when using -w with an empty line with a CR/LF
204c77c4889SXin LI  line ending (github #474).
205c77c4889SXin LI
206c77c4889SXin LI* When substituting '#' or '%' with a filename, quote the filename
207c77c4889SXin LI  if it contains a space (github #480).
208c77c4889SXin LI
209c77c4889SXin LI* Fix wrong sleep time when system has usleep but not nanosleep (github #489).
210c77c4889SXin LI
211c77c4889SXin LI* Fix bug when file name contains a newline.
212c77c4889SXin LI
213c77c4889SXin LI* Fix bug when file name contains nonprintable characters (github #503).
214c77c4889SXin LI
215c77c4889SXin LI* Fix DJGPP build (github #497).
216c77c4889SXin LI
217c77c4889SXin LI* Update Unicode tables.
218c77c4889SXin LI
219c77c4889SXin LI======================================================================
220c77c4889SXin LI
221f80a33eaSXin LI	Major changes between "less" versions 633 and 643
222f80a33eaSXin LI
223f80a33eaSXin LI* Fix problem when a program piping into less reads from the tty,
224f80a33eaSXin LI  like sudo asking for password (github #368).
225f80a33eaSXin LI
226f80a33eaSXin LI* Fix search modifier ^E after ^W.
227f80a33eaSXin LI
228f80a33eaSXin LI* Fix bug using negated (^N) search (github #374).
229f80a33eaSXin LI
230f80a33eaSXin LI* Fix bug setting colors with -D on Windows build (github #386).
231f80a33eaSXin LI
232f80a33eaSXin LI* Fix reading special chars like PageDown on Windows (github #378).
233f80a33eaSXin LI
234f80a33eaSXin LI* Fix mouse wheel scrolling on Windows (github #379).
235f80a33eaSXin LI
236f80a33eaSXin LI* Fix erroneous EOF when terminal window size changes (github #372).
237f80a33eaSXin LI
238f80a33eaSXin LI* Fix compile error with some definitions of ECHONL (github #395).
239f80a33eaSXin LI
240f80a33eaSXin LI* Fix crash on Windows when writing logfile (github #405).
241f80a33eaSXin LI
242f80a33eaSXin LI* Fix regression in exit code when stdin is /dev/null and
243f80a33eaSXin LI  output is a file (github #373).
244f80a33eaSXin LI
245f80a33eaSXin LI* Add lesstest test suite to production release (github #344).
246f80a33eaSXin LI
247f80a33eaSXin LI* Change lesstest output to conform with
248f80a33eaSXin LI  automake Simple Test Format (github #399).
249f80a33eaSXin LI
250f80a33eaSXin LI======================================================================
251f80a33eaSXin LI
252f80a33eaSXin LI	Major changes between "less" versions 632 and 633
253f80a33eaSXin LI
254f80a33eaSXin LI* Fix build on systems which have ncurses/termcap.h or
255f80a33eaSXin LI  ncursesw/termcap.h but not termcap.h.
256f80a33eaSXin LI
257f80a33eaSXin LI======================================================================
258f80a33eaSXin LI
259d713e089SXin LI	Major changes between "less" versions 608 and 632
260d713e089SXin LI
261d713e089SXin LI* Add LESSUTFCHARDEF environment variable (github #275).
262d713e089SXin LI
263d713e089SXin LI* Add # command (github #330).
264d713e089SXin LI
265d713e089SXin LI* Add ^S search modifier (github #196).
266d713e089SXin LI
267d713e089SXin LI* Add --wordwrap option (github #113).
268d713e089SXin LI
269d713e089SXin LI* Add --no-vbell option (github #304).
270d713e089SXin LI
271d713e089SXin LI* Add --no-search-headers option (github #44).
272d713e089SXin LI
273d713e089SXin LI* Add --modelines option (github #89).
274d713e089SXin LI
275d713e089SXin LI* Add --intr option (github #224).
276d713e089SXin LI
277d713e089SXin LI* Add --proc-backspace, --proc-tab and --proc-return options (github #335).
278d713e089SXin LI
279d713e089SXin LI* Add --show-preproc-errors option (github #258).
280d713e089SXin LI
281d713e089SXin LI* Add LESS_LINES and LESS_COLUMNS environment variables (github #84).
282d713e089SXin LI
283d713e089SXin LI* Add LESS_DATA_DELAY environment variable (github #337).
284d713e089SXin LI
285d713e089SXin LI* Allow empty "lines" field in --header option.
286d713e089SXin LI
287d713e089SXin LI* Update Unicode tables.
288d713e089SXin LI
289d713e089SXin LI* Improve ability of ^X to interrupt F command (github #49).
290d713e089SXin LI
291d713e089SXin LI* Status column (-J) shows off-screen matches.
292d713e089SXin LI
293d713e089SXin LI* Parenthesized sub-patterns in searches are colored with unique colors,
294d713e089SXin LI  if supported by the regular expression library (github #196).
295d713e089SXin LI
296d713e089SXin LI* Don't allow opening a tty as file input unless -f is set (github #309).
297d713e089SXin LI
298d713e089SXin LI* Don't require newline input after +&... option (github #339).
299d713e089SXin LI
300d713e089SXin LI* Fix incorrect handling of some Private Use Unicode characters.
301d713e089SXin LI
302d713e089SXin LI* Fix ANSI color bug when overstriking with colored chars (github #276).
303d713e089SXin LI
304d713e089SXin LI* Fix compiler const warning (github #279).
305d713e089SXin LI
306d713e089SXin LI* Fix signal race in iread (github #280).
307d713e089SXin LI
308d713e089SXin LI* Fix reading procfs files on Linux (github #282).
309d713e089SXin LI
310d713e089SXin LI* Fix --ignore-case with ctrl-R (no regex) search (github #300).
311d713e089SXin LI
312d713e089SXin LI* Fix bug doing repeat search after setting & filter (github #299).
313d713e089SXin LI
314d713e089SXin LI* Fix bug doing repeat search before non-repeat search.
315d713e089SXin LI
316d713e089SXin LI* Fix crash with -R and certain line lengths (github #338).
317d713e089SXin LI
318d713e089SXin LI* Fix input of Windows dead keys (github #352).
319d713e089SXin LI
320d713e089SXin LI* Don't retain search options from a cancelled search (github #302).
321d713e089SXin LI
322d713e089SXin LI* Don't call realpath on fake filenames like "-" (github #289).
323d713e089SXin LI
324d713e089SXin LI* Implement lesstest test suite.
325d713e089SXin LI
326d713e089SXin LI* Convert function parameter definitions from K&R to C89 (github #316).
327d713e089SXin LI
328d713e089SXin LI======================================================================
329d713e089SXin LI
33095270f73SXin LI	Major changes between "less" versions 590 and 608
33195270f73SXin LI
33295270f73SXin LI* Add the --header option (github #43).
33395270f73SXin LI
33495270f73SXin LI* Add the --no-number-headers option (github #178).
33595270f73SXin LI
33695270f73SXin LI* Add the --status-line option.
33795270f73SXin LI
33895270f73SXin LI* Add the --redraw-on-quit option (github #36).
33995270f73SXin LI
34095270f73SXin LI* Add the --search-options option (github #213).
34195270f73SXin LI
34295270f73SXin LI* Add the --exit-follow-on-close option (github #244).
34395270f73SXin LI
34495270f73SXin LI* Add 'H' color type to set color of header lines.
34595270f73SXin LI
34695270f73SXin LI* Add #version conditional to lesskey.
34795270f73SXin LI
34895270f73SXin LI* Add += syntax to variable section in lesskey files.
34995270f73SXin LI
35095270f73SXin LI* Allow option name in -- command to end with '=' in addition to '\n'.
35195270f73SXin LI
35295270f73SXin LI* Add $HOME/.config to possible locations of lesskey file (github #153).
35395270f73SXin LI
35495270f73SXin LI* Add $XDG_STATE_HOME and $HOME/.local/state to possible locations
35595270f73SXin LI  of history file (github #223).
35695270f73SXin LI
35795270f73SXin LI* Don't read or write history file in secure mode (github #201).
35895270f73SXin LI
35995270f73SXin LI* Fix display of multibyte and double-width chars in prompt.
36095270f73SXin LI
36195270f73SXin LI* Fix ESC-BACKSPACE command when BACKSPACE key does not send 0x08
36295270f73SXin LI  (github #188).
36395270f73SXin LI
36495270f73SXin LI* Add more \k codes to lesskey format.
36595270f73SXin LI
36695270f73SXin LI* Fix bug when empty file is modified while viewing it.
36795270f73SXin LI
36895270f73SXin LI* Fix bug when parsing a malformed lesskey file (githb #234).
36995270f73SXin LI
37095270f73SXin LI* Fix bug scrolling history when --incsearch is set (github #214).
37195270f73SXin LI
37295270f73SXin LI* Fix buffer overflow when invoking lessecho with more than 63 -m/-n
37395270f73SXin LI  options (github #198).
37495270f73SXin LI
37595270f73SXin LI* Fix buffer overflow in bin_file (github #271).
37695270f73SXin LI
37795270f73SXin LI* Fix bug restoring color at end of highlighted text.
37895270f73SXin LI
37995270f73SXin LI* Fix bug in parsing lesskey file.
38095270f73SXin LI
38195270f73SXin LI* Defer moving cursor to lower left in some more cases.
38295270f73SXin LI
38395270f73SXin LI* Suppress TAB filename expansion in some cases where it doesn't make sense.
38495270f73SXin LI
38595270f73SXin LI* Fix termlib detection when compiler doesn't accept
38695270f73SXin LI  calls to undeclared functions.
38795270f73SXin LI
38895270f73SXin LI* Fix bug in input of non-ASCII characters on Windows (github #247)
38995270f73SXin LI
39095270f73SXin LI* Escape filenames when invoking LESSCLOSE.
39195270f73SXin LI
39295270f73SXin LI* Fix bug using multibyte UTF-8 char in search string
39395270f73SXin LI  with --incsearch (github #273).
39495270f73SXin LI
39595270f73SXin LI======================================================================
39695270f73SXin LI
39730a1828cSXin LI	Major changes between "less" versions 581 and 590
39830a1828cSXin LI
39930a1828cSXin LI* Make less able to read lesskey source files (deprecating lesskey).
40030a1828cSXin LI
40130a1828cSXin LI* If XDG_CONFIG_HOME is set, find lesskey source file
40230a1828cSXin LI  in $XDG_CONFIG_HOME/lesskey rather than $HOME/.lesskey.
40330a1828cSXin LI
40430a1828cSXin LI* If XDG_DATA_HOME is set, find and store history file
40530a1828cSXin LI  in $XDG_DATA_HOME/lesshst rather than $HOME/.lesshst.
40630a1828cSXin LI
40730a1828cSXin LI* Add the --lesskey-src option.
40830a1828cSXin LI
40930a1828cSXin LI* Add the --file-size option.
41030a1828cSXin LI
41130a1828cSXin LI* With -F, if screen is resized to make file fit on one screen, don't exit.
41230a1828cSXin LI
41330a1828cSXin LI* Fix bug which could leave terminal in mouse-reporting mode
41430a1828cSXin LI  after exiting less.
41530a1828cSXin LI
41630a1828cSXin LI* Fix bug which caused failure to respond to window resize.
41730a1828cSXin LI
41830a1828cSXin LI* Fix backslash bug searching in tag file.
41930a1828cSXin LI
42030a1828cSXin LI======================================================================
42130a1828cSXin LI
42230a1828cSXin LI	Major changes between "less" versions 563 and 581
4232235c7feSXin LI
4242235c7feSXin LI* Change ESC-u command to toggle, not disable, highlighting per man page.
4252235c7feSXin LI
4262235c7feSXin LI* Add ESC-U command.
4272235c7feSXin LI
4282235c7feSXin LI* Add ctrl-W search modifier for wrapping search.
4292235c7feSXin LI
4302235c7feSXin LI* F command can be interrupted by ^X.
4312235c7feSXin LI
4322235c7feSXin LI* Support OSC 8 hyperlinks when -R is in effect.
4332235c7feSXin LI
4342235c7feSXin LI* g command with no number will ignore -j and put first line at top of screen.
4352235c7feSXin LI
4362235c7feSXin LI* Multiple + or -p command line options are handled better.
4372235c7feSXin LI
4382235c7feSXin LI* Add the --incsearch option.
4392235c7feSXin LI
4402235c7feSXin LI* Add the --line-num-width option.
4412235c7feSXin LI
4422235c7feSXin LI* Add the --status-col-width option.
4432235c7feSXin LI
4442235c7feSXin LI* Add the --use-color and --color options.
4452235c7feSXin LI
4462235c7feSXin LI* Display -w highlight even if highlighted line is empty.
4472235c7feSXin LI
4482235c7feSXin LI* If search result is in a long line, scroll to ensure it is visible.
4492235c7feSXin LI
4502235c7feSXin LI* Editing the same file under different names now creates only
4512235c7feSXin LI  one entry in the file list.
4522235c7feSXin LI
4532235c7feSXin LI* Make visual bell more visible on some terminals.
4542235c7feSXin LI
4552235c7feSXin LI* Ring end-of-file bell no more than once per second.
4562235c7feSXin LI
4572235c7feSXin LI* Build can use either Python or Perl for Makefile.aut operations.
4582235c7feSXin LI
4592235c7feSXin LI* Fix crash when using the @ search modifier.
4602235c7feSXin LI
4612235c7feSXin LI* Fix crash in the 's' command due to duplicate free.
4622235c7feSXin LI
4632235c7feSXin LI* Fix realpath crash on Darwin.
464a15691bfSXin LI
465a15691bfSXin LI======================================================================
466a15691bfSXin LI
4676f26c71dSXin LI	Major changes between "less" versions 551 and 563
4686f26c71dSXin LI
4696f26c71dSXin LI* Update Unicode tables.
4706f26c71dSXin LI
4716f26c71dSXin LI* Treat Hangul Jamo medial vowels and final consonants as zero width.
4726f26c71dSXin LI
4736f26c71dSXin LI* Display error message immediately when -o is toggled and
4746f26c71dSXin LI  input is not a pipe.
4756f26c71dSXin LI
4766f26c71dSXin LI* Fix regression: make screen repaint when "squished" and
4776f26c71dSXin LI  a no-movement command is given.
4786f26c71dSXin LI
4796f26c71dSXin LI* Fix erroneous EOF calculation when F command is interrupted.
4806f26c71dSXin LI
4816f26c71dSXin LI* Make WIN32C version include this fix from 551:
4826f26c71dSXin LI  Don't count lines in initial screen if using -X with -F.
4836f26c71dSXin LI
4846f26c71dSXin LI* Fix display bug in WIN32C version.
4856f26c71dSXin LI
4866f26c71dSXin LI* Fix memory corruption when built with libtermcap.
4876f26c71dSXin LI
4886f26c71dSXin LI* Support libtinfow.
4896f26c71dSXin LI
4906f26c71dSXin LI======================================================================
4916f26c71dSXin LI
492b7780dbeSXin LI	Major changes between "less" versions 530 and 551
493b7780dbeSXin LI
494b7780dbeSXin LI* Add --mouse option.
495b7780dbeSXin LI
496b7780dbeSXin LI* Add --wheel-lines option.
497b7780dbeSXin LI
498b7780dbeSXin LI* Add --no-histdups option.
499b7780dbeSXin LI
500b7780dbeSXin LI* Add --save-marks option.
501b7780dbeSXin LI
502b7780dbeSXin LI* Support PCRE2 regular expression library.
503b7780dbeSXin LI
504b7780dbeSXin LI* Redraw screen on SIGWINCH even if screen size doesn't change.
505b7780dbeSXin LI
506b7780dbeSXin LI* Shell-escape filenames in history so they can be used again.
507b7780dbeSXin LI
508b7780dbeSXin LI* Ring bell if user enters invalid long option name.
509b7780dbeSXin LI
510b7780dbeSXin LI* Use PCRE_UTF8 flag for pcre regular expressions when in UTF-8 mode.
511b7780dbeSXin LI
512b7780dbeSXin LI* Windows: use wide-char string to set console title.
513b7780dbeSXin LI
514b7780dbeSXin LI* Don't count lines in initial screen if using -X with -F.
515b7780dbeSXin LI
516b7780dbeSXin LI* Support mingw build system.
517b7780dbeSXin LI
518b7780dbeSXin LI* Fix bug in v command on empty file.
519b7780dbeSXin LI
520b7780dbeSXin LI* Fix bug in v command when filename contains shell metacharacters.
521b7780dbeSXin LI
522b7780dbeSXin LI======================================================================
523b7780dbeSXin LI
52474709ed0SXin LI	Major changes between "less" versions 487 and 530
525f6b74a7dSXin LI
526f6b74a7dSXin LI* Don't output terminal init sequence if using -F and file fits on one screen.
527f6b74a7dSXin LI
528b2ea2440SXin LI* When using -S, mark truncated lines with a special character.
529b2ea2440SXin LI  The character can be changed or disabled via the new --rscroll option.
530f6b74a7dSXin LI
531b2ea2440SXin LI* New command M marks the last line displayed on the screen.
532f6b74a7dSXin LI
533b2ea2440SXin LI* New command ESC-m removes a line mark.
534b2ea2440SXin LI
535b2ea2440SXin LI* Status column (enabled via -J) now shows mark letters.
536b2ea2440SXin LI
537b2ea2440SXin LI* Status column shows search matches even if highlighting is disabled via -G.
538b2ea2440SXin LI
539b2ea2440SXin LI* A second ESC-u command will clear search match markers in the status column.
540b2ea2440SXin LI
541b2ea2440SXin LI* Do same ANSI escape code filtering for tag matching that we do for
542b2ea2440SXin LI  searching, to help when viewing syntax-highlighted code.
543b2ea2440SXin LI
544b2ea2440SXin LI* Catch SIGTERM and clean up before exiting.
545b2ea2440SXin LI
546b2ea2440SXin LI* Fix bug initializing default charset on Windows.
547b2ea2440SXin LI
548b2ea2440SXin LI* Handle keypad ENTER key correctly if it sends something other than newline.
549b2ea2440SXin LI
550b2ea2440SXin LI* Fix buffering bug when using stdin with a LESSOPEN pipe.
551b2ea2440SXin LI
552b2ea2440SXin LI* On Windows, allow 'u' in -D option to enable underlining.
553b2ea2440SXin LI
554b2ea2440SXin LI* On Windows, use underline in sgr mode.
555b2ea2440SXin LI
556b2ea2440SXin LI* On Windows, convert UTF-8 to multibyte if console is not UTF-8.
557b2ea2440SXin LI
558b2ea2440SXin LI* Update Unicode tables to 2017-03-08.
559b2ea2440SXin LI
560d713e089SXin LI* Pass-thru Unicode formatting chars (Cf type) instead of treating them
561b2ea2440SXin LI  as binary chars. But treat them as binary if -U is set.
562b2ea2440SXin LI
563b2ea2440SXin LI* Fix erroneous binary file warning when UTF-8 file contains ANSI SGR sequences.
564b2ea2440SXin LI
565b2ea2440SXin LI* Fix bugs when using LESSOPEN and switching between stdin and other files.
566b2ea2440SXin LI
567b2ea2440SXin LI* Fix some bugs handling filenames containing shell metacharacters.
568f6b74a7dSXin LI
569f6b74a7dSXin LI* Fix some memory leaks.
570f6b74a7dSXin LI
571b2ea2440SXin LI* Allow some debugging environment variables to be set in lesskey file.
572b2ea2440SXin LI
573b2ea2440SXin LI* Code improvements:
574b2ea2440SXin LI  . Use ANSI prototypes in funcs.h declarations.
575b2ea2440SXin LI  . Fix some const mismatches.
576b2ea2440SXin LI  . Remove archaic "register" in variable declarations.
577b2ea2440SXin LI
578f6b74a7dSXin LI======================================================================
579f6b74a7dSXin LI
580f6b74a7dSXin LI	Major changes between "less" versions 481 and 487
581f6b74a7dSXin LI
582f6b74a7dSXin LI* New commands ESC-{ and ESC-} to shift to start/end of displayed lines.
583f6b74a7dSXin LI
584f6b74a7dSXin LI* Make search highlights work correctly when changing caselessness with -i.
585f6b74a7dSXin LI
586f6b74a7dSXin LI* New option -Da in Windows version to enable SGR mode.
587f6b74a7dSXin LI
588f6b74a7dSXin LI* Fix "nothing to search" error when top or bottom line on screen is empty.
589f6b74a7dSXin LI
590f6b74a7dSXin LI* Fix bug when terminal has no "cm" termcap entry.
591f6b74a7dSXin LI
592f6b74a7dSXin LI* Fix incorrect display when entering double-width chars in search string.
593f6b74a7dSXin LI
594f6b74a7dSXin LI* Fix bug in Unicode handling that missed some double width characters.
595f6b74a7dSXin LI
596f6b74a7dSXin LI* Update Unicode database to 9.0.0.
597f6b74a7dSXin LI
598f6b74a7dSXin LI======================================================================
599f6b74a7dSXin LI
600a15691bfSXin LI	Major changes between "less" versions 458 and 481
601a15691bfSXin LI
602a15691bfSXin LI* Don't overwrite history file; just append to it.
603a15691bfSXin LI
604a15691bfSXin LI* New command ESC-G goes to end of currently buffered data in a pipe.
605a15691bfSXin LI
606a15691bfSXin LI* Disable history feature when compiled with LESSHISTFILE set to "-".
607a15691bfSXin LI
608a15691bfSXin LI* In more-compatible mode, make the -p option apply to every file opened,
609a15691bfSXin LI  not just the first one.
610a15691bfSXin LI
611a15691bfSXin LI* In more-compatible mode, change the -e option to work like -E, not -EF.
612a15691bfSXin LI
613a15691bfSXin LI* Treat multiple CRs before LF are like one CR (all the CRs are hidden).
614a15691bfSXin LI
615a15691bfSXin LI* Allow "extra" string in lesskey file to append to a multi-char command
616a15691bfSXin LI  (like a search pattern), without executing the command.
617a15691bfSXin LI
618a15691bfSXin LI* Ignore -u/-U setting while viewing help file, so that
619a15691bfSXin LI  underline and bold chars are displayed correctly.
620a15691bfSXin LI
621a15691bfSXin LI* Improve detection of "binary" files in UTF-8 mode.
622a15691bfSXin LI
623a15691bfSXin LI* Fix bug with ++ commands.
624a15691bfSXin LI
625a15691bfSXin LI* Fix bug where prompt was sometimes not displayed with +G.
626a15691bfSXin LI
627a15691bfSXin LI* Fix possible memory corruption
628a15691bfSXin LI
629a15691bfSXin LI* Fix bugs and improve performance in ampersand filtering.
630a15691bfSXin LI
631a15691bfSXin LI* Automate construction of Unicode tables from Unicode database.
632a15691bfSXin LI
633a15691bfSXin LI* Allow %% escape sequence in LESSOPEN variable.
63496e55cc7SXin LI
63596e55cc7SXin LI======================================================================
63696e55cc7SXin LI
6377bd2567cSXin LI	Major changes between "less" versions 451 and 458
6384cc5fc9aSXin LI
6397bd2567cSXin LI* Allow backslash escaping of metacharacters in LESS environment variable
6407bd2567cSXin LI  after the --use-backslash option.
6414cc5fc9aSXin LI
6424cc5fc9aSXin LI* Don't quit if syntax errors are found in command line options.
6434cc5fc9aSXin LI
6444cc5fc9aSXin LI* Increase sizes of some internal buffers.
6454cc5fc9aSXin LI
6464cc5fc9aSXin LI* Fix configure bug with --with-regex=none.
6474cc5fc9aSXin LI
6484cc5fc9aSXin LI* Fix crash with "stty rows 0".
6494cc5fc9aSXin LI
6504cc5fc9aSXin LI* Fix Win32 attribute display bug.
6514cc5fc9aSXin LI
6527bd2567cSXin LI* Fix display bug when using up/down arrow on the command line.
6537bd2567cSXin LI
6544cc5fc9aSXin LI======================================================================
6554cc5fc9aSXin LI
656e2449719SXin LI	Major changes between "less" versions 444 and 451
65796e55cc7SXin LI
65896e55cc7SXin LI* Add ESC-F command to keep reading data until a pattern is found.
65996e55cc7SXin LI
66096e55cc7SXin LI* Use exit code of LESSOPEN script if LESSOPEN starts with "||".
66196e55cc7SXin LI
66296e55cc7SXin LI* When up/down arrow is used on the command line immediately after
66396e55cc7SXin LI  typing text, the next command starting with that text is found.
66496e55cc7SXin LI
66596e55cc7SXin LI* Add support for GNU regex.
66696e55cc7SXin LI
66796e55cc7SXin LI* Add configure option --with-regex=none and fix compile errors
66896e55cc7SXin LI  when compiling with no regex library.
66996e55cc7SXin LI
67096e55cc7SXin LI* Fix bugs handling SGR sequences in Win32.
67196e55cc7SXin LI
67296e55cc7SXin LI* Fix possible crashes caused by malformed LESSOPEN or
67396e55cc7SXin LI  LESSCLOSE variables.
67496e55cc7SXin LI
67596e55cc7SXin LI* Fix bug highlighting text which is discontiguous in the file
67696e55cc7SXin LI  due to backspace processing.
67796e55cc7SXin LI
67896e55cc7SXin LI* Fix bug in displaying status column when scrolling backwards
67996e55cc7SXin LI  with -J and -S in effect.
680a5f0fb15SPaul Saab
681a5f0fb15SPaul Saab======================================================================
682a5f0fb15SPaul Saab
683b24bfc5aSXin LI	Major changes between "less" versions 443 and 444
684b24bfc5aSXin LI
685b24bfc5aSXin LI* Fix bug in unget handling that can cause strange effects on the
686b24bfc5aSXin LI  command line.
687b24bfc5aSXin LI
688b24bfc5aSXin LI* Remove vestiges of obsolete -l option that can cause a crash.
689b24bfc5aSXin LI
690b24bfc5aSXin LI======================================================================
691b24bfc5aSXin LI
69233096f16SXin LI	Major changes between "less" versions 436 and 443
69333096f16SXin LI
69433096f16SXin LI* Change search behavior such that when a search is given an explicit
69533096f16SXin LI  pattern, the entire displayed screen is included in the search and
69633096f16SXin LI  not just the portion after the target line.
69733096f16SXin LI
69833096f16SXin LI* Add -A option to change search behavior to the old way: only
69933096f16SXin LI  the portion of the screen after the target line is searched.
70033096f16SXin LI
70133096f16SXin LI* Add %F formatting to prompt strings, replaced by the last component
70233096f16SXin LI  of the input file.
70333096f16SXin LI
70433096f16SXin LI* Control-G while editing a command exits the command.
70533096f16SXin LI
70633096f16SXin LI* Less now exits with status 2 if control-C is pressed and -K is in effect.
70733096f16SXin LI
70833096f16SXin LI* Fix "ungetc overflow" when passing long commands via the -p option.
70933096f16SXin LI
71033096f16SXin LI* Fix bug in using line filtering via the & command
71133096f16SXin LI  in combination with -i and -I.
71233096f16SXin LI
71333096f16SXin LI* Fix bug in handling negative arguments to the -j option.
71433096f16SXin LI
71533096f16SXin LI* Fix bug in handling %t in prompt strings.
71633096f16SXin LI
71733096f16SXin LI* Improve handling of long option names.
71833096f16SXin LI
71933096f16SXin LI* Improve percentage calculation for very large files.
72033096f16SXin LI
72133096f16SXin LI======================================================================
72233096f16SXin LI
723f0be0a1fSXin LI	Major changes between "less" versions 429 and 436
724f0be0a1fSXin LI
725f0be0a1fSXin LI* Don't pass "-" to non-pipe LESSOPEN unless it starts with "-".
726f0be0a1fSXin LI
727f0be0a1fSXin LI* Allow a fraction as the argument to the -# (--shift) option.
728f0be0a1fSXin LI
729f0be0a1fSXin LI* Fix highlight bug when underlined/overstruck text matches at end of line.
730f0be0a1fSXin LI
731f0be0a1fSXin LI* Fix non-regex searches with ctrl-R.
732f0be0a1fSXin LI
733f0be0a1fSXin LI======================================================================
734f0be0a1fSXin LI
7357374caaaSXin LI	Major changes between "less" versions 424 and 429
7367374caaaSXin LI
7377374caaaSXin LI* LESSOPEN pipe will now be used on standard input, if the LESSOPEN
7387374caaaSXin LI  environment variable begins with "|-".
7397374caaaSXin LI
7407374caaaSXin LI* The -D option with one number now means use the normal background color.
7417374caaaSXin LI
7427374caaaSXin LI* Don't change permissions on history file if it is not a regular file.
7437374caaaSXin LI
7447374caaaSXin LI* Fix non-ANSI-compliant code that caused problems with some compilers.
7457374caaaSXin LI
7467374caaaSXin LI* Fix binary file detection in UTF-8 mode.
7477374caaaSXin LI
7487374caaaSXin LI* Fix display problems with long lines on "ignaw" terminals.
7497374caaaSXin LI
7507374caaaSXin LI* Fix problem interrupting the line number calculation for initial prompt.
7517374caaaSXin LI
752d713e089SXin LI* Fix SGR emulation when dealing with multiple attributes (e.g. bold+underline).
7537374caaaSXin LI
7547374caaaSXin LI* Fix highlight bug when searching for underlined/overstruck text.
7557374caaaSXin LI
7567374caaaSXin LI======================================================================
7577374caaaSXin LI
7587374caaaSXin LI	Major changes between "less" versions 418 and 424
7597374caaaSXin LI
7607374caaaSXin LI* New "&" command allows filtering of lines based on a pattern.
7617374caaaSXin LI
7627374caaaSXin LI* Status column now displays a search match, even if the matched
7637374caaaSXin LI  string is scrolled off screen because -S is in effect.
7647374caaaSXin LI
7657374caaaSXin LI* Improve behavior of -F option.
7667374caaaSXin LI
7677374caaaSXin LI* Allow CSI character (0x9B) to work in UTF-8 mode.
7687374caaaSXin LI
7697374caaaSXin LI* Output carriage return at startup in case terminal doesn't default
7707374caaaSXin LI  to column 1.
7717374caaaSXin LI
7727374caaaSXin LI* Fix bug in '' (quote, quote) command after G command.
7737374caaaSXin LI
7747374caaaSXin LI======================================================================
7757374caaaSXin LI
7767374caaaSXin LI	Major changes between "less" versions 416 and 418
7777374caaaSXin LI
7787374caaaSXin LI* Color escape sequences are now supported in WIN32 build.
7797374caaaSXin LI
7807374caaaSXin LI* Makefile now uses EXEEXT feature of autoconf.
7817374caaaSXin LI
7827374caaaSXin LI* Fix search bug when using -R and text contains ANSI color escape sequences.
7837374caaaSXin LI
7847374caaaSXin LI* Fix crash when using -r with UTF-8 text containing 0x9B bytes.
7857374caaaSXin LI
7867374caaaSXin LI* Fix display bug when using ' command to move less than one page forward.
7877374caaaSXin LI
7887374caaaSXin LI* Update GPL to version 3.
7897374caaaSXin LI
7907374caaaSXin LI======================================================================
791a5f0fb15SPaul Saab
79233a9f6abSXin LI	Major changes between "less" versions 409 and 416
793464501a8SXin LI
794464501a8SXin LI* New --follow-name option makes F command follow the name of a file
795464501a8SXin LI  rather than the file descriptor if an open file is renamed.
796464501a8SXin LI
797464501a8SXin LI* Make searching with -i/-I work correctly with non-ASCII text.
798464501a8SXin LI
799464501a8SXin LI* Fix DJGPP build.
800464501a8SXin LI
801464501a8SXin LI======================================================================
802464501a8SXin LI
803f78327b5SXin LI	Major changes between "less" versions 406 and 409
8041c6a5c10SXin LI
8051c6a5c10SXin LI* Support CSI escape sequences, like SGR escape sequences.
8061c6a5c10SXin LI
8071c6a5c10SXin LI* Fix bug which caused screen to fail to repaint when window is resized.
8081c6a5c10SXin LI
8091c6a5c10SXin LI* Fix bug in using -i and -I flags with non-ASCII text.
8101c6a5c10SXin LI
8111c6a5c10SXin LI* Fix configure bug on systems which don't support langinfo.h.
8121c6a5c10SXin LI
813f78327b5SXin LI* Fix crash when searching text containing certain invalid UTF-8 sequences.
814f78327b5SXin LI
8151c6a5c10SXin LI======================================================================
8161c6a5c10SXin LI
817efd72c2eSXin LI	Major changes between "less" versions 394 and 406
8187f074f9cSXin LI
8197f074f9cSXin LI* Allow decimal point in number for % (percent) command.
8207f074f9cSXin LI
8217f074f9cSXin LI* Allow decimal point in number for -j option (fraction of screen height).
8227f074f9cSXin LI
8237f074f9cSXin LI* Make n command fetch previous pattern from history file on first search.
8247f074f9cSXin LI
8257f074f9cSXin LI* Don't rewrite history file if it has not changed.
8267f074f9cSXin LI
8277f074f9cSXin LI* Don't move to bottom of screen on first page.
8287f074f9cSXin LI
8297f074f9cSXin LI* Don't output extraneous newlines, so copy & pasting lines from the
8307f074f9cSXin LI  output works better.
8317f074f9cSXin LI
8327f074f9cSXin LI* The -c option has been made identical with the -C option.
8337f074f9cSXin LI
834d713e089SXin LI* Allow "/dev/null" as synonym for "-" in LESSHISTFILE to indicate
8357f074f9cSXin LI  that no history file should be used.
8367f074f9cSXin LI
8377f074f9cSXin LI* Search can now find text which follows a null byte, if the PCRE
8387f074f9cSXin LI  library is used, or if no-regex searching (ctrl-R) is used.
8397f074f9cSXin LI
8407f074f9cSXin LI* Better compatibility with POSIX more specification.
8417f074f9cSXin LI
8427f074f9cSXin LI* Make -f work for directories.
8437f074f9cSXin LI
8447f074f9cSXin LI* Make "t" cmd traverse tags in the correct order.
8457f074f9cSXin LI
8467f074f9cSXin LI* Allow a few binary characters in the input file before warning
8477f074f9cSXin LI  that the file is binary.
8487f074f9cSXin LI
8497f074f9cSXin LI* Don't warn that file is binary if it merely contains ANSI color sequences
8507f074f9cSXin LI  and -R is in effect.
8517f074f9cSXin LI
8527f074f9cSXin LI* Update Unicode character tables.
8537f074f9cSXin LI
8547f074f9cSXin LI* Support DESTDIR in Makefile.
8557f074f9cSXin LI
8567f074f9cSXin LI* Fix bug when filename contains certain shell metacharacters such as "$".
8577f074f9cSXin LI
8587f074f9cSXin LI* Fix bug when resizing the window while waiting for input from a pipe.
8597f074f9cSXin LI
8607f074f9cSXin LI* Fix configure bugs.
8617f074f9cSXin LI
8627f074f9cSXin LI======================================================================
8637f074f9cSXin LI
8646dcb072bSXin LI	Major changes between "less" versions 382 and 394
8656dcb072bSXin LI
8666dcb072bSXin LI* Add history file to save search and shell command history between
8676dcb072bSXin LI  invocations of less.
8686dcb072bSXin LI
8696dcb072bSXin LI* Improve behavior of history list for search and shell commands.
8706dcb072bSXin LI
8716dcb072bSXin LI* Add -K (or --quit-on-intr) option to make less exit immediately on ctrl-C.
8726dcb072bSXin LI
8736dcb072bSXin LI* Improve handling of UTF-8 files and commands, including better
8746dcb072bSXin LI  line wrapping and handling double-width chars.
8756dcb072bSXin LI
8766dcb072bSXin LI* Added LESSUTFBINFMT environment variable to control display of
8776dcb072bSXin LI  non-printable characters in a UTF-8 file.
8786dcb072bSXin LI
8796dcb072bSXin LI* Add --with-secure option to configure, to make it easier to
8806dcb072bSXin LI  build a secure version of less.
8816dcb072bSXin LI
8826dcb072bSXin LI* Show search matches in the status column even if search highlights
8836dcb072bSXin LI  are disabled via the -G option or the ESC-u command.
8846dcb072bSXin LI
8856dcb072bSXin LI* Improve performance when the file contains very long lines.
8866dcb072bSXin LI
8876dcb072bSXin LI* Add "windows" charset.
8886dcb072bSXin LI
8896dcb072bSXin LI* Add man page for lessecho.
8906dcb072bSXin LI
8916dcb072bSXin LI* Add support for erase2 character, treated same as erase.
8926dcb072bSXin LI
8936dcb072bSXin LI* Use ASCII lowercase/uppercase logic when operating on the command line.
8946dcb072bSXin LI
8956dcb072bSXin LI* Update makefile for Borland C++ 5.5.1.
8966dcb072bSXin LI
8976dcb072bSXin LI* Fix bug in calculating number of pages for %D prompt.
8986dcb072bSXin LI
8996dcb072bSXin LI* Fix bug in handling tag file error.
9006dcb072bSXin LI
9016dcb072bSXin LI* Fix obscure bug if input file is deleted while viewing help.
9026dcb072bSXin LI
9036dcb072bSXin LI* Fix bug handling filenames which include square brackets.
9046dcb072bSXin LI
9056dcb072bSXin LI* Fix possible buffer overflow in "global" tag search.
9066dcb072bSXin LI
9076dcb072bSXin LI* Fix possible buffer overflow in usage of LESSOPEN and LESSCLOSE.
9086dcb072bSXin LI
9096dcb072bSXin LI* Fix buffer overflow in reverse search.
9106dcb072bSXin LI
9116dcb072bSXin LI======================================================================
9126dcb072bSXin LI
9136dcb072bSXin LI	Major changes between "less" versions 381 and 382
9146dcb072bSXin LI
9156dcb072bSXin LI* Removed some old copyrighted code.
9166dcb072bSXin LI  This probably breaks OS/9 support.
9176dcb072bSXin LI
9186dcb072bSXin LI======================================================================
9196dcb072bSXin LI
920000ba3e8STim J. Robbins	Major changes between "less" versions 378 and 381
921000ba3e8STim J. Robbins
922000ba3e8STim J. Robbins* New -L option to disable LESSOPEN processing.
923000ba3e8STim J. Robbins
924000ba3e8STim J. Robbins* Further support for large (64 bit) file addressing.
925000ba3e8STim J. Robbins  Large file support is now set up by the configure script.
926000ba3e8STim J. Robbins
927000ba3e8STim J. Robbins* Use autoconf 2.54.
928000ba3e8STim J. Robbins  Replace configure.in, acconfig.h, defines.h.top with configure.ac.
929000ba3e8STim J. Robbins
930000ba3e8STim J. Robbins* Overstriking underscore with underscore is now bold or underlined
931000ba3e8STim J. Robbins  depending on context.
932000ba3e8STim J. Robbins
933000ba3e8STim J. Robbins* Use only 7 spaces for line numbers in -N mode, if possible.
934000ba3e8STim J. Robbins
935000ba3e8STim J. Robbins* Fix some bugs in handling overstriking in UTF-8 files.
936000ba3e8STim J. Robbins
937000ba3e8STim J. Robbins* Fix some nroff issues in the man page.
938000ba3e8STim J. Robbins
939000ba3e8STim J. Robbins======================================================================
940000ba3e8STim J. Robbins
941000ba3e8STim J. Robbins	Major changes between "less" versions 376 and 378
942000ba3e8STim J. Robbins
943000ba3e8STim J. Robbins* Bug fixes:
944000ba3e8STim J. Robbins  Default buffer space is now 64K as documented.
945000ba3e8STim J. Robbins  Search highlighting works properly when used with -R.
946000ba3e8STim J. Robbins  Windows version works properly when input file contains carriage returns.
947000ba3e8STim J. Robbins  Clean up some compiler warnings.
948000ba3e8STim J. Robbins
949000ba3e8STim J. Robbins======================================================================
950000ba3e8STim J. Robbins
951000ba3e8STim J. Robbins	Major changes between "less" versions 358 and 376
952c9346414SPaul Saab
953c9346414SPaul Saab* -x option can now specify multiple variable-width tab stops.
954c9346414SPaul Saab
955c9346414SPaul Saab* -X option no longer disables keypad initialization.
956c9346414SPaul Saab  New option --no-keypad disables keypad initialization.
957c9346414SPaul Saab
958c9346414SPaul Saab* New commands t and T step through multiple tag matches.
959c9346414SPaul Saab  Added support for "global(1)" tags
960c9346414SPaul Saab  (see http://www.gnu.org/software/global/global.html).
961c9346414SPaul Saab
962c9346414SPaul Saab* New prompt style set by option -Pw defines the message printed
963c9346414SPaul Saab  while waiting for data in the F command.
964c9346414SPaul Saab
965c9346414SPaul Saab* System-wide lesskey file now defaults to sysless in etc directory
966c9346414SPaul Saab  instead of .sysless in bin directory.
967c9346414SPaul Saab  Use "configure --sysconfdir=..." to change it.
968c9346414SPaul Saab  (For backwards compatibility, .sysless in bin is still recognized.)
969c9346414SPaul Saab
970c9346414SPaul Saab* Pressing RightArrow or LeftArrow while entering a number now shifts
971c9346414SPaul Saab  the display N columns rather than editing the number itself.
972c9346414SPaul Saab
973c9346414SPaul Saab* Status column (enabled with -J) now shows search results.
974c9346414SPaul Saab
975c9346414SPaul Saab* Windows version sets window title.
976c9346414SPaul Saab
977c9346414SPaul Saab* Default LESSCHARSET for MS-DOS versions is now "dos".
978c9346414SPaul Saab
979000ba3e8STim J. Robbins* Searching works better with ANSI (SGR) escape sequences.
980000ba3e8STim J. Robbins  ANSI color escape sequences are now supported in the MS-DOS (DJGPP) version.
981000ba3e8STim J. Robbins
982000ba3e8STim J. Robbins* Improved performance in reading very large pipes.
983c9346414SPaul Saab
984d713e089SXin LI* Eliminated some dependencies on file offsets being 32 bits.
985c9346414SPaul Saab
986c9346414SPaul Saab* Fixed problems when viewing files with very long lines.
987c9346414SPaul Saab
988c9346414SPaul Saab* Fixed overstriking in UTF-8 mode, and overstriking tabs.
989c9346414SPaul Saab
990c9346414SPaul Saab* Improved horizontal shifting of text using -R option with ANSI color.
991c9346414SPaul Saab
992000ba3e8STim J. Robbins* Improved handling of filenames containing shell metacharacters.
993000ba3e8STim J. Robbins
994c9346414SPaul Saab* Some fixes for EBCDIC systems.
995c9346414SPaul Saab
996c9346414SPaul Saab* Some fixes for OS/2 systems.
997c9346414SPaul Saab
998c9346414SPaul Saab======================================================================
999c9346414SPaul Saab
10008ed69c6fSPaul Saab	Major changes between "less" versions 354 and 358
10018ed69c6fSPaul Saab
10028ed69c6fSPaul Saab* Add -J (--status-column) option to display a status column.
10038ed69c6fSPaul Saab
10048ed69c6fSPaul Saab* Add -# (--shift) option to set default horizontal shift distance.
10058ed69c6fSPaul Saab  Default horizontal shift distance is now one-half screen width.
10068ed69c6fSPaul Saab
10078ed69c6fSPaul Saab* Horizontal shifting does not shift line numbers if -N is in effect.
10088ed69c6fSPaul Saab
10098ed69c6fSPaul Saab* Horizontal shifting acts as though -S were set, to avoid confusion.
10108ed69c6fSPaul Saab
10118ed69c6fSPaul Saab======================================================================
10128ed69c6fSPaul Saab
10138ed69c6fSPaul Saab
1014a5f0fb15SPaul Saab	Major changes between "less" versions 352 and 354
1015a5f0fb15SPaul Saab
1016a5f0fb15SPaul Saab* Allow space after numeric-valued command line options.
1017a5f0fb15SPaul Saab
1018a5f0fb15SPaul Saab* Fix problem with configuring terminal libraries on some systems.
1019a5f0fb15SPaul Saab
1020a5f0fb15SPaul Saab* Add support for PCRE regular expression library.
1021a5f0fb15SPaul Saab
1022a5f0fb15SPaul Saab* Add --with-regex option to configure to allow manually selecting
1023a5f0fb15SPaul Saab  a regular expression library.
1024a5f0fb15SPaul Saab
1025a5f0fb15SPaul Saab* Fix bug compiling with SECURE = 1.
1026a5f0fb15SPaul Saab
1027a5f0fb15SPaul Saab======================================================================
1028a5f0fb15SPaul Saab
1029a5f0fb15SPaul Saab
1030a5f0fb15SPaul Saab	Major changes between "less" versions 346 and 352
1031a5f0fb15SPaul Saab
1032a5f0fb15SPaul Saab* Enable UTF-8 if "UTF-8" appears in locale-related environment variables.
1033a5f0fb15SPaul Saab
1034a5f0fb15SPaul Saab* Add --with-editor option to configure script.
1035a5f0fb15SPaul Saab
1036a5f0fb15SPaul Saab* The -M prompt and = message now show the top and bottom line number.
1037a5f0fb15SPaul Saab
1038a5f0fb15SPaul Saab* Fix bug in running the editor on a file whose name contains quotes, etc.
1039a5f0fb15SPaul Saab
1040a5f0fb15SPaul Saab* Fix bug in horizontal scrolling of long lines.
1041a5f0fb15SPaul Saab
1042a5f0fb15SPaul Saab* Fix bug in doing :d on a file which contains marks.
1043a5f0fb15SPaul Saab
1044a5f0fb15SPaul Saab* Fix bug causing cleared lines to sometimes be filled with standout,
1045a5f0fb15SPaul Saab  bold, underline, etc. on certain terminals.
1046a5f0fb15SPaul Saab
1047a5f0fb15SPaul Saab* Fixes for MS-DOS (DJGPP) version.
1048a5f0fb15SPaul Saab
1049a5f0fb15SPaul Saab======================================================================
1050a5f0fb15SPaul Saab
1051a5f0fb15SPaul Saab
1052a5f0fb15SPaul Saab	Major changes between "less" versions 340 and 346
1053a5f0fb15SPaul Saab
1054a5f0fb15SPaul Saab* The UTF-8 character set is now supported.
1055a5f0fb15SPaul Saab
1056a5f0fb15SPaul Saab* The default character set is now latin1 rather than ascii.
1057a5f0fb15SPaul Saab
1058a5f0fb15SPaul Saab* New option -R (--RAW-CONTROL-CHARS) is like -r but handles
1059a5f0fb15SPaul Saab  long (wrapped) lines correctly, as long as the input contains only
1060a5f0fb15SPaul Saab  normal text and ANSI color escape sequences.
1061a5f0fb15SPaul Saab
1062a5f0fb15SPaul Saab* New option -F (--quit-if-one-screen) quits if the text fits on
1063a5f0fb15SPaul Saab  the first screen.
1064a5f0fb15SPaul Saab
1065a5f0fb15SPaul Saab* The -w option now highlights the target line of a g or p command.
1066a5f0fb15SPaul Saab
1067a5f0fb15SPaul Saab* A system-wide lesskey file is supported (LESSKEY_SYSTEM).
1068a5f0fb15SPaul Saab
1069a5f0fb15SPaul Saab* New escape for prompt strings: %c is replaced by column number.
1070a5f0fb15SPaul Saab
1071a5f0fb15SPaul Saab* New escape for prompt strings: %P is replaced by percentage into
1072a5f0fb15SPaul Saab  file, based on line number rather than byte offset.
1073a5f0fb15SPaul Saab
1074a5f0fb15SPaul Saab* HOME and END keys now jump to beginning of file or end of file.
1075a5f0fb15SPaul Saab
1076a5f0fb15SPaul Saab======================================================================
1077a5f0fb15SPaul Saab
1078a5f0fb15SPaul Saab
1079a5f0fb15SPaul Saab	Major changes between "less" versions 337 and 340
1080a5f0fb15SPaul Saab
1081a5f0fb15SPaul Saab* Command line options for less may now be given in either the old
1082a5f0fb15SPaul Saab  single-letter form, or a new long name form (--option-name).
1083a5f0fb15SPaul Saab  See the less man page or "less --help" for the list of long option names.
1084a5f0fb15SPaul Saab
1085a5f0fb15SPaul Saab* Command line options for lesskey may now be given in a new long name
1086a5f0fb15SPaul Saab  form.  See the lesskey man page for the list of long option names.
1087a5f0fb15SPaul Saab
1088a5f0fb15SPaul Saab* New command -- toggles an option using the long option name.
1089a5f0fb15SPaul Saab
1090a5f0fb15SPaul Saab* New command __ queries an option using the long option name.
1091a5f0fb15SPaul Saab
1092a5f0fb15SPaul Saab* The old -- command is renamed as -!.
1093a5f0fb15SPaul Saab
1094a5f0fb15SPaul Saab* If a ^P is entered between the dash and the option letter of the -
1095a5f0fb15SPaul Saab  command, the message describing the new setting is suppressed.
1096a5f0fb15SPaul Saab
1097a5f0fb15SPaul Saab* Lesskey files may now contain \k escape sequences to represent the
1098a5f0fb15SPaul Saab  "special" keys (arrows, PAGE-UP/PAGE-DOWN, HOME, END, INSERT, DELETE).
1099a5f0fb15SPaul Saab
1100a5f0fb15SPaul Saab* New command :d removes the current file from the list of files.
1101a5f0fb15SPaul Saab
1102a5f0fb15SPaul Saab* New option -~ (like -w before version 335)
1103a5f0fb15SPaul Saab  suppresses tildes after end-of-file.
1104a5f0fb15SPaul Saab
1105a5f0fb15SPaul Saab* Less is now released under the GNU General Public License.
1106a5f0fb15SPaul Saab
1107a5f0fb15SPaul Saab======================================================================
1108a5f0fb15SPaul Saab
1109a5f0fb15SPaul Saab
1110a5f0fb15SPaul Saab	Major changes between "less" versions 335 and 337
1111a5f0fb15SPaul Saab
1112a5f0fb15SPaul Saab* Fixed bugs in "make install".
1113a5f0fb15SPaul Saab
1114a5f0fb15SPaul Saab======================================================================
1115a5f0fb15SPaul Saab
1116a5f0fb15SPaul Saab
1117a5f0fb15SPaul Saab	Major changes between "less" versions 332 and 335
1118a5f0fb15SPaul Saab
1119a5f0fb15SPaul Saab* The old -w flag (suppress tildes after end-of-file) has been removed.
1120a5f0fb15SPaul Saab
1121a5f0fb15SPaul Saab* New -w flag highlights the first new line after a forward-screen.
1122a5f0fb15SPaul Saab
1123a5f0fb15SPaul Saab* New -W flag highlights the first new line after any forward movement.
1124a5f0fb15SPaul Saab
1125a5f0fb15SPaul Saab* Window resize works even if LINES and/or COLUMNS environment
1126a5f0fb15SPaul Saab  variables are incorrect.
1127a5f0fb15SPaul Saab
1128a5f0fb15SPaul Saab* New percent escapes for prompt strings:
1129a5f0fb15SPaul Saab  %d is replaced by the page number, and
1130a5f0fb15SPaul Saab  %D is replaced by the number of pages in the file.
1131a5f0fb15SPaul Saab
1132a5f0fb15SPaul Saab* Added charsets "iso8859" and "ebcdic".
1133a5f0fb15SPaul Saab
1134a5f0fb15SPaul Saab* In Windows version, uses HOMEDRIVE and HOMEPATH if HOME is not defined.
1135a5f0fb15SPaul Saab
1136a5f0fb15SPaul Saab* Fixed some bugs causing incorrect display on DOS/Windows.
1137a5f0fb15SPaul Saab
1138a5f0fb15SPaul Saab======================================================================
1139a5f0fb15SPaul Saab
1140a5f0fb15SPaul Saab
1141a5f0fb15SPaul Saab	Major changes between "less" versions 330 and 332
1142a5f0fb15SPaul Saab
1143a5f0fb15SPaul Saab* Filenames from the command line are entered into the command history,
1144a5f0fb15SPaul Saab  so UPARROW/DOWNARROW can be used to retrieve them from the :e command.
1145a5f0fb15SPaul Saab
1146a5f0fb15SPaul Saab* Now works correctly on Windows when using a scrolling terminal
1147a5f0fb15SPaul Saab  window (buffer larger than display window).
1148a5f0fb15SPaul Saab
1149a5f0fb15SPaul Saab* On Windows, now restores the console screen on exit.
1150a5f0fb15SPaul Saab  Use -X to get the old behavior.
1151a5f0fb15SPaul Saab
1152a5f0fb15SPaul Saab* Fixed bug on Windows when CAPS-LOCK or NUM-LOCK is pressed.
1153a5f0fb15SPaul Saab
1154a5f0fb15SPaul Saab* Fixed bug on Windows when piping output of an interactive program.
1155a5f0fb15SPaul Saab
1156a5f0fb15SPaul Saab* Fixed bug in tags file processing when tags file has DOS-style
1157a5f0fb15SPaul Saab  line terminators (CR/LF).
1158a5f0fb15SPaul Saab
1159a5f0fb15SPaul Saab* Fixed compilation problem on OS/2.
1160a5f0fb15SPaul Saab
1161a5f0fb15SPaul Saab======================================================================
1162a5f0fb15SPaul Saab
1163a5f0fb15SPaul Saab
1164a5f0fb15SPaul Saab	Major changes between "less" versions 321 and 330
1165a5f0fb15SPaul Saab
1166a5f0fb15SPaul Saab* Now supports filenames containing spaces (in double quotes).
1167a5f0fb15SPaul Saab  New option -" can be used to change the quoting characters.
1168a5f0fb15SPaul Saab
1169a5f0fb15SPaul Saab* In filename completion, a slash is appended to a directory name.
1170a5f0fb15SPaul Saab  If the environment variable LESSSEPARATOR is set, the value of
1171a5f0fb15SPaul Saab  that variable, rather than a slash, is appended.
1172a5f0fb15SPaul Saab
1173a5f0fb15SPaul Saab* LeftArrow and RightArrow are same as ESC-[ and ESC-].
1174a5f0fb15SPaul Saab
1175a5f0fb15SPaul Saab* Added commands ESC-( and ESC-), same as ESC-[ and ESC-].
1176a5f0fb15SPaul Saab
1177a5f0fb15SPaul Saab* A "quit" command defined in a lesskey file may now have an "extra"
1178a5f0fb15SPaul Saab  string, which is used to return an exit code from less when it quits.
1179a5f0fb15SPaul Saab
1180a5f0fb15SPaul Saab* New environment variables LESSMETACHARS and LESSMETAESCAPE provide
1181a5f0fb15SPaul Saab  more control over how less interfaces to the shell.
1182a5f0fb15SPaul Saab
1183a5f0fb15SPaul Saab* Ported to Microsoft Visual C compiler for Windows.
1184a5f0fb15SPaul Saab
1185a5f0fb15SPaul Saab* Ported to DJGPP compiler for MS-DOS.
1186a5f0fb15SPaul Saab
1187a5f0fb15SPaul Saab* Bug fixes.
1188a5f0fb15SPaul Saab
1189a5f0fb15SPaul Saab======================================================================
1190a5f0fb15SPaul Saab
1191a5f0fb15SPaul Saab
1192a5f0fb15SPaul Saab	Major changes between "less" versions 291 and 321
1193a5f0fb15SPaul Saab
1194a5f0fb15SPaul Saab* Command line at bottom of screen now scrolls, so it can be longer
1195a5f0fb15SPaul Saab  than the screen width.
1196a5f0fb15SPaul Saab
1197a5f0fb15SPaul Saab* New commands ESC-] and ESC-[ scroll the display horizontally.
1198a5f0fb15SPaul Saab
1199a5f0fb15SPaul Saab* New command ESC-SPACE scrolls forward a full screen, even if it
1200a5f0fb15SPaul Saab  hits end-of-file.
1201a5f0fb15SPaul Saab
1202a5f0fb15SPaul Saab* Alternate modifiers for search commands: ^N is same as !,
1203a5f0fb15SPaul Saab  ^F is same as @, and ^E is same as *.
1204a5f0fb15SPaul Saab
1205a5f0fb15SPaul Saab* New modifier for search commands: ^K means highlight the matches
1206a5f0fb15SPaul Saab  currently on-screen, but don't move to the first match.
1207a5f0fb15SPaul Saab
1208a5f0fb15SPaul Saab* New modifier for search commands: ^R means don't use regular
1209a5f0fb15SPaul Saab  expressions in the search.
1210a5f0fb15SPaul Saab
1211a5f0fb15SPaul Saab* Environment variable LESSKEY gives name of default lesskey file.
1212a5f0fb15SPaul Saab
1213a5f0fb15SPaul Saab* Environment variable LESSSECURE will force less to run in
1214a5f0fb15SPaul Saab  "secure" mode.
1215a5f0fb15SPaul Saab
1216a5f0fb15SPaul Saab* Command line argument "--" signals that the rest of the arguments
1217a5f0fb15SPaul Saab  are files (not option flags).
1218a5f0fb15SPaul Saab
1219a5f0fb15SPaul Saab* Help file (less.hlp) is no longer installed.  Help text is now
1220a5f0fb15SPaul Saab  embedded in the less executable itself.
1221a5f0fb15SPaul Saab
1222a5f0fb15SPaul Saab* Added -Ph to change the prompt for the help text.
1223a5f0fb15SPaul Saab  Added -Ps to change the default short prompt (same as plain -P).
1224a5f0fb15SPaul Saab
1225a5f0fb15SPaul Saab* Ported to the Borland C compiler for MS-DOS.
1226a5f0fb15SPaul Saab
1227a5f0fb15SPaul Saab* Ported to Windows 95 & Windows NT.
1228a5f0fb15SPaul Saab
1229a5f0fb15SPaul Saab* Ported to OS-9.
1230a5f0fb15SPaul Saab
1231a5f0fb15SPaul Saab* Ported to GNU Hurd.
1232a5f0fb15SPaul Saab
1233a5f0fb15SPaul Saab======================================================================
1234a5f0fb15SPaul Saab
1235a5f0fb15SPaul Saab
1236a5f0fb15SPaul Saab	Major changes between "less" versions 290 and 291
1237a5f0fb15SPaul Saab
1238a5f0fb15SPaul Saab* Less environment variables can be specified in lesskey files.
1239a5f0fb15SPaul Saab
1240a5f0fb15SPaul Saab* Fixed MS-DOS build.
1241a5f0fb15SPaul Saab
1242a5f0fb15SPaul Saab======================================================================
1243a5f0fb15SPaul Saab
1244a5f0fb15SPaul Saab
1245a5f0fb15SPaul Saab	Major changes between "less" versions 278 and 290
1246a5f0fb15SPaul Saab
1247a5f0fb15SPaul Saab* Accepts GNU-style options "--help" and "--version".
1248a5f0fb15SPaul Saab
1249a5f0fb15SPaul Saab* OS/2 version looks for less.ini in $HOME before $INIT and $PATH.
1250a5f0fb15SPaul Saab
1251a5f0fb15SPaul Saab* Bug fixes
1252a5f0fb15SPaul Saab
1253a5f0fb15SPaul Saab======================================================================
1254a5f0fb15SPaul Saab
1255a5f0fb15SPaul Saab
1256a5f0fb15SPaul Saab	Major changes between "less" versions 252 and 278
1257a5f0fb15SPaul Saab
1258a5f0fb15SPaul Saab* A LESSOPEN preprocessor may now pipe the converted file data to less,
1259a5f0fb15SPaul Saab  rather than writing it to a temporary file.
1260a5f0fb15SPaul Saab
1261a5f0fb15SPaul Saab* Search pattern highlighting has been fixed.  It now highlights
1262a5f0fb15SPaul Saab  reliably, even if a string is split across two screen lines,
1263a5f0fb15SPaul Saab  contains TABs, etc.
1264a5f0fb15SPaul Saab
1265a5f0fb15SPaul Saab* The -F flag (which suppress search highlighting) has been changed
1266a5f0fb15SPaul Saab  to -G.  A new flag, -g, changes search highlighting to highlight
1267a5f0fb15SPaul Saab  only the string found by the last search command, instead of all
1268a5f0fb15SPaul Saab  strings which match the last search command.
1269a5f0fb15SPaul Saab
1270a5f0fb15SPaul Saab* New flag -I acts like -i, but ignores case even if the search
1271a5f0fb15SPaul Saab  pattern contains uppercase letters.
1272a5f0fb15SPaul Saab
1273a5f0fb15SPaul Saab* Less now checks for the environment variable VISUAL before EDITOR.
1274a5f0fb15SPaul Saab
1275a5f0fb15SPaul Saab* Ported to OS/2.
1276a5f0fb15SPaul Saab
1277a5f0fb15SPaul Saab======================================================================
1278a5f0fb15SPaul Saab
1279a5f0fb15SPaul Saab
1280a5f0fb15SPaul Saab	Major changes between "less" versions 237 and 252
1281a5f0fb15SPaul Saab
1282a5f0fb15SPaul Saab* Changes in line-editing keys:
1283a5f0fb15SPaul Saab  The literal key is now ^V or ^A rather than \ (backslash).
1284a5f0fb15SPaul Saab  Filename completion commands (TAB and ^L) are disabled
1285a5f0fb15SPaul Saab  when typing a search pattern.
1286a5f0fb15SPaul Saab
1287a5f0fb15SPaul Saab* Line-editing command keys can be redefined using lesskey.
1288a5f0fb15SPaul Saab
1289a5f0fb15SPaul Saab* Lesskey with no input file defaults to $HOME/.lesskey
1290a5f0fb15SPaul Saab  rather than standard input.
1291a5f0fb15SPaul Saab
1292a5f0fb15SPaul Saab* New option -V displays version number of less.
1293a5f0fb15SPaul Saab
1294a5f0fb15SPaul Saab* New option -V displays version number of lesskey.
1295a5f0fb15SPaul Saab
1296a5f0fb15SPaul Saab* Help file less.hlp is now installed by default in /usr/local/share
1297a5f0fb15SPaul Saab  rather than /usr/local/lib.
1298a5f0fb15SPaul Saab
1299a5f0fb15SPaul Saab
1300a5f0fb15SPaul Saab======================================================================
1301a5f0fb15SPaul Saab
1302a5f0fb15SPaul Saab
1303a5f0fb15SPaul Saab	Major changes between "less" versions 170 and 237
1304a5f0fb15SPaul Saab
1305a5f0fb15SPaul Saab* By popular demand, text which matches the current search pattern
1306a5f0fb15SPaul Saab  is highlighted.  New -F flag disables this feature.
1307a5f0fb15SPaul Saab
1308a5f0fb15SPaul Saab* Henry Spencer's regexp.c is now included, for systems which do not
1309a5f0fb15SPaul Saab  have a regular expression library.
1310a5f0fb15SPaul Saab  regexp.c is Copyright (c) 1986 by University of Toronto.
1311a5f0fb15SPaul Saab
1312a5f0fb15SPaul Saab* New line-editing keys, including command history (arrow keys) and
1313a5f0fb15SPaul Saab  filename completion (TAB).
1314a5f0fb15SPaul Saab
1315a5f0fb15SPaul Saab* Input preprocessor allows modification of input files (e.g. uncompress)
1316a5f0fb15SPaul Saab  via LESSOPEN/LESSCLOSE environment variables.
1317a5f0fb15SPaul Saab
1318a5f0fb15SPaul Saab* New -X flag disables sending termcap "ti" and "te" (initialize and
1319a5f0fb15SPaul Saab  deinitialize) strings to the terminal.
1320a5f0fb15SPaul Saab
1321a5f0fb15SPaul Saab* Changing -i from within less now correctly affects a subsequent
1322a5f0fb15SPaul Saab  repeated search.
1323a5f0fb15SPaul Saab
1324a5f0fb15SPaul Saab* Searching for underlined or overstruck text now works when the -u
1325a5f0fb15SPaul Saab  flag is in effect, rather than the -i flag.
1326a5f0fb15SPaul Saab
1327a5f0fb15SPaul Saab* Use setlocale (LANG and LC_CTYPE environment variables) to determine
1328a5f0fb15SPaul Saab  the character set if LESSCHARSET/LESSCHARDEF are not set.
1329a5f0fb15SPaul Saab
1330a5f0fb15SPaul Saab* The default format for displaying binary characters is now standout
1331a5f0fb15SPaul Saab  (reverse video) rather than blinking.  This can still be changed by
1332a5f0fb15SPaul Saab  setting the LESSBINFMT environment variable.
1333a5f0fb15SPaul Saab
1334a5f0fb15SPaul Saab* Use autoconf installation technology.
1335a5f0fb15SPaul Saab
1336a5f0fb15SPaul Saab* Ported to MS-DOS.
1337a5f0fb15SPaul Saab
1338a5f0fb15SPaul Saab        ********************************
1339a5f0fb15SPaul Saab          Things that may surprise you
1340a5f0fb15SPaul Saab        ********************************
1341a5f0fb15SPaul Saab
1342a5f0fb15SPaul Saab* When you enter text at the bottom of the screen (search string,
1343a5f0fb15SPaul Saab  filename, etc.), some keys act different than previously.
1344a5f0fb15SPaul Saab  Specifically, \ (backslash), ESC, TAB, BACKTAB, and control-L
1345a5f0fb15SPaul Saab  now have line editing functions.
1346a5f0fb15SPaul Saab
1347a5f0fb15SPaul Saab* Some previous unofficial versions of less were able to display
1348a5f0fb15SPaul Saab  compressed files.  The new LESSOPEN/LESSCLOSE feature now provides
1349a5f0fb15SPaul Saab  this functionality in a different way.
1350a5f0fb15SPaul Saab
1351a5f0fb15SPaul Saab* Some previous unofficial versions of less provided a -Z flag to
1352a5f0fb15SPaul Saab  set the number of lines of text to retain between full screen scrolls.
1353a5f0fb15SPaul Saab  The -z-n flag (that is, -z with a negative number) provides this
1354a5f0fb15SPaul Saab  functionality.
1355a5f0fb15SPaul Saab
1356a5f0fb15SPaul Saab
1357a5f0fb15SPaul Saab======================================================================
1358a5f0fb15SPaul Saab
1359a5f0fb15SPaul Saab
1360a5f0fb15SPaul Saab	Major changes between "less" versions 123 and 170
1361a5f0fb15SPaul Saab
1362a5f0fb15SPaul Saab* New option -j allows target lines to be positioned anywhere on screen.
1363a5f0fb15SPaul Saab
1364a5f0fb15SPaul Saab* New option -S truncates displayed line at the screen width,
1365a5f0fb15SPaul Saab  rather than wrapping onto the next line.
1366a5f0fb15SPaul Saab
1367a5f0fb15SPaul Saab* New option -y limits amount of forward scroll.
1368a5f0fb15SPaul Saab
1369a5f0fb15SPaul Saab* New option -T specifies a "tags" file.
1370a5f0fb15SPaul Saab
1371a5f0fb15SPaul Saab* Non-printable, non-control characters are displayed in octal.
1372a5f0fb15SPaul Saab  Such characters, as well as control characters, are displayed
1373a5f0fb15SPaul Saab  in blinking mode.
1374a5f0fb15SPaul Saab
1375a5f0fb15SPaul Saab* New command -+ sets an option to its default.
1376a5f0fb15SPaul Saab* New command -- sets an option to the opposite of its default.
1377a5f0fb15SPaul Saab
1378a5f0fb15SPaul Saab* Lesskey file may have a string appended to a key's action,
1379a5f0fb15SPaul Saab  which acts as though typed in after the command.
1380a5f0fb15SPaul Saab
1381a5f0fb15SPaul Saab* New commands ESC-^F and ESC-^B match arbitrary types of brackets.
1382a5f0fb15SPaul Saab
1383a5f0fb15SPaul Saab* New command F monitors a growing file (like "tail -f").
1384a5f0fb15SPaul Saab
1385a5f0fb15SPaul Saab* New command | pipes a section of the input file into a shell command.
1386a5f0fb15SPaul Saab
1387a5f0fb15SPaul Saab* New command :x directly jumps to a file in the command line list.
1388a5f0fb15SPaul Saab
1389a5f0fb15SPaul Saab* Search commands have been enhanced and reorganized:
1390a5f0fb15SPaul Saab	n	Repeat search, same direction.
1391a5f0fb15SPaul Saab	N	Repeat search, opposite direction.
1392a5f0fb15SPaul Saab	ESC-/	Search forward thru file boundaries
1393a5f0fb15SPaul Saab	ESC-?	Search backward thru file boundaries
1394a5f0fb15SPaul Saab	ESC-n	Repeat search thru file boundaries, same direction.
1395a5f0fb15SPaul Saab	ESC-N	Repeat search thru file boundaries, opposite direction.
1396a5f0fb15SPaul Saab  Special character * causes search to search thru file boundaries.
1397a5f0fb15SPaul Saab  Special character @ causes search to begin at start/end of file list.
1398a5f0fb15SPaul Saab
1399a5f0fb15SPaul Saab* Examining a new file adds it to the command line list.
1400a5f0fb15SPaul Saab  A list of files, or an expression which matches more than one file,
1401a5f0fb15SPaul Saab  may be examined; all of them are added to the command line list.
1402a5f0fb15SPaul Saab
1403a5f0fb15SPaul Saab* Environment variables LESSCHARSET and LESSCHARDEF can define
1404a5f0fb15SPaul Saab  a non-ASCII character set.
1405a5f0fb15SPaul Saab
1406a5f0fb15SPaul Saab* Partial support for MSDOS, including options -R for repainting screen
1407a5f0fb15SPaul Saab  on quit, -v/-V to select video mode, and -W to change window size.
1408a5f0fb15SPaul Saab
1409a5f0fb15SPaul Saab
1410a5f0fb15SPaul Saab======================================================================
1411a5f0fb15SPaul Saab
1412a5f0fb15SPaul Saab
1413a5f0fb15SPaul Saab	Major changes between "less" versions 97 and 123
1414a5f0fb15SPaul Saab
1415a5f0fb15SPaul Saab* New option (-N) causes line numbers to be displayed in the
1416a5f0fb15SPaul Saab  text of the file (like vi "set nu").
1417a5f0fb15SPaul Saab
1418a5f0fb15SPaul Saab* New option (-?) prints help message immediately.
1419a5f0fb15SPaul Saab
1420a5f0fb15SPaul Saab* New option (-r) displays "raw" control characters, without
1421a5f0fb15SPaul Saab  mapping them to ^X notation.
1422a5f0fb15SPaul Saab
1423a5f0fb15SPaul Saab* New option (-f) forces less to open non-regular files
1424a5f0fb15SPaul Saab  (directories, etc).
1425a5f0fb15SPaul Saab
1426a5f0fb15SPaul Saab* New option (-k) can be used to specify lesskey files by name.
1427a5f0fb15SPaul Saab
1428a5f0fb15SPaul Saab* New option (-y) can be used to set a forward scroll limit
1429a5f0fb15SPaul Saab  (like -h sets a backward scroll limit).
1430a5f0fb15SPaul Saab
1431a5f0fb15SPaul Saab* File marks (set by the m command) are now preserved when a new
1432a5f0fb15SPaul Saab  file is edited.  The ' command can thus be used to switch files.
1433a5f0fb15SPaul Saab
1434a5f0fb15SPaul Saab* New command ESC-/ searches all files (on the command line)
1435a5f0fb15SPaul Saab  for a pattern.
1436a5f0fb15SPaul Saab
1437a5f0fb15SPaul Saab* New command ESC-n repeats previous search, spanning files.
1438a5f0fb15SPaul Saab
1439a5f0fb15SPaul Saab* The N command has been changed to repeat the previous search
1440a5f0fb15SPaul Saab  in the reverse direction.  The old N command is still available
1441a5f0fb15SPaul Saab  via :n.
1442a5f0fb15SPaul Saab
1443a5f0fb15SPaul Saab* New command ESC-N repeats previous search in the reverse
1444a5f0fb15SPaul Saab  direction and spanning files.
1445a5f0fb15SPaul Saab
1446a5f0fb15SPaul Saab* 8 bit characters are now supported.  A new option (-g) can be
1447a5f0fb15SPaul Saab  used to strip off the eighth bit (the previous behavior).
1448a5f0fb15SPaul Saab
1449a5f0fb15SPaul Saab* Options which take a following string (like -t) may now
1450a5f0fb15SPaul Saab  optionally have a space between the option letter and the string.
1451a5f0fb15SPaul Saab
1452a5f0fb15SPaul Saab* Six new commands { } ( ) [ and ] can be used to match
1453a5f0fb15SPaul Saab  brackets of specific types, similar to vi % command.
1454a5f0fb15SPaul Saab
1455a5f0fb15SPaul Saab* New commands z and w move forward/backward one window and
1456a5f0fb15SPaul Saab  simultaneously set the window size.
1457a5f0fb15SPaul Saab
1458a5f0fb15SPaul Saab* Prompt string expansion now has %L for line number of the last
1459a5f0fb15SPaul Saab  line in the file, and %E for the name of the editor.
1460a5f0fb15SPaul Saab  Also, % escapes which refer to a line (b=bottom, t=top, etc.)
1461a5f0fb15SPaul Saab  can use j for the jump target line.
1462a5f0fb15SPaul Saab
1463a5f0fb15SPaul Saab* New environment variable LESSEDIT can be used to tailor the
1464a5f0fb15SPaul Saab  command string passed to the editor by the v command.
1465a5f0fb15SPaul Saab
1466a5f0fb15SPaul Saab* Examining a file which was previously examined will return
1467a5f0fb15SPaul Saab  to the same position in the file.
1468a5f0fb15SPaul Saab
1469a5f0fb15SPaul Saab* A "%" is expanded to the current filename and a "#" to the
1470a5f0fb15SPaul Saab  previous filename, in both shell commands and the E command.
1471a5f0fb15SPaul Saab  (Previously % worked only in shell commands and # worked
1472a5f0fb15SPaul Saab  only in the E command.)
1473a5f0fb15SPaul Saab
1474a5f0fb15SPaul Saab* New command ":ta" is equivalent to "-t".
1475a5f0fb15SPaul Saab
1476a5f0fb15SPaul Saab* New command "s" is equivalent to "-l".
1477a5f0fb15SPaul Saab
1478a5f0fb15SPaul Saab* The - command may be followed by "+X" to revert to the default
1479a5f0fb15SPaul Saab  for option X, or "-X" to get the opposite of the default.
1480a5f0fb15SPaul Saab
1481a5f0fb15SPaul Saab* Lesskey files may now include characters after the action as
1482a5f0fb15SPaul Saab  extra input to be parsed after the action; for example:
1483a5f0fb15SPaul Saab  "toggle-option X" to toggle a specific option X.
14847f074f9cSXin LI
14857f074f9cSXin LI
14867f074f9cSXin LI
1487f78327b5SXin LI
1488464501a8SXin LI
1489