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