1a5f0fb15SPaul Saab 2a5f0fb15SPaul Saab NEWS about less 3a5f0fb15SPaul Saab 4a5f0fb15SPaul Saab====================================================================== 5a5f0fb15SPaul Saab 6a5f0fb15SPaul Saab For the latest news about less, see the "less" Web page: 7c9346414SPaul Saab http://www.greenwoodsoftware.com/less 8a5f0fb15SPaul Saab You can also download the latest version of less from there. 9a5f0fb15SPaul Saab 107f074f9cSXin LI To report bugs, suggestions or comments, send email to 117f074f9cSXin LI bug-less@gnu.org or markn@greenwoodsoftware.com. 12a5f0fb15SPaul Saab 13a5f0fb15SPaul Saab====================================================================== 14a5f0fb15SPaul Saab 15a5f0fb15SPaul Saab 16f78327b5SXin LI Major changes between "less" versions 406 and 409 171c6a5c10SXin LI 181c6a5c10SXin LI* Support CSI escape sequences, like SGR escape sequences. 191c6a5c10SXin LI 201c6a5c10SXin LI* Fix bug which caused screen to fail to repaint when window is resized. 211c6a5c10SXin LI 221c6a5c10SXin LI* Fix bug in using -i and -I flags with non-ASCII text. 231c6a5c10SXin LI 241c6a5c10SXin LI* Fix configure bug on systems which don't support langinfo.h. 251c6a5c10SXin LI 26f78327b5SXin LI* Fix crash when searching text containing certain invalid UTF-8 sequences. 27f78327b5SXin LI 281c6a5c10SXin LI====================================================================== 291c6a5c10SXin LI 30efd72c2eSXin LI Major changes between "less" versions 394 and 406 317f074f9cSXin LI 327f074f9cSXin LI* Allow decimal point in number for % (percent) command. 337f074f9cSXin LI 347f074f9cSXin LI* Allow decimal point in number for -j option (fraction of screen height). 357f074f9cSXin LI 367f074f9cSXin LI* Make n command fetch previous pattern from history file on first search. 377f074f9cSXin LI 387f074f9cSXin LI* Don't rewrite history file if it has not changed. 397f074f9cSXin LI 407f074f9cSXin LI* Don't move to bottom of screen on first page. 417f074f9cSXin LI 427f074f9cSXin LI* Don't output extraneous newlines, so copy & pasting lines from the 437f074f9cSXin LI output works better. 447f074f9cSXin LI 457f074f9cSXin LI* The -c option has been made identical with the -C option. 467f074f9cSXin LI 477f074f9cSXin LI* Allow "/dev/null" as synomym for "-" in LESSHISTFILE to indicate 487f074f9cSXin LI that no history file should be used. 497f074f9cSXin LI 507f074f9cSXin LI* Search can now find text which follows a null byte, if the PCRE 517f074f9cSXin LI library is used, or if no-regex searching (ctrl-R) is used. 527f074f9cSXin LI 537f074f9cSXin LI* Better compatibility with POSIX more specification. 547f074f9cSXin LI 557f074f9cSXin LI* Make -f work for directories. 567f074f9cSXin LI 577f074f9cSXin LI* Make "t" cmd traverse tags in the correct order. 587f074f9cSXin LI 597f074f9cSXin LI* Allow a few binary characters in the input file before warning 607f074f9cSXin LI that the file is binary. 617f074f9cSXin LI 627f074f9cSXin LI* Don't warn that file is binary if it merely contains ANSI color sequences 637f074f9cSXin LI and -R is in effect. 647f074f9cSXin LI 657f074f9cSXin LI* Update Unicode character tables. 667f074f9cSXin LI 677f074f9cSXin LI* Support DESTDIR in Makefile. 687f074f9cSXin LI 697f074f9cSXin LI* Fix bug when filename contains certain shell metacharacters such as "$". 707f074f9cSXin LI 717f074f9cSXin LI* Fix bug when resizing the window while waiting for input from a pipe. 727f074f9cSXin LI 737f074f9cSXin LI* Fix configure bugs. 747f074f9cSXin LI 757f074f9cSXin LI====================================================================== 767f074f9cSXin LI 776dcb072bSXin LI Major changes between "less" versions 382 and 394 786dcb072bSXin LI 796dcb072bSXin LI* Add history file to save search and shell command history between 806dcb072bSXin LI invocations of less. 816dcb072bSXin LI 826dcb072bSXin LI* Improve behavior of history list for search and shell commands. 836dcb072bSXin LI 846dcb072bSXin LI* Add -K (or --quit-on-intr) option to make less exit immediately on ctrl-C. 856dcb072bSXin LI 866dcb072bSXin LI* Improve handling of UTF-8 files and commands, including better 876dcb072bSXin LI line wrapping and handling double-width chars. 886dcb072bSXin LI 896dcb072bSXin LI* Added LESSUTFBINFMT environment variable to control display of 906dcb072bSXin LI non-printable characters in a UTF-8 file. 916dcb072bSXin LI 926dcb072bSXin LI* Add --with-secure option to configure, to make it easier to 936dcb072bSXin LI build a secure version of less. 946dcb072bSXin LI 956dcb072bSXin LI* Show search matches in the status column even if search highlights 966dcb072bSXin LI are disabled via the -G option or the ESC-u command. 976dcb072bSXin LI 986dcb072bSXin LI* Improve performance when the file contains very long lines. 996dcb072bSXin LI 1006dcb072bSXin LI* Add "windows" charset. 1016dcb072bSXin LI 1026dcb072bSXin LI* Add man page for lessecho. 1036dcb072bSXin LI 1046dcb072bSXin LI* Add support for erase2 character, treated same as erase. 1056dcb072bSXin LI 1066dcb072bSXin LI* Use ASCII lowercase/uppercase logic when operating on the command line. 1076dcb072bSXin LI 1086dcb072bSXin LI* Update makefile for Borland C++ 5.5.1. 1096dcb072bSXin LI 1106dcb072bSXin LI* Fix bug in calculating number of pages for %D prompt. 1116dcb072bSXin LI 1126dcb072bSXin LI* Fix bug in handling tag file error. 1136dcb072bSXin LI 1146dcb072bSXin LI* Fix obscure bug if input file is deleted while viewing help. 1156dcb072bSXin LI 1166dcb072bSXin LI* Fix bug handling filenames which include square brackets. 1176dcb072bSXin LI 1186dcb072bSXin LI* Fix possible buffer overflow in "global" tag search. 1196dcb072bSXin LI 1206dcb072bSXin LI* Fix possible buffer overflow in usage of LESSOPEN and LESSCLOSE. 1216dcb072bSXin LI 1226dcb072bSXin LI* Fix buffer overflow in reverse search. 1236dcb072bSXin LI 1246dcb072bSXin LI====================================================================== 1256dcb072bSXin LI 1266dcb072bSXin LI Major changes between "less" versions 381 and 382 1276dcb072bSXin LI 1286dcb072bSXin LI* Removed some old copyrighted code. 1296dcb072bSXin LI This probably breaks OS/9 support. 1306dcb072bSXin LI 1316dcb072bSXin LI====================================================================== 1326dcb072bSXin LI 133000ba3e8STim J. Robbins Major changes between "less" versions 378 and 381 134000ba3e8STim J. Robbins 135000ba3e8STim J. Robbins* New -L option to disable LESSOPEN processing. 136000ba3e8STim J. Robbins 137000ba3e8STim J. Robbins* Further support for large (64 bit) file addressing. 138000ba3e8STim J. Robbins Large file support is now set up by the configure script. 139000ba3e8STim J. Robbins 140000ba3e8STim J. Robbins* Use autoconf 2.54. 141000ba3e8STim J. Robbins Replace configure.in, acconfig.h, defines.h.top with configure.ac. 142000ba3e8STim J. Robbins 143000ba3e8STim J. Robbins* Overstriking underscore with underscore is now bold or underlined 144000ba3e8STim J. Robbins depending on context. 145000ba3e8STim J. Robbins 146000ba3e8STim J. Robbins* Use only 7 spaces for line numbers in -N mode, if possible. 147000ba3e8STim J. Robbins 148000ba3e8STim J. Robbins* Fix some bugs in handling overstriking in UTF-8 files. 149000ba3e8STim J. Robbins 150000ba3e8STim J. Robbins* Fix some nroff issues in the man page. 151000ba3e8STim J. Robbins 152000ba3e8STim J. Robbins====================================================================== 153000ba3e8STim J. Robbins 154000ba3e8STim J. Robbins Major changes between "less" versions 376 and 378 155000ba3e8STim J. Robbins 156000ba3e8STim J. Robbins* Bug fixes: 157000ba3e8STim J. Robbins Default buffer space is now 64K as documented. 158000ba3e8STim J. Robbins Search highlighting works properly when used with -R. 159000ba3e8STim J. Robbins Windows version works properly when input file contains carriage returns. 160000ba3e8STim J. Robbins Clean up some compiler warnings. 161000ba3e8STim J. Robbins 162000ba3e8STim J. Robbins====================================================================== 163000ba3e8STim J. Robbins 164000ba3e8STim J. Robbins Major changes between "less" versions 358 and 376 165c9346414SPaul Saab 166c9346414SPaul Saab* -x option can now specify multiple variable-width tab stops. 167c9346414SPaul Saab 168c9346414SPaul Saab* -X option no longer disables keypad initialization. 169c9346414SPaul Saab New option --no-keypad disables keypad initialization. 170c9346414SPaul Saab 171c9346414SPaul Saab* New commands t and T step through multiple tag matches. 172c9346414SPaul Saab Added support for "global(1)" tags 173c9346414SPaul Saab (see http://www.gnu.org/software/global/global.html). 174c9346414SPaul Saab 175c9346414SPaul Saab* New prompt style set by option -Pw defines the message printed 176c9346414SPaul Saab while waiting for data in the F command. 177c9346414SPaul Saab 178c9346414SPaul Saab* System-wide lesskey file now defaults to sysless in etc directory 179c9346414SPaul Saab instead of .sysless in bin directory. 180c9346414SPaul Saab Use "configure --sysconfdir=..." to change it. 181c9346414SPaul Saab (For backwards compatibility, .sysless in bin is still recognized.) 182c9346414SPaul Saab 183c9346414SPaul Saab* Pressing RightArrow or LeftArrow while entering a number now shifts 184c9346414SPaul Saab the display N columns rather than editing the number itself. 185c9346414SPaul Saab 186c9346414SPaul Saab* Status column (enabled with -J) now shows search results. 187c9346414SPaul Saab 188c9346414SPaul Saab* Windows version sets window title. 189c9346414SPaul Saab 190c9346414SPaul Saab* Default LESSCHARSET for MS-DOS versions is now "dos". 191c9346414SPaul Saab 192000ba3e8STim J. Robbins* Searching works better with ANSI (SGR) escape sequences. 193000ba3e8STim J. Robbins ANSI color escape sequences are now supported in the MS-DOS (DJGPP) version. 194000ba3e8STim J. Robbins 195000ba3e8STim J. Robbins* Improved performance in reading very large pipes. 196c9346414SPaul Saab 197c9346414SPaul Saab* Eliminated some dependencies on file offets being 32 bits. 198c9346414SPaul Saab 199c9346414SPaul Saab* Fixed problems when viewing files with very long lines. 200c9346414SPaul Saab 201c9346414SPaul Saab* Fixed overstriking in UTF-8 mode, and overstriking tabs. 202c9346414SPaul Saab 203c9346414SPaul Saab* Improved horizontal shifting of text using -R option with ANSI color. 204c9346414SPaul Saab 205000ba3e8STim J. Robbins* Improved handling of filenames containing shell metacharacters. 206000ba3e8STim J. Robbins 207c9346414SPaul Saab* Some fixes for EBCDIC systems. 208c9346414SPaul Saab 209c9346414SPaul Saab* Some fixes for OS/2 systems. 210c9346414SPaul Saab 211c9346414SPaul Saab====================================================================== 212c9346414SPaul Saab 2138ed69c6fSPaul Saab Major changes between "less" versions 354 and 358 2148ed69c6fSPaul Saab 2158ed69c6fSPaul Saab* Add -J (--status-column) option to display a status column. 2168ed69c6fSPaul Saab 2178ed69c6fSPaul Saab* Add -# (--shift) option to set default horizontal shift distance. 2188ed69c6fSPaul Saab Default horizontal shift distance is now one-half screen width. 2198ed69c6fSPaul Saab 2208ed69c6fSPaul Saab* Horizontal shifting does not shift line numbers if -N is in effect. 2218ed69c6fSPaul Saab 2228ed69c6fSPaul Saab* Horizontal shifting acts as though -S were set, to avoid confusion. 2238ed69c6fSPaul Saab 2248ed69c6fSPaul Saab====================================================================== 2258ed69c6fSPaul Saab 2268ed69c6fSPaul Saab 227a5f0fb15SPaul Saab Major changes between "less" versions 352 and 354 228a5f0fb15SPaul Saab 229a5f0fb15SPaul Saab* Allow space after numeric-valued command line options. 230a5f0fb15SPaul Saab 231a5f0fb15SPaul Saab* Fix problem with configuring terminal libraries on some systems. 232a5f0fb15SPaul Saab 233a5f0fb15SPaul Saab* Add support for PCRE regular expression library. 234a5f0fb15SPaul Saab 235a5f0fb15SPaul Saab* Add --with-regex option to configure to allow manually selecting 236a5f0fb15SPaul Saab a regular expression library. 237a5f0fb15SPaul Saab 238a5f0fb15SPaul Saab* Fix bug compiling with SECURE = 1. 239a5f0fb15SPaul Saab 240a5f0fb15SPaul Saab====================================================================== 241a5f0fb15SPaul Saab 242a5f0fb15SPaul Saab 243a5f0fb15SPaul Saab Major changes between "less" versions 346 and 352 244a5f0fb15SPaul Saab 245a5f0fb15SPaul Saab* Enable UTF-8 if "UTF-8" appears in locale-related environment variables. 246a5f0fb15SPaul Saab 247a5f0fb15SPaul Saab* Add --with-editor option to configure script. 248a5f0fb15SPaul Saab 249a5f0fb15SPaul Saab* The -M prompt and = message now show the top and bottom line number. 250a5f0fb15SPaul Saab 251a5f0fb15SPaul Saab* Fix bug in running the editor on a file whose name contains quotes, etc. 252a5f0fb15SPaul Saab 253a5f0fb15SPaul Saab* Fix bug in horizontal scrolling of long lines. 254a5f0fb15SPaul Saab 255a5f0fb15SPaul Saab* Fix bug in doing :d on a file which contains marks. 256a5f0fb15SPaul Saab 257a5f0fb15SPaul Saab* Fix bug causing cleared lines to sometimes be filled with standout, 258a5f0fb15SPaul Saab bold, underline, etc. on certain terminals. 259a5f0fb15SPaul Saab 260a5f0fb15SPaul Saab* Fixes for MS-DOS (DJGPP) version. 261a5f0fb15SPaul Saab 262a5f0fb15SPaul Saab====================================================================== 263a5f0fb15SPaul Saab 264a5f0fb15SPaul Saab 265a5f0fb15SPaul Saab Major changes between "less" versions 340 and 346 266a5f0fb15SPaul Saab 267a5f0fb15SPaul Saab* The UTF-8 character set is now supported. 268a5f0fb15SPaul Saab 269a5f0fb15SPaul Saab* The default character set is now latin1 rather than ascii. 270a5f0fb15SPaul Saab 271a5f0fb15SPaul Saab* New option -R (--RAW-CONTROL-CHARS) is like -r but handles 272a5f0fb15SPaul Saab long (wrapped) lines correctly, as long as the input contains only 273a5f0fb15SPaul Saab normal text and ANSI color escape sequences. 274a5f0fb15SPaul Saab 275a5f0fb15SPaul Saab* New option -F (--quit-if-one-screen) quits if the text fits on 276a5f0fb15SPaul Saab the first screen. 277a5f0fb15SPaul Saab 278a5f0fb15SPaul Saab* The -w option now highlights the target line of a g or p command. 279a5f0fb15SPaul Saab 280a5f0fb15SPaul Saab* A system-wide lesskey file is supported (LESSKEY_SYSTEM). 281a5f0fb15SPaul Saab 282a5f0fb15SPaul Saab* New escape for prompt strings: %c is replaced by column number. 283a5f0fb15SPaul Saab 284a5f0fb15SPaul Saab* New escape for prompt strings: %P is replaced by percentage into 285a5f0fb15SPaul Saab file, based on line number rather than byte offset. 286a5f0fb15SPaul Saab 287a5f0fb15SPaul Saab* HOME and END keys now jump to beginning of file or end of file. 288a5f0fb15SPaul Saab 289a5f0fb15SPaul Saab====================================================================== 290a5f0fb15SPaul Saab 291a5f0fb15SPaul Saab 292a5f0fb15SPaul Saab Major changes between "less" versions 337 and 340 293a5f0fb15SPaul Saab 294a5f0fb15SPaul Saab* Command line options for less may now be given in either the old 295a5f0fb15SPaul Saab single-letter form, or a new long name form (--option-name). 296a5f0fb15SPaul Saab See the less man page or "less --help" for the list of long option names. 297a5f0fb15SPaul Saab 298a5f0fb15SPaul Saab* Command line options for lesskey may now be given in a new long name 299a5f0fb15SPaul Saab form. See the lesskey man page for the list of long option names. 300a5f0fb15SPaul Saab 301a5f0fb15SPaul Saab* New command -- toggles an option using the long option name. 302a5f0fb15SPaul Saab 303a5f0fb15SPaul Saab* New command __ queries an option using the long option name. 304a5f0fb15SPaul Saab 305a5f0fb15SPaul Saab* The old -- command is renamed as -!. 306a5f0fb15SPaul Saab 307a5f0fb15SPaul Saab* If a ^P is entered between the dash and the option letter of the - 308a5f0fb15SPaul Saab command, the message describing the new setting is suppressed. 309a5f0fb15SPaul Saab 310a5f0fb15SPaul Saab* Lesskey files may now contain \k escape sequences to represent the 311a5f0fb15SPaul Saab "special" keys (arrows, PAGE-UP/PAGE-DOWN, HOME, END, INSERT, DELETE). 312a5f0fb15SPaul Saab 313a5f0fb15SPaul Saab* New command :d removes the current file from the list of files. 314a5f0fb15SPaul Saab 315a5f0fb15SPaul Saab* New option -~ (like -w before version 335) 316a5f0fb15SPaul Saab suppresses tildes after end-of-file. 317a5f0fb15SPaul Saab 318a5f0fb15SPaul Saab* Less is now released under the GNU General Public License. 319a5f0fb15SPaul Saab 320a5f0fb15SPaul Saab====================================================================== 321a5f0fb15SPaul Saab 322a5f0fb15SPaul Saab 323a5f0fb15SPaul Saab Major changes between "less" versions 335 and 337 324a5f0fb15SPaul Saab 325a5f0fb15SPaul Saab* Fixed bugs in "make install". 326a5f0fb15SPaul Saab 327a5f0fb15SPaul Saab====================================================================== 328a5f0fb15SPaul Saab 329a5f0fb15SPaul Saab 330a5f0fb15SPaul Saab Major changes between "less" versions 332 and 335 331a5f0fb15SPaul Saab 332a5f0fb15SPaul Saab* The old -w flag (suppress tildes after end-of-file) has been removed. 333a5f0fb15SPaul Saab 334a5f0fb15SPaul Saab* New -w flag highlights the first new line after a forward-screen. 335a5f0fb15SPaul Saab 336a5f0fb15SPaul Saab* New -W flag highlights the first new line after any forward movement. 337a5f0fb15SPaul Saab 338a5f0fb15SPaul Saab* Window resize works even if LINES and/or COLUMNS environment 339a5f0fb15SPaul Saab variables are incorrect. 340a5f0fb15SPaul Saab 341a5f0fb15SPaul Saab* New percent escapes for prompt strings: 342a5f0fb15SPaul Saab %d is replaced by the page number, and 343a5f0fb15SPaul Saab %D is replaced by the number of pages in the file. 344a5f0fb15SPaul Saab 345a5f0fb15SPaul Saab* Added charsets "iso8859" and "ebcdic". 346a5f0fb15SPaul Saab 347a5f0fb15SPaul Saab* In Windows version, uses HOMEDRIVE and HOMEPATH if HOME is not defined. 348a5f0fb15SPaul Saab 349a5f0fb15SPaul Saab* Fixed some bugs causing incorrect display on DOS/Windows. 350a5f0fb15SPaul Saab 351a5f0fb15SPaul Saab====================================================================== 352a5f0fb15SPaul Saab 353a5f0fb15SPaul Saab 354a5f0fb15SPaul Saab Major changes between "less" versions 330 and 332 355a5f0fb15SPaul Saab 356a5f0fb15SPaul Saab* Filenames from the command line are entered into the command history, 357a5f0fb15SPaul Saab so UPARROW/DOWNARROW can be used to retrieve them from the :e command. 358a5f0fb15SPaul Saab 359a5f0fb15SPaul Saab* Now works correctly on Windows when using a scrolling terminal 360a5f0fb15SPaul Saab window (buffer larger than display window). 361a5f0fb15SPaul Saab 362a5f0fb15SPaul Saab* On Windows, now restores the console screen on exit. 363a5f0fb15SPaul Saab Use -X to get the old behavior. 364a5f0fb15SPaul Saab 365a5f0fb15SPaul Saab* Fixed bug on Windows when CAPS-LOCK or NUM-LOCK is pressed. 366a5f0fb15SPaul Saab 367a5f0fb15SPaul Saab* Fixed bug on Windows when piping output of an interactive program. 368a5f0fb15SPaul Saab 369a5f0fb15SPaul Saab* Fixed bug in tags file processing when tags file has DOS-style 370a5f0fb15SPaul Saab line terminators (CR/LF). 371a5f0fb15SPaul Saab 372a5f0fb15SPaul Saab* Fixed compilation problem on OS/2. 373a5f0fb15SPaul Saab 374a5f0fb15SPaul Saab====================================================================== 375a5f0fb15SPaul Saab 376a5f0fb15SPaul Saab 377a5f0fb15SPaul Saab Major changes between "less" versions 321 and 330 378a5f0fb15SPaul Saab 379a5f0fb15SPaul Saab* Now supports filenames containing spaces (in double quotes). 380a5f0fb15SPaul Saab New option -" can be used to change the quoting characters. 381a5f0fb15SPaul Saab 382a5f0fb15SPaul Saab* In filename completion, a slash is appended to a directory name. 383a5f0fb15SPaul Saab If the environment variable LESSSEPARATOR is set, the value of 384a5f0fb15SPaul Saab that variable, rather than a slash, is appended. 385a5f0fb15SPaul Saab 386a5f0fb15SPaul Saab* LeftArrow and RightArrow are same as ESC-[ and ESC-]. 387a5f0fb15SPaul Saab 388a5f0fb15SPaul Saab* Added commands ESC-( and ESC-), same as ESC-[ and ESC-]. 389a5f0fb15SPaul Saab 390a5f0fb15SPaul Saab* A "quit" command defined in a lesskey file may now have an "extra" 391a5f0fb15SPaul Saab string, which is used to return an exit code from less when it quits. 392a5f0fb15SPaul Saab 393a5f0fb15SPaul Saab* New environment variables LESSMETACHARS and LESSMETAESCAPE provide 394a5f0fb15SPaul Saab more control over how less interfaces to the shell. 395a5f0fb15SPaul Saab 396a5f0fb15SPaul Saab* Ported to Microsoft Visual C compiler for Windows. 397a5f0fb15SPaul Saab 398a5f0fb15SPaul Saab* Ported to DJGPP compiler for MS-DOS. 399a5f0fb15SPaul Saab 400a5f0fb15SPaul Saab* Bug fixes. 401a5f0fb15SPaul Saab 402a5f0fb15SPaul Saab====================================================================== 403a5f0fb15SPaul Saab 404a5f0fb15SPaul Saab 405a5f0fb15SPaul Saab Major changes between "less" versions 291 and 321 406a5f0fb15SPaul Saab 407a5f0fb15SPaul Saab* Command line at bottom of screen now scrolls, so it can be longer 408a5f0fb15SPaul Saab than the screen width. 409a5f0fb15SPaul Saab 410a5f0fb15SPaul Saab* New commands ESC-] and ESC-[ scroll the display horizontally. 411a5f0fb15SPaul Saab 412a5f0fb15SPaul Saab* New command ESC-SPACE scrolls forward a full screen, even if it 413a5f0fb15SPaul Saab hits end-of-file. 414a5f0fb15SPaul Saab 415a5f0fb15SPaul Saab* Alternate modifiers for search commands: ^N is same as !, 416a5f0fb15SPaul Saab ^F is same as @, and ^E is same as *. 417a5f0fb15SPaul Saab 418a5f0fb15SPaul Saab* New modifier for search commands: ^K means highlight the matches 419a5f0fb15SPaul Saab currently on-screen, but don't move to the first match. 420a5f0fb15SPaul Saab 421a5f0fb15SPaul Saab* New modifier for search commands: ^R means don't use regular 422a5f0fb15SPaul Saab expressions in the search. 423a5f0fb15SPaul Saab 424a5f0fb15SPaul Saab* Environment variable LESSKEY gives name of default lesskey file. 425a5f0fb15SPaul Saab 426a5f0fb15SPaul Saab* Environment variable LESSSECURE will force less to run in 427a5f0fb15SPaul Saab "secure" mode. 428a5f0fb15SPaul Saab 429a5f0fb15SPaul Saab* Command line argument "--" signals that the rest of the arguments 430a5f0fb15SPaul Saab are files (not option flags). 431a5f0fb15SPaul Saab 432a5f0fb15SPaul Saab* Help file (less.hlp) is no longer installed. Help text is now 433a5f0fb15SPaul Saab embedded in the less executable itself. 434a5f0fb15SPaul Saab 435a5f0fb15SPaul Saab* Added -Ph to change the prompt for the help text. 436a5f0fb15SPaul Saab Added -Ps to change the default short prompt (same as plain -P). 437a5f0fb15SPaul Saab 438a5f0fb15SPaul Saab* Ported to the Borland C compiler for MS-DOS. 439a5f0fb15SPaul Saab 440a5f0fb15SPaul Saab* Ported to Windows 95 & Windows NT. 441a5f0fb15SPaul Saab 442a5f0fb15SPaul Saab* Ported to OS-9. 443a5f0fb15SPaul Saab 444a5f0fb15SPaul Saab* Ported to GNU Hurd. 445a5f0fb15SPaul Saab 446a5f0fb15SPaul Saab====================================================================== 447a5f0fb15SPaul Saab 448a5f0fb15SPaul Saab 449a5f0fb15SPaul Saab Major changes between "less" versions 290 and 291 450a5f0fb15SPaul Saab 451a5f0fb15SPaul Saab* Less environment variables can be specified in lesskey files. 452a5f0fb15SPaul Saab 453a5f0fb15SPaul Saab* Fixed MS-DOS build. 454a5f0fb15SPaul Saab 455a5f0fb15SPaul Saab====================================================================== 456a5f0fb15SPaul Saab 457a5f0fb15SPaul Saab 458a5f0fb15SPaul Saab Major changes between "less" versions 278 and 290 459a5f0fb15SPaul Saab 460a5f0fb15SPaul Saab* Accepts GNU-style options "--help" and "--version". 461a5f0fb15SPaul Saab 462a5f0fb15SPaul Saab* OS/2 version looks for less.ini in $HOME before $INIT and $PATH. 463a5f0fb15SPaul Saab 464a5f0fb15SPaul Saab* Bug fixes 465a5f0fb15SPaul Saab 466a5f0fb15SPaul Saab====================================================================== 467a5f0fb15SPaul Saab 468a5f0fb15SPaul Saab 469a5f0fb15SPaul Saab Major changes between "less" versions 252 and 278 470a5f0fb15SPaul Saab 471a5f0fb15SPaul Saab* A LESSOPEN preprocessor may now pipe the converted file data to less, 472a5f0fb15SPaul Saab rather than writing it to a temporary file. 473a5f0fb15SPaul Saab 474a5f0fb15SPaul Saab* Search pattern highlighting has been fixed. It now highlights 475a5f0fb15SPaul Saab reliably, even if a string is split across two screen lines, 476a5f0fb15SPaul Saab contains TABs, etc. 477a5f0fb15SPaul Saab 478a5f0fb15SPaul Saab* The -F flag (which suppress search highlighting) has been changed 479a5f0fb15SPaul Saab to -G. A new flag, -g, changes search highlighting to highlight 480a5f0fb15SPaul Saab only the string found by the last search command, instead of all 481a5f0fb15SPaul Saab strings which match the last search command. 482a5f0fb15SPaul Saab 483a5f0fb15SPaul Saab* New flag -I acts like -i, but ignores case even if the search 484a5f0fb15SPaul Saab pattern contains uppercase letters. 485a5f0fb15SPaul Saab 486a5f0fb15SPaul Saab* Less now checks for the environment variable VISUAL before EDITOR. 487a5f0fb15SPaul Saab 488a5f0fb15SPaul Saab* Ported to OS/2. 489a5f0fb15SPaul Saab 490a5f0fb15SPaul Saab====================================================================== 491a5f0fb15SPaul Saab 492a5f0fb15SPaul Saab 493a5f0fb15SPaul Saab Major changes between "less" versions 237 and 252 494a5f0fb15SPaul Saab 495a5f0fb15SPaul Saab* Changes in line-editing keys: 496a5f0fb15SPaul Saab The literal key is now ^V or ^A rather than \ (backslash). 497a5f0fb15SPaul Saab Filename completion commands (TAB and ^L) are disabled 498a5f0fb15SPaul Saab when typing a search pattern. 499a5f0fb15SPaul Saab 500a5f0fb15SPaul Saab* Line-editing command keys can be redefined using lesskey. 501a5f0fb15SPaul Saab 502a5f0fb15SPaul Saab* Lesskey with no input file defaults to $HOME/.lesskey 503a5f0fb15SPaul Saab rather than standard input. 504a5f0fb15SPaul Saab 505a5f0fb15SPaul Saab* New option -V displays version number of less. 506a5f0fb15SPaul Saab 507a5f0fb15SPaul Saab* New option -V displays version number of lesskey. 508a5f0fb15SPaul Saab 509a5f0fb15SPaul Saab* Help file less.hlp is now installed by default in /usr/local/share 510a5f0fb15SPaul Saab rather than /usr/local/lib. 511a5f0fb15SPaul Saab 512a5f0fb15SPaul Saab 513a5f0fb15SPaul Saab====================================================================== 514a5f0fb15SPaul Saab 515a5f0fb15SPaul Saab 516a5f0fb15SPaul Saab Major changes between "less" versions 170 and 237 517a5f0fb15SPaul Saab 518a5f0fb15SPaul Saab* By popular demand, text which matches the current search pattern 519a5f0fb15SPaul Saab is highlighted. New -F flag disables this feature. 520a5f0fb15SPaul Saab 521a5f0fb15SPaul Saab* Henry Spencer's regexp.c is now included, for systems which do not 522a5f0fb15SPaul Saab have a regular expression library. 523a5f0fb15SPaul Saab regexp.c is Copyright (c) 1986 by University of Toronto. 524a5f0fb15SPaul Saab 525a5f0fb15SPaul Saab* New line-editing keys, including command history (arrow keys) and 526a5f0fb15SPaul Saab filename completion (TAB). 527a5f0fb15SPaul Saab 528a5f0fb15SPaul Saab* Input preprocessor allows modification of input files (e.g. uncompress) 529a5f0fb15SPaul Saab via LESSOPEN/LESSCLOSE environment variables. 530a5f0fb15SPaul Saab 531a5f0fb15SPaul Saab* New -X flag disables sending termcap "ti" and "te" (initialize and 532a5f0fb15SPaul Saab deinitialize) strings to the terminal. 533a5f0fb15SPaul Saab 534a5f0fb15SPaul Saab* Changing -i from within less now correctly affects a subsequent 535a5f0fb15SPaul Saab repeated search. 536a5f0fb15SPaul Saab 537a5f0fb15SPaul Saab* Searching for underlined or overstruck text now works when the -u 538a5f0fb15SPaul Saab flag is in effect, rather than the -i flag. 539a5f0fb15SPaul Saab 540a5f0fb15SPaul Saab* Use setlocale (LANG and LC_CTYPE environment variables) to determine 541a5f0fb15SPaul Saab the character set if LESSCHARSET/LESSCHARDEF are not set. 542a5f0fb15SPaul Saab 543a5f0fb15SPaul Saab* The default format for displaying binary characters is now standout 544a5f0fb15SPaul Saab (reverse video) rather than blinking. This can still be changed by 545a5f0fb15SPaul Saab setting the LESSBINFMT environment variable. 546a5f0fb15SPaul Saab 547a5f0fb15SPaul Saab* Use autoconf installation technology. 548a5f0fb15SPaul Saab 549a5f0fb15SPaul Saab* Ported to MS-DOS. 550a5f0fb15SPaul Saab 551a5f0fb15SPaul Saab ******************************** 552a5f0fb15SPaul Saab Things that may surprise you 553a5f0fb15SPaul Saab ******************************** 554a5f0fb15SPaul Saab 555a5f0fb15SPaul Saab* When you enter text at the bottom of the screen (search string, 556a5f0fb15SPaul Saab filename, etc.), some keys act different than previously. 557a5f0fb15SPaul Saab Specifically, \ (backslash), ESC, TAB, BACKTAB, and control-L 558a5f0fb15SPaul Saab now have line editing functions. 559a5f0fb15SPaul Saab 560a5f0fb15SPaul Saab* Some previous unofficial versions of less were able to display 561a5f0fb15SPaul Saab compressed files. The new LESSOPEN/LESSCLOSE feature now provides 562a5f0fb15SPaul Saab this functionality in a different way. 563a5f0fb15SPaul Saab 564a5f0fb15SPaul Saab* Some previous unofficial versions of less provided a -Z flag to 565a5f0fb15SPaul Saab set the number of lines of text to retain between full screen scrolls. 566a5f0fb15SPaul Saab The -z-n flag (that is, -z with a negative number) provides this 567a5f0fb15SPaul Saab functionality. 568a5f0fb15SPaul Saab 569a5f0fb15SPaul Saab 570a5f0fb15SPaul Saab====================================================================== 571a5f0fb15SPaul Saab 572a5f0fb15SPaul Saab 573a5f0fb15SPaul Saab Major changes between "less" versions 123 and 170 574a5f0fb15SPaul Saab 575a5f0fb15SPaul Saab* New option -j allows target lines to be positioned anywhere on screen. 576a5f0fb15SPaul Saab 577a5f0fb15SPaul Saab* New option -S truncates displayed line at the screen width, 578a5f0fb15SPaul Saab rather than wrapping onto the next line. 579a5f0fb15SPaul Saab 580a5f0fb15SPaul Saab* New option -y limits amount of forward scroll. 581a5f0fb15SPaul Saab 582a5f0fb15SPaul Saab* New option -T specifies a "tags" file. 583a5f0fb15SPaul Saab 584a5f0fb15SPaul Saab* Non-printable, non-control characters are displayed in octal. 585a5f0fb15SPaul Saab Such characters, as well as control characters, are displayed 586a5f0fb15SPaul Saab in blinking mode. 587a5f0fb15SPaul Saab 588a5f0fb15SPaul Saab* New command -+ sets an option to its default. 589a5f0fb15SPaul Saab* New command -- sets an option to the opposite of its default. 590a5f0fb15SPaul Saab 591a5f0fb15SPaul Saab* Lesskey file may have a string appended to a key's action, 592a5f0fb15SPaul Saab which acts as though typed in after the command. 593a5f0fb15SPaul Saab 594a5f0fb15SPaul Saab* New commands ESC-^F and ESC-^B match arbitrary types of brackets. 595a5f0fb15SPaul Saab 596a5f0fb15SPaul Saab* New command F monitors a growing file (like "tail -f"). 597a5f0fb15SPaul Saab 598a5f0fb15SPaul Saab* New command | pipes a section of the input file into a shell command. 599a5f0fb15SPaul Saab 600a5f0fb15SPaul Saab* New command :x directly jumps to a file in the command line list. 601a5f0fb15SPaul Saab 602a5f0fb15SPaul Saab* Search commands have been enhanced and reorganized: 603a5f0fb15SPaul Saab n Repeat search, same direction. 604a5f0fb15SPaul Saab N Repeat search, opposite direction. 605a5f0fb15SPaul Saab ESC-/ Search forward thru file boundaries 606a5f0fb15SPaul Saab ESC-? Search backward thru file boundaries 607a5f0fb15SPaul Saab ESC-n Repeat search thru file boundaries, same direction. 608a5f0fb15SPaul Saab ESC-N Repeat search thru file boundaries, opposite direction. 609a5f0fb15SPaul Saab Special character * causes search to search thru file boundaries. 610a5f0fb15SPaul Saab Special character @ causes search to begin at start/end of file list. 611a5f0fb15SPaul Saab 612a5f0fb15SPaul Saab* Examining a new file adds it to the command line list. 613a5f0fb15SPaul Saab A list of files, or an expression which matches more than one file, 614a5f0fb15SPaul Saab may be examined; all of them are added to the command line list. 615a5f0fb15SPaul Saab 616a5f0fb15SPaul Saab* Environment variables LESSCHARSET and LESSCHARDEF can define 617a5f0fb15SPaul Saab a non-ASCII character set. 618a5f0fb15SPaul Saab 619a5f0fb15SPaul Saab* Partial support for MSDOS, including options -R for repainting screen 620a5f0fb15SPaul Saab on quit, -v/-V to select video mode, and -W to change window size. 621a5f0fb15SPaul Saab 622a5f0fb15SPaul Saab 623a5f0fb15SPaul Saab====================================================================== 624a5f0fb15SPaul Saab 625a5f0fb15SPaul Saab 626a5f0fb15SPaul Saab Major changes between "less" versions 97 and 123 627a5f0fb15SPaul Saab 628a5f0fb15SPaul Saab* New option (-N) causes line numbers to be displayed in the 629a5f0fb15SPaul Saab text of the file (like vi "set nu"). 630a5f0fb15SPaul Saab 631a5f0fb15SPaul Saab* New option (-?) prints help message immediately. 632a5f0fb15SPaul Saab 633a5f0fb15SPaul Saab* New option (-r) displays "raw" control characters, without 634a5f0fb15SPaul Saab mapping them to ^X notation. 635a5f0fb15SPaul Saab 636a5f0fb15SPaul Saab* New option (-f) forces less to open non-regular files 637a5f0fb15SPaul Saab (directories, etc). 638a5f0fb15SPaul Saab 639a5f0fb15SPaul Saab* New option (-k) can be used to specify lesskey files by name. 640a5f0fb15SPaul Saab 641a5f0fb15SPaul Saab* New option (-y) can be used to set a forward scroll limit 642a5f0fb15SPaul Saab (like -h sets a backward scroll limit). 643a5f0fb15SPaul Saab 644a5f0fb15SPaul Saab* File marks (set by the m command) are now preserved when a new 645a5f0fb15SPaul Saab file is edited. The ' command can thus be used to switch files. 646a5f0fb15SPaul Saab 647a5f0fb15SPaul Saab* New command ESC-/ searches all files (on the command line) 648a5f0fb15SPaul Saab for a pattern. 649a5f0fb15SPaul Saab 650a5f0fb15SPaul Saab* New command ESC-n repeats previous search, spanning files. 651a5f0fb15SPaul Saab 652a5f0fb15SPaul Saab* The N command has been changed to repeat the previous search 653a5f0fb15SPaul Saab in the reverse direction. The old N command is still available 654a5f0fb15SPaul Saab via :n. 655a5f0fb15SPaul Saab 656a5f0fb15SPaul Saab* New command ESC-N repeats previous search in the reverse 657a5f0fb15SPaul Saab direction and spanning files. 658a5f0fb15SPaul Saab 659a5f0fb15SPaul Saab* 8 bit characters are now supported. A new option (-g) can be 660a5f0fb15SPaul Saab used to strip off the eighth bit (the previous behavior). 661a5f0fb15SPaul Saab 662a5f0fb15SPaul Saab* Options which take a following string (like -t) may now 663a5f0fb15SPaul Saab optionally have a space between the option letter and the string. 664a5f0fb15SPaul Saab 665a5f0fb15SPaul Saab* Six new commands { } ( ) [ and ] can be used to match 666a5f0fb15SPaul Saab brackets of specific types, similar to vi % command. 667a5f0fb15SPaul Saab 668a5f0fb15SPaul Saab* New commands z and w move forward/backward one window and 669a5f0fb15SPaul Saab simultaneously set the window size. 670a5f0fb15SPaul Saab 671a5f0fb15SPaul Saab* Prompt string expansion now has %L for line number of the last 672a5f0fb15SPaul Saab line in the file, and %E for the name of the editor. 673a5f0fb15SPaul Saab Also, % escapes which refer to a line (b=bottom, t=top, etc.) 674a5f0fb15SPaul Saab can use j for the jump target line. 675a5f0fb15SPaul Saab 676a5f0fb15SPaul Saab* New environment variable LESSEDIT can be used to tailor the 677a5f0fb15SPaul Saab command string passed to the editor by the v command. 678a5f0fb15SPaul Saab 679a5f0fb15SPaul Saab* Examining a file which was previously examined will return 680a5f0fb15SPaul Saab to the same position in the file. 681a5f0fb15SPaul Saab 682a5f0fb15SPaul Saab* A "%" is expanded to the current filename and a "#" to the 683a5f0fb15SPaul Saab previous filename, in both shell commands and the E command. 684a5f0fb15SPaul Saab (Previously % worked only in shell commands and # worked 685a5f0fb15SPaul Saab only in the E command.) 686a5f0fb15SPaul Saab 687a5f0fb15SPaul Saab* New command ":ta" is equivalent to "-t". 688a5f0fb15SPaul Saab 689a5f0fb15SPaul Saab* New command "s" is equivalent to "-l". 690a5f0fb15SPaul Saab 691a5f0fb15SPaul Saab* The - command may be followed by "+X" to revert to the default 692a5f0fb15SPaul Saab for option X, or "-X" to get the opposite of the default. 693a5f0fb15SPaul Saab 694a5f0fb15SPaul Saab* Lesskey files may now include characters after the action as 695a5f0fb15SPaul Saab extra input to be parsed after the action; for example: 696a5f0fb15SPaul Saab "toggle-option X" to toggle a specific option X. 6977f074f9cSXin LI 6987f074f9cSXin LI 6997f074f9cSXin LI 700f78327b5SXin LI 701