160786Sps 260786Sps NEWS about less 360786Sps 460786Sps====================================================================== 560786Sps 660786Sps For the latest news about less, see the "less" Web page: 7369759Sgit2svn https://greenwoodsoftware.com/less 860786Sps You can also download the latest version of less from there. 960786Sps 10369759Sgit2svn Report bugs, suggestions or comments at 11369759Sgit2svn https://github.com/gwsw/less/issues. 1260786Sps 1360786Sps====================================================================== 1460786Sps 15369759Sgit2svn Major changes between "less" versions 563 and 581.2 16369759Sgit2svn 17369759Sgit2svn* Change ESC-u command to toggle, not disable, highlighting per man page. 18369759Sgit2svn 19369759Sgit2svn* Add ESC-U command. 20369759Sgit2svn 21369759Sgit2svn* Add ctrl-W search modifier for wrapping search. 22369759Sgit2svn 23369759Sgit2svn* F command can be interrupted by ^X. 24369759Sgit2svn 25369759Sgit2svn* Support OSC 8 hyperlinks when -R is in effect. 26369759Sgit2svn 27369759Sgit2svn* g command with no number will ignore -j and put first line at top of screen. 28369759Sgit2svn 29369759Sgit2svn* Multiple + or -p command line options are handled better. 30369759Sgit2svn 31369759Sgit2svn* Add the --incsearch option. 32369759Sgit2svn 33369759Sgit2svn* Add the --line-num-width option. 34369759Sgit2svn 35369759Sgit2svn* Add the --status-col-width option. 36369759Sgit2svn 37369759Sgit2svn* Add the --use-color and --color options. 38369759Sgit2svn 39369759Sgit2svn* Display -w highlight even if highlighted line is empty. 40369759Sgit2svn 41369759Sgit2svn* If search result is in a long line, scroll to ensure it is visible. 42369759Sgit2svn 43369759Sgit2svn* Editing the same file under different names now creates only 44369759Sgit2svn one entry in the file list. 45369759Sgit2svn 46369759Sgit2svn* Make visual bell more visible on some terminals. 47369759Sgit2svn 48369759Sgit2svn* Ring end-of-file bell no more than once per second. 49369759Sgit2svn 50369759Sgit2svn* Build can use either Python or Perl for Makefile.aut operations. 51369759Sgit2svn 52369759Sgit2svn* Fix crash when using the @ search modifier. 53369759Sgit2svn 54369759Sgit2svn* Fix crash in the 's' command due to duplicate free. 55369759Sgit2svn 56369759Sgit2svn* Fix realpath crash on Darwin. 57369759Sgit2svn 58369759Sgit2svn====================================================================== 59369759Sgit2svn 60367516Sdelphij Major changes between "less" versions 551 and 563 61367516Sdelphij 62367516Sdelphij* Update Unicode tables. 63367516Sdelphij 64367516Sdelphij* Treat Hangul Jamo medial vowels and final consonants as zero width. 65367516Sdelphij 66367516Sdelphij* Display error message immediately when -o is toggled and 67367516Sdelphij input is not a pipe. 68367516Sdelphij 69367516Sdelphij* Fix regression: make screen repaint when "squished" and 70367516Sdelphij a no-movement command is given. 71367516Sdelphij 72367516Sdelphij* Fix erroneous EOF calculation when F command is interrupted. 73367516Sdelphij 74367516Sdelphij* Make WIN32C version include this fix from 551: 75367516Sdelphij Don't count lines in initial screen if using -X with -F. 76367516Sdelphij 77367516Sdelphij* Fix display bug in WIN32C version. 78367516Sdelphij 79367516Sdelphij* Fix memory corruption when built with libtermcap. 80367516Sdelphij 81367516Sdelphij* Support libtinfow. 82367516Sdelphij 83367516Sdelphij====================================================================== 84367516Sdelphij 85355504Sdelphij Major changes between "less" versions 530 and 551 86355504Sdelphij 87355504Sdelphij* Add --mouse option. 88355504Sdelphij 89355504Sdelphij* Add --wheel-lines option. 90355504Sdelphij 91355504Sdelphij* Add --no-histdups option. 92355504Sdelphij 93355504Sdelphij* Add --save-marks option. 94355504Sdelphij 95355504Sdelphij* Support PCRE2 regular expression library. 96355504Sdelphij 97355504Sdelphij* Redraw screen on SIGWINCH even if screen size doesn't change. 98355504Sdelphij 99355504Sdelphij* Shell-escape filenames in history so they can be used again. 100355504Sdelphij 101355504Sdelphij* Ring bell if user enters invalid long option name. 102355504Sdelphij 103355504Sdelphij* Use PCRE_UTF8 flag for pcre regular expressions when in UTF-8 mode. 104355504Sdelphij 105355504Sdelphij* Windows: use wide-char string to set console title. 106355504Sdelphij 107355504Sdelphij* Don't count lines in initial screen if using -X with -F. 108355504Sdelphij 109355504Sdelphij* Support mingw build system. 110355504Sdelphij 111355504Sdelphij* Fix bug in v command on empty file. 112355504Sdelphij 113355504Sdelphij* Fix bug in v command when filename contains shell metacharacters. 114355504Sdelphij 115355504Sdelphij====================================================================== 116355504Sdelphij 117330570Sdelphij Major changes between "less" versions 487 and 530 118330570Sdelphij 119330570Sdelphij* Don't output terminal init sequence if using -F and file fits on one screen. 120330570Sdelphij 121330570Sdelphij* When using -S, mark truncated lines with a special character. 122330570Sdelphij The character can be changed or disabled via the new --rscroll option. 123330570Sdelphij 124330570Sdelphij* New command M marks the last line displayed on the screen. 125330570Sdelphij 126330570Sdelphij* New command ESC-m removes a line mark. 127330570Sdelphij 128330570Sdelphij* Status column (enabled via -J) now shows mark letters. 129330570Sdelphij 130330570Sdelphij* Status column shows search matches even if highlighting is disabled via -G. 131330570Sdelphij 132330570Sdelphij* A second ESC-u command will clear search match markers in the status column. 133330570Sdelphij 134330570Sdelphij* Do same ANSI escape code filtering for tag matching that we do for 135330570Sdelphij searching, to help when viewing syntax-highlighted code. 136330570Sdelphij 137330570Sdelphij* Catch SIGTERM and clean up before exiting. 138330570Sdelphij 139330570Sdelphij* Fix bug initializing default charset on Windows. 140330570Sdelphij 141330570Sdelphij* Handle keypad ENTER key correctly if it sends something other than newline. 142330570Sdelphij 143330570Sdelphij* Fix buffering bug when using stdin with a LESSOPEN pipe. 144330570Sdelphij 145330570Sdelphij* On Windows, allow 'u' in -D option to enable underlining. 146330570Sdelphij 147330570Sdelphij* On Windows, use underline in sgr mode. 148330570Sdelphij 149330570Sdelphij* On Windows, convert UTF-8 to multibyte if console is not UTF-8. 150330570Sdelphij 151330570Sdelphij* Update Unicode tables to 2017-03-08. 152330570Sdelphij 153330570Sdelphij* Pass-thru Unicode formating chars (Cf type) instead of treating them 154330570Sdelphij as binary chars. But treat them as binary if -U is set. 155330570Sdelphij 156330570Sdelphij* Fix erroneous binary file warning when UTF-8 file contains ANSI SGR sequences. 157330570Sdelphij 158330570Sdelphij* Fix bugs when using LESSOPEN and switching between stdin and other files. 159330570Sdelphij 160330570Sdelphij* Fix some bugs handling filenames containing shell metacharacters. 161330570Sdelphij 162330570Sdelphij* Fix some memory leaks. 163330570Sdelphij 164330570Sdelphij* Allow some debugging environment variables to be set in lesskey file. 165330570Sdelphij 166330570Sdelphij* Code improvements: 167330570Sdelphij . Use ANSI prototypes in funcs.h declarations. 168330570Sdelphij . Fix some const mismatches. 169330570Sdelphij . Remove archaic "register" in variable declarations. 170330570Sdelphij 171330570Sdelphij====================================================================== 172330570Sdelphij 173330570Sdelphij Major changes between "less" versions 481 and 487 174330570Sdelphij 175330570Sdelphij* New commands ESC-{ and ESC-} to shift to start/end of displayed lines. 176330570Sdelphij 177330570Sdelphij* Make search highlights work correctly when changing caselessness with -i. 178330570Sdelphij 179330570Sdelphij* New option -Da in Windows version to enable SGR mode. 180330570Sdelphij 181330570Sdelphij* Fix "nothing to search" error when top or bottom line on screen is empty. 182330570Sdelphij 183330570Sdelphij* Fix bug when terminal has no "cm" termcap entry. 184330570Sdelphij 185330570Sdelphij* Fix incorrect display when entering double-width chars in search string. 186330570Sdelphij 187330570Sdelphij* Fix bug in Unicode handling that missed some double width characters. 188330570Sdelphij 189330570Sdelphij* Update Unicode database to 9.0.0. 190330570Sdelphij 191330570Sdelphij====================================================================== 192330570Sdelphij 193293190Sdelphij Major changes between "less" versions 458 and 481 194293190Sdelphij 195293190Sdelphij* Don't overwrite history file; just append to it. 196293190Sdelphij 197293190Sdelphij* New command ESC-G goes to end of currently buffered data in a pipe. 198293190Sdelphij 199293190Sdelphij* Disable history feature when compiled with LESSHISTFILE set to "-". 200293190Sdelphij 201293190Sdelphij* In more-compatible mode, make the -p option apply to every file opened, 202293190Sdelphij not just the first one. 203293190Sdelphij 204293190Sdelphij* In more-compatible mode, change the -e option to work like -E, not -EF. 205293190Sdelphij 206293190Sdelphij* Treat multiple CRs before LF are like one CR (all the CRs are hidden). 207293190Sdelphij 208293190Sdelphij* Allow "extra" string in lesskey file to append to a multi-char command 209293190Sdelphij (like a search pattern), without executing the command. 210293190Sdelphij 211293190Sdelphij* Ignore -u/-U setting while viewing help file, so that 212293190Sdelphij underline and bold chars are displayed correctly. 213293190Sdelphij 214293190Sdelphij* Improve detection of "binary" files in UTF-8 mode. 215293190Sdelphij 216293190Sdelphij* Fix bug with ++ commands. 217293190Sdelphij 218293190Sdelphij* Fix bug where prompt was sometimes not displayed with +G. 219293190Sdelphij 220293190Sdelphij* Fix possible memory corruption 221293190Sdelphij 222293190Sdelphij* Fix bugs and improve performance in ampersand filtering. 223293190Sdelphij 224293190Sdelphij* Automate construction of Unicode tables from Unicode database. 225293190Sdelphij 226293190Sdelphij* Allow %% escape sequence in LESSOPEN variable. 227293190Sdelphij 228293190Sdelphij====================================================================== 229293190Sdelphij 230250592Sdelphij Major changes between "less" versions 451 and 458 231242584Sdelphij 232250592Sdelphij* Allow backslash escaping of metacharacters in LESS environment variable 233250592Sdelphij after the --use-backslash option. 234242584Sdelphij 235242584Sdelphij* Don't quit if syntax errors are found in command line options. 236242584Sdelphij 237242584Sdelphij* Increase sizes of some internal buffers. 238242584Sdelphij 239242584Sdelphij* Fix configure bug with --with-regex=none. 240242584Sdelphij 241242584Sdelphij* Fix crash with "stty rows 0". 242242584Sdelphij 243242584Sdelphij* Fix Win32 attribute display bug. 244242584Sdelphij 245250592Sdelphij* Fix display bug when using up/down arrow on the command line. 246250592Sdelphij 247242584Sdelphij====================================================================== 248242584Sdelphij 249238730Sdelphij Major changes between "less" versions 444 and 451 250237613Sdelphij 251237613Sdelphij* Add ESC-F command to keep reading data until a pattern is found. 252237613Sdelphij 253237613Sdelphij* Use exit code of LESSOPEN script if LESSOPEN starts with "||". 254237613Sdelphij 255237613Sdelphij* When up/down arrow is used on the command line immediately after 256237613Sdelphij typing text, the next command starting with that text is found. 257237613Sdelphij 258237613Sdelphij* Add support for GNU regex. 259237613Sdelphij 260237613Sdelphij* Add configure option --with-regex=none and fix compile errors 261237613Sdelphij when compiling with no regex library. 262237613Sdelphij 263237613Sdelphij* Fix bugs handling SGR sequences in Win32. 264237613Sdelphij 265237613Sdelphij* Fix possible crashes caused by malformed LESSOPEN or 266237613Sdelphij LESSCLOSE variables. 267237613Sdelphij 268237613Sdelphij* Fix bug highlighting text which is discontiguous in the file 269237613Sdelphij due to backspace processing. 270237613Sdelphij 271237613Sdelphij* Fix bug in displaying status column when scrolling backwards 272237613Sdelphij with -J and -S in effect. 273237613Sdelphij 274237613Sdelphij====================================================================== 275237613Sdelphij 276222906Sdelphij Major changes between "less" versions 443 and 444 277222906Sdelphij 278222906Sdelphij* Fix bug in unget handling that can cause strange effects on the 279222906Sdelphij command line. 280222906Sdelphij 281222906Sdelphij* Remove vestiges of obsolete -l option that can cause a crash. 282222906Sdelphij 283222906Sdelphij====================================================================== 284222906Sdelphij 285221715Sdelphij Major changes between "less" versions 436 and 443 286221715Sdelphij 287221715Sdelphij* Change search behavior such that when a search is given an explicit 288221715Sdelphij pattern, the entire displayed screen is included in the search and 289221715Sdelphij not just the portion after the target line. 290221715Sdelphij 291221715Sdelphij* Add -A option to change search behavior to the old way: only 292221715Sdelphij the portion of the screen after the target line is searched. 293221715Sdelphij 294221715Sdelphij* Add %F formatting to prompt strings, replaced by the last component 295221715Sdelphij of the input file. 296221715Sdelphij 297221715Sdelphij* Control-G while editing a command exits the command. 298221715Sdelphij 299221715Sdelphij* Less now exits with status 2 if control-C is pressed and -K is in effect. 300221715Sdelphij 301221715Sdelphij* Fix "ungetc overflow" when passing long commands via the -p option. 302221715Sdelphij 303221715Sdelphij* Fix bug in using line filtering via the & command 304221715Sdelphij in combination with -i and -I. 305221715Sdelphij 306221715Sdelphij* Fix bug in handling negative arguments to the -j option. 307221715Sdelphij 308221715Sdelphij* Fix bug in handling %t in prompt strings. 309221715Sdelphij 310221715Sdelphij* Improve handling of long option names. 311221715Sdelphij 312221715Sdelphij* Improve percentage calculation for very large files. 313221715Sdelphij 314221715Sdelphij====================================================================== 315221715Sdelphij 316195941Sdelphij Major changes between "less" versions 429 and 436 317195941Sdelphij 318195941Sdelphij* Don't pass "-" to non-pipe LESSOPEN unless it starts with "-". 319195941Sdelphij 320195941Sdelphij* Allow a fraction as the argument to the -# (--shift) option. 321195941Sdelphij 322195941Sdelphij* Fix highlight bug when underlined/overstruck text matches at end of line. 323195941Sdelphij 324195941Sdelphij* Fix non-regex searches with ctrl-R. 325195941Sdelphij 326195941Sdelphij====================================================================== 327195941Sdelphij 328191930Sdelphij Major changes between "less" versions 424 and 429 32960786Sps 330191930Sdelphij* LESSOPEN pipe will now be used on standard input, if the LESSOPEN 331191930Sdelphij environment variable begins with "|-". 332191930Sdelphij 333191930Sdelphij* The -D option with one number now means use the normal background color. 334191930Sdelphij 335191930Sdelphij* Don't change permissions on history file if it is not a regular file. 336191930Sdelphij 337191930Sdelphij* Fix non-ANSI-compliant code that caused problems with some compilers. 338191930Sdelphij 339191930Sdelphij* Fix binary file detection in UTF-8 mode. 340191930Sdelphij 341191930Sdelphij* Fix display problems with long lines on "ignaw" terminals. 342191930Sdelphij 343191930Sdelphij* Fix problem interrupting the line number calculation for initial prompt. 344191930Sdelphij 345191930Sdelphij* Fix SGR emulation when dealing with multiple attributes (eg. bold+underline). 346191930Sdelphij 347191930Sdelphij* Fix highlight bug when searching for underlined/overstruck text. 348191930Sdelphij 349191930Sdelphij====================================================================== 350191930Sdelphij 351191930Sdelphij Major changes between "less" versions 418 and 424 352191930Sdelphij 353191930Sdelphij* New "&" command allows filtering of lines based on a pattern. 354191930Sdelphij 355191930Sdelphij* Status column now displays a search match, even if the matched 356191930Sdelphij string is scrolled off screen because -S is in effect. 357191930Sdelphij 358191930Sdelphij* Improve behavior of -F option. 359191930Sdelphij 360191930Sdelphij* Allow CSI character (0x9B) to work in UTF-8 mode. 361191930Sdelphij 362191930Sdelphij* Output carriage return at startup in case terminal doesn't default 363191930Sdelphij to column 1. 364191930Sdelphij 365191930Sdelphij* Fix bug in '' (quote, quote) command after G command. 366191930Sdelphij 367191930Sdelphij====================================================================== 368191930Sdelphij 369191930Sdelphij Major changes between "less" versions 416 and 418 370191930Sdelphij 371191930Sdelphij* Color escape sequences are now supported in WIN32 build. 372191930Sdelphij 373191930Sdelphij* Makefile now uses EXEEXT feature of autoconf. 374191930Sdelphij 375191930Sdelphij* Fix search bug when using -R and text contains ANSI color escape sequences. 376191930Sdelphij 377191930Sdelphij* Fix crash when using -r with UTF-8 text containing 0x9B bytes. 378191930Sdelphij 379191930Sdelphij* Fix display bug when using ' command to move less than one page forward. 380191930Sdelphij 381191930Sdelphij* Update GPL to version 3. 382191930Sdelphij 383191930Sdelphij====================================================================== 384191930Sdelphij 385173932Sdelphij Major changes between "less" versions 409 and 416 386173682Sdelphij 387173682Sdelphij* New --follow-name option makes F command follow the name of a file 388173682Sdelphij rather than the file descriptor if an open file is renamed. 389173682Sdelphij 390173682Sdelphij* Make searching with -i/-I work correctly with non-ASCII text. 391173682Sdelphij 392173682Sdelphij* Fix DJGPP build. 393173682Sdelphij 394173682Sdelphij====================================================================== 395173682Sdelphij 396172597Sdelphij Major changes between "less" versions 406 and 409 397172468Sdelphij 398172468Sdelphij* Support CSI escape sequences, like SGR escape sequences. 399172468Sdelphij 400172468Sdelphij* Fix bug which caused screen to fail to repaint when window is resized. 401172468Sdelphij 402172468Sdelphij* Fix bug in using -i and -I flags with non-ASCII text. 403172468Sdelphij 404172468Sdelphij* Fix configure bug on systems which don't support langinfo.h. 405172468Sdelphij 406172597Sdelphij* Fix crash when searching text containing certain invalid UTF-8 sequences. 407172597Sdelphij 408172468Sdelphij====================================================================== 409172468Sdelphij 410170964Sdelphij Major changes between "less" versions 394 and 406 411170256Sdelphij 412170256Sdelphij* Allow decimal point in number for % (percent) command. 413170256Sdelphij 414170256Sdelphij* Allow decimal point in number for -j option (fraction of screen height). 415170256Sdelphij 416170256Sdelphij* Make n command fetch previous pattern from history file on first search. 417170256Sdelphij 418170256Sdelphij* Don't rewrite history file if it has not changed. 419170256Sdelphij 420170256Sdelphij* Don't move to bottom of screen on first page. 421170256Sdelphij 422170256Sdelphij* Don't output extraneous newlines, so copy & pasting lines from the 423170256Sdelphij output works better. 424170256Sdelphij 425170256Sdelphij* The -c option has been made identical with the -C option. 426170256Sdelphij 427170256Sdelphij* Allow "/dev/null" as synomym for "-" in LESSHISTFILE to indicate 428170256Sdelphij that no history file should be used. 429170256Sdelphij 430170256Sdelphij* Search can now find text which follows a null byte, if the PCRE 431170256Sdelphij library is used, or if no-regex searching (ctrl-R) is used. 432170256Sdelphij 433170256Sdelphij* Better compatibility with POSIX more specification. 434170256Sdelphij 435170256Sdelphij* Make -f work for directories. 436170256Sdelphij 437170256Sdelphij* Make "t" cmd traverse tags in the correct order. 438170256Sdelphij 439170256Sdelphij* Allow a few binary characters in the input file before warning 440170256Sdelphij that the file is binary. 441170256Sdelphij 442170256Sdelphij* Don't warn that file is binary if it merely contains ANSI color sequences 443170256Sdelphij and -R is in effect. 444170256Sdelphij 445170256Sdelphij* Update Unicode character tables. 446170256Sdelphij 447170256Sdelphij* Support DESTDIR in Makefile. 448170256Sdelphij 449170256Sdelphij* Fix bug when filename contains certain shell metacharacters such as "$". 450170256Sdelphij 451170256Sdelphij* Fix bug when resizing the window while waiting for input from a pipe. 452170256Sdelphij 453170256Sdelphij* Fix configure bugs. 454170256Sdelphij 455170256Sdelphij====================================================================== 456170256Sdelphij 457161475Sdelphij Major changes between "less" versions 382 and 394 458161475Sdelphij 459161475Sdelphij* Add history file to save search and shell command history between 460161475Sdelphij invocations of less. 461161475Sdelphij 462161475Sdelphij* Improve behavior of history list for search and shell commands. 463161475Sdelphij 464161475Sdelphij* Add -K (or --quit-on-intr) option to make less exit immediately on ctrl-C. 465161475Sdelphij 466161475Sdelphij* Improve handling of UTF-8 files and commands, including better 467161475Sdelphij line wrapping and handling double-width chars. 468161475Sdelphij 469161475Sdelphij* Added LESSUTFBINFMT environment variable to control display of 470161475Sdelphij non-printable characters in a UTF-8 file. 471161475Sdelphij 472161475Sdelphij* Add --with-secure option to configure, to make it easier to 473161475Sdelphij build a secure version of less. 474161475Sdelphij 475161475Sdelphij* Show search matches in the status column even if search highlights 476161475Sdelphij are disabled via the -G option or the ESC-u command. 477161475Sdelphij 478161475Sdelphij* Improve performance when the file contains very long lines. 479161475Sdelphij 480161475Sdelphij* Add "windows" charset. 481161475Sdelphij 482161475Sdelphij* Add man page for lessecho. 483161475Sdelphij 484161475Sdelphij* Add support for erase2 character, treated same as erase. 485161475Sdelphij 486161475Sdelphij* Use ASCII lowercase/uppercase logic when operating on the command line. 487161475Sdelphij 488161475Sdelphij* Update makefile for Borland C++ 5.5.1. 489161475Sdelphij 490161475Sdelphij* Fix bug in calculating number of pages for %D prompt. 491161475Sdelphij 492161475Sdelphij* Fix bug in handling tag file error. 493161475Sdelphij 494161475Sdelphij* Fix obscure bug if input file is deleted while viewing help. 495161475Sdelphij 496161475Sdelphij* Fix bug handling filenames which include square brackets. 497161475Sdelphij 498161475Sdelphij* Fix possible buffer overflow in "global" tag search. 499161475Sdelphij 500161475Sdelphij* Fix possible buffer overflow in usage of LESSOPEN and LESSCLOSE. 501161475Sdelphij 502161475Sdelphij* Fix buffer overflow in reverse search. 503161475Sdelphij 504161475Sdelphij====================================================================== 505161475Sdelphij 506161475Sdelphij Major changes between "less" versions 381 and 382 507161475Sdelphij 508161475Sdelphij* Removed some old copyrighted code. 509161475Sdelphij This probably breaks OS/9 support. 510161475Sdelphij 511161475Sdelphij====================================================================== 512161475Sdelphij 513128345Stjr Major changes between "less" versions 378 and 381 51489019Sps 515128345Stjr* New -L option to disable LESSOPEN processing. 516128345Stjr 517128345Stjr* Further support for large (64 bit) file addressing. 518128345Stjr Large file support is now set up by the configure script. 519128345Stjr 520128345Stjr* Use autoconf 2.54. 521128345Stjr Replace configure.in, acconfig.h, defines.h.top with configure.ac. 522128345Stjr 523128345Stjr* Overstriking underscore with underscore is now bold or underlined 524128345Stjr depending on context. 525128345Stjr 526128345Stjr* Use only 7 spaces for line numbers in -N mode, if possible. 527128345Stjr 528128345Stjr* Fix some bugs in handling overstriking in UTF-8 files. 529128345Stjr 530128345Stjr* Fix some nroff issues in the man page. 531128345Stjr 532128345Stjr====================================================================== 533128345Stjr 534128345Stjr Major changes between "less" versions 376 and 378 535128345Stjr 536128345Stjr* Bug fixes: 537128345Stjr Default buffer space is now 64K as documented. 538128345Stjr Search highlighting works properly when used with -R. 539128345Stjr Windows version works properly when input file contains carriage returns. 540128345Stjr Clean up some compiler warnings. 541128345Stjr 542128345Stjr====================================================================== 543128345Stjr 544128345Stjr Major changes between "less" versions 358 and 376 545128345Stjr 54689019Sps* -x option can now specify multiple variable-width tab stops. 54789019Sps 54889019Sps* -X option no longer disables keypad initialization. 54989019Sps New option --no-keypad disables keypad initialization. 55089019Sps 55189019Sps* New commands t and T step through multiple tag matches. 55289019Sps Added support for "global(1)" tags 55389019Sps (see http://www.gnu.org/software/global/global.html). 55489019Sps 55589019Sps* New prompt style set by option -Pw defines the message printed 55689019Sps while waiting for data in the F command. 55789019Sps 55889019Sps* System-wide lesskey file now defaults to sysless in etc directory 55989019Sps instead of .sysless in bin directory. 56089019Sps Use "configure --sysconfdir=..." to change it. 56189019Sps (For backwards compatibility, .sysless in bin is still recognized.) 56289019Sps 56389019Sps* Pressing RightArrow or LeftArrow while entering a number now shifts 56489019Sps the display N columns rather than editing the number itself. 56589019Sps 56689019Sps* Status column (enabled with -J) now shows search results. 56789019Sps 56889019Sps* Windows version sets window title. 56989019Sps 57089019Sps* Default LESSCHARSET for MS-DOS versions is now "dos". 57189019Sps 572128345Stjr* Searching works better with ANSI (SGR) escape sequences. 573128345Stjr ANSI color escape sequences are now supported in the MS-DOS (DJGPP) version. 57489019Sps 575128345Stjr* Improved performance in reading very large pipes. 576128345Stjr 57789019Sps* Eliminated some dependencies on file offets being 32 bits. 57889019Sps 57989019Sps* Fixed problems when viewing files with very long lines. 58089019Sps 58189019Sps* Fixed overstriking in UTF-8 mode, and overstriking tabs. 58289019Sps 58389019Sps* Improved horizontal shifting of text using -R option with ANSI color. 58489019Sps 585128345Stjr* Improved handling of filenames containing shell metacharacters. 586128345Stjr 58789019Sps* Some fixes for EBCDIC systems. 58889019Sps 58989019Sps* Some fixes for OS/2 systems. 59089019Sps 59189019Sps====================================================================== 59289019Sps 59363128Sps Major changes between "less" versions 354 and 358 59463128Sps 59563128Sps* Add -J (--status-column) option to display a status column. 59663128Sps 59763128Sps* Add -# (--shift) option to set default horizontal shift distance. 59863128Sps Default horizontal shift distance is now one-half screen width. 59963128Sps 60063128Sps* Horizontal shifting does not shift line numbers if -N is in effect. 60163128Sps 60263128Sps* Horizontal shifting acts as though -S were set, to avoid confusion. 60363128Sps 60463128Sps====================================================================== 60563128Sps 60663128Sps 60760786Sps Major changes between "less" versions 352 and 354 60860786Sps 60960786Sps* Allow space after numeric-valued command line options. 61060786Sps 61160786Sps* Fix problem with configuring terminal libraries on some systems. 61260786Sps 61360786Sps* Add support for PCRE regular expression library. 61460786Sps 61560786Sps* Add --with-regex option to configure to allow manually selecting 61660786Sps a regular expression library. 61760786Sps 61860786Sps* Fix bug compiling with SECURE = 1. 61960786Sps 62060786Sps====================================================================== 62160786Sps 62260786Sps 62360786Sps Major changes between "less" versions 346 and 352 62460786Sps 62560786Sps* Enable UTF-8 if "UTF-8" appears in locale-related environment variables. 62660786Sps 62760786Sps* Add --with-editor option to configure script. 62860786Sps 62960786Sps* The -M prompt and = message now show the top and bottom line number. 63060786Sps 63160786Sps* Fix bug in running the editor on a file whose name contains quotes, etc. 63260786Sps 63360786Sps* Fix bug in horizontal scrolling of long lines. 63460786Sps 63560786Sps* Fix bug in doing :d on a file which contains marks. 63660786Sps 63760786Sps* Fix bug causing cleared lines to sometimes be filled with standout, 63860786Sps bold, underline, etc. on certain terminals. 63960786Sps 64060786Sps* Fixes for MS-DOS (DJGPP) version. 64160786Sps 64260786Sps====================================================================== 64360786Sps 64460786Sps 64560786Sps Major changes between "less" versions 340 and 346 64660786Sps 64760786Sps* The UTF-8 character set is now supported. 64860786Sps 64960786Sps* The default character set is now latin1 rather than ascii. 65060786Sps 65160786Sps* New option -R (--RAW-CONTROL-CHARS) is like -r but handles 65260786Sps long (wrapped) lines correctly, as long as the input contains only 65360786Sps normal text and ANSI color escape sequences. 65460786Sps 65560786Sps* New option -F (--quit-if-one-screen) quits if the text fits on 65660786Sps the first screen. 65760786Sps 65860786Sps* The -w option now highlights the target line of a g or p command. 65960786Sps 66060786Sps* A system-wide lesskey file is supported (LESSKEY_SYSTEM). 66160786Sps 66260786Sps* New escape for prompt strings: %c is replaced by column number. 66360786Sps 66460786Sps* New escape for prompt strings: %P is replaced by percentage into 66560786Sps file, based on line number rather than byte offset. 66660786Sps 66760786Sps* HOME and END keys now jump to beginning of file or end of file. 66860786Sps 66960786Sps====================================================================== 67060786Sps 67160786Sps 67260786Sps Major changes between "less" versions 337 and 340 67360786Sps 67460786Sps* Command line options for less may now be given in either the old 67560786Sps single-letter form, or a new long name form (--option-name). 67660786Sps See the less man page or "less --help" for the list of long option names. 67760786Sps 67860786Sps* Command line options for lesskey may now be given in a new long name 67960786Sps form. See the lesskey man page for the list of long option names. 68060786Sps 68160786Sps* New command -- toggles an option using the long option name. 68260786Sps 68360786Sps* New command __ queries an option using the long option name. 68460786Sps 68560786Sps* The old -- command is renamed as -!. 68660786Sps 68760786Sps* If a ^P is entered between the dash and the option letter of the - 68860786Sps command, the message describing the new setting is suppressed. 68960786Sps 69060786Sps* Lesskey files may now contain \k escape sequences to represent the 69160786Sps "special" keys (arrows, PAGE-UP/PAGE-DOWN, HOME, END, INSERT, DELETE). 69260786Sps 69360786Sps* New command :d removes the current file from the list of files. 69460786Sps 69560786Sps* New option -~ (like -w before version 335) 69660786Sps suppresses tildes after end-of-file. 69760786Sps 69860786Sps* Less is now released under the GNU General Public License. 69960786Sps 70060786Sps====================================================================== 70160786Sps 70260786Sps 70360786Sps Major changes between "less" versions 335 and 337 70460786Sps 70560786Sps* Fixed bugs in "make install". 70660786Sps 70760786Sps====================================================================== 70860786Sps 70960786Sps 71060786Sps Major changes between "less" versions 332 and 335 71160786Sps 71260786Sps* The old -w flag (suppress tildes after end-of-file) has been removed. 71360786Sps 71460786Sps* New -w flag highlights the first new line after a forward-screen. 71560786Sps 71660786Sps* New -W flag highlights the first new line after any forward movement. 71760786Sps 71860786Sps* Window resize works even if LINES and/or COLUMNS environment 71960786Sps variables are incorrect. 72060786Sps 72160786Sps* New percent escapes for prompt strings: 72260786Sps %d is replaced by the page number, and 72360786Sps %D is replaced by the number of pages in the file. 72460786Sps 72560786Sps* Added charsets "iso8859" and "ebcdic". 72660786Sps 72760786Sps* In Windows version, uses HOMEDRIVE and HOMEPATH if HOME is not defined. 72860786Sps 72960786Sps* Fixed some bugs causing incorrect display on DOS/Windows. 73060786Sps 73160786Sps====================================================================== 73260786Sps 73360786Sps 73460786Sps Major changes between "less" versions 330 and 332 73560786Sps 73660786Sps* Filenames from the command line are entered into the command history, 73760786Sps so UPARROW/DOWNARROW can be used to retrieve them from the :e command. 73860786Sps 73960786Sps* Now works correctly on Windows when using a scrolling terminal 74060786Sps window (buffer larger than display window). 74160786Sps 74260786Sps* On Windows, now restores the console screen on exit. 74360786Sps Use -X to get the old behavior. 74460786Sps 74560786Sps* Fixed bug on Windows when CAPS-LOCK or NUM-LOCK is pressed. 74660786Sps 74760786Sps* Fixed bug on Windows when piping output of an interactive program. 74860786Sps 74960786Sps* Fixed bug in tags file processing when tags file has DOS-style 75060786Sps line terminators (CR/LF). 75160786Sps 75260786Sps* Fixed compilation problem on OS/2. 75360786Sps 75460786Sps====================================================================== 75560786Sps 75660786Sps 75760786Sps Major changes between "less" versions 321 and 330 75860786Sps 75960786Sps* Now supports filenames containing spaces (in double quotes). 76060786Sps New option -" can be used to change the quoting characters. 76160786Sps 76260786Sps* In filename completion, a slash is appended to a directory name. 76360786Sps If the environment variable LESSSEPARATOR is set, the value of 76460786Sps that variable, rather than a slash, is appended. 76560786Sps 76660786Sps* LeftArrow and RightArrow are same as ESC-[ and ESC-]. 76760786Sps 76860786Sps* Added commands ESC-( and ESC-), same as ESC-[ and ESC-]. 76960786Sps 77060786Sps* A "quit" command defined in a lesskey file may now have an "extra" 77160786Sps string, which is used to return an exit code from less when it quits. 77260786Sps 77360786Sps* New environment variables LESSMETACHARS and LESSMETAESCAPE provide 77460786Sps more control over how less interfaces to the shell. 77560786Sps 77660786Sps* Ported to Microsoft Visual C compiler for Windows. 77760786Sps 77860786Sps* Ported to DJGPP compiler for MS-DOS. 77960786Sps 78060786Sps* Bug fixes. 78160786Sps 78260786Sps====================================================================== 78360786Sps 78460786Sps 78560786Sps Major changes between "less" versions 291 and 321 78660786Sps 78760786Sps* Command line at bottom of screen now scrolls, so it can be longer 78860786Sps than the screen width. 78960786Sps 79060786Sps* New commands ESC-] and ESC-[ scroll the display horizontally. 79160786Sps 79260786Sps* New command ESC-SPACE scrolls forward a full screen, even if it 79360786Sps hits end-of-file. 79460786Sps 79560786Sps* Alternate modifiers for search commands: ^N is same as !, 79660786Sps ^F is same as @, and ^E is same as *. 79760786Sps 79860786Sps* New modifier for search commands: ^K means highlight the matches 79960786Sps currently on-screen, but don't move to the first match. 80060786Sps 80160786Sps* New modifier for search commands: ^R means don't use regular 80260786Sps expressions in the search. 80360786Sps 80460786Sps* Environment variable LESSKEY gives name of default lesskey file. 80560786Sps 80660786Sps* Environment variable LESSSECURE will force less to run in 80760786Sps "secure" mode. 80860786Sps 80960786Sps* Command line argument "--" signals that the rest of the arguments 81060786Sps are files (not option flags). 81160786Sps 81260786Sps* Help file (less.hlp) is no longer installed. Help text is now 81360786Sps embedded in the less executable itself. 81460786Sps 81560786Sps* Added -Ph to change the prompt for the help text. 81660786Sps Added -Ps to change the default short prompt (same as plain -P). 81760786Sps 81860786Sps* Ported to the Borland C compiler for MS-DOS. 81960786Sps 82060786Sps* Ported to Windows 95 & Windows NT. 82160786Sps 82260786Sps* Ported to OS-9. 82360786Sps 82460786Sps* Ported to GNU Hurd. 82560786Sps 82660786Sps====================================================================== 82760786Sps 82860786Sps 82960786Sps Major changes between "less" versions 290 and 291 83060786Sps 83160786Sps* Less environment variables can be specified in lesskey files. 83260786Sps 83360786Sps* Fixed MS-DOS build. 83460786Sps 83560786Sps====================================================================== 83660786Sps 83760786Sps 83860786Sps Major changes between "less" versions 278 and 290 83960786Sps 84060786Sps* Accepts GNU-style options "--help" and "--version". 84160786Sps 84260786Sps* OS/2 version looks for less.ini in $HOME before $INIT and $PATH. 84360786Sps 84460786Sps* Bug fixes 84560786Sps 84660786Sps====================================================================== 84760786Sps 84860786Sps 84960786Sps Major changes between "less" versions 252 and 278 85060786Sps 85160786Sps* A LESSOPEN preprocessor may now pipe the converted file data to less, 85260786Sps rather than writing it to a temporary file. 85360786Sps 85460786Sps* Search pattern highlighting has been fixed. It now highlights 85560786Sps reliably, even if a string is split across two screen lines, 85660786Sps contains TABs, etc. 85760786Sps 85860786Sps* The -F flag (which suppress search highlighting) has been changed 85960786Sps to -G. A new flag, -g, changes search highlighting to highlight 86060786Sps only the string found by the last search command, instead of all 86160786Sps strings which match the last search command. 86260786Sps 86360786Sps* New flag -I acts like -i, but ignores case even if the search 86460786Sps pattern contains uppercase letters. 86560786Sps 86660786Sps* Less now checks for the environment variable VISUAL before EDITOR. 86760786Sps 86860786Sps* Ported to OS/2. 86960786Sps 87060786Sps====================================================================== 87160786Sps 87260786Sps 87360786Sps Major changes between "less" versions 237 and 252 87460786Sps 87560786Sps* Changes in line-editing keys: 87660786Sps The literal key is now ^V or ^A rather than \ (backslash). 87760786Sps Filename completion commands (TAB and ^L) are disabled 87860786Sps when typing a search pattern. 87960786Sps 88060786Sps* Line-editing command keys can be redefined using lesskey. 88160786Sps 88260786Sps* Lesskey with no input file defaults to $HOME/.lesskey 88360786Sps rather than standard input. 88460786Sps 88560786Sps* New option -V displays version number of less. 88660786Sps 88760786Sps* New option -V displays version number of lesskey. 88860786Sps 88960786Sps* Help file less.hlp is now installed by default in /usr/local/share 89060786Sps rather than /usr/local/lib. 89160786Sps 89260786Sps 89360786Sps====================================================================== 89460786Sps 89560786Sps 89660786Sps Major changes between "less" versions 170 and 237 89760786Sps 89860786Sps* By popular demand, text which matches the current search pattern 89960786Sps is highlighted. New -F flag disables this feature. 90060786Sps 90160786Sps* Henry Spencer's regexp.c is now included, for systems which do not 90260786Sps have a regular expression library. 90360786Sps regexp.c is Copyright (c) 1986 by University of Toronto. 90460786Sps 90560786Sps* New line-editing keys, including command history (arrow keys) and 90660786Sps filename completion (TAB). 90760786Sps 90860786Sps* Input preprocessor allows modification of input files (e.g. uncompress) 90960786Sps via LESSOPEN/LESSCLOSE environment variables. 91060786Sps 91160786Sps* New -X flag disables sending termcap "ti" and "te" (initialize and 91260786Sps deinitialize) strings to the terminal. 91360786Sps 91460786Sps* Changing -i from within less now correctly affects a subsequent 91560786Sps repeated search. 91660786Sps 91760786Sps* Searching for underlined or overstruck text now works when the -u 91860786Sps flag is in effect, rather than the -i flag. 91960786Sps 92060786Sps* Use setlocale (LANG and LC_CTYPE environment variables) to determine 92160786Sps the character set if LESSCHARSET/LESSCHARDEF are not set. 92260786Sps 92360786Sps* The default format for displaying binary characters is now standout 92460786Sps (reverse video) rather than blinking. This can still be changed by 92560786Sps setting the LESSBINFMT environment variable. 92660786Sps 92760786Sps* Use autoconf installation technology. 92860786Sps 92960786Sps* Ported to MS-DOS. 93060786Sps 93160786Sps ******************************** 93260786Sps Things that may surprise you 93360786Sps ******************************** 93460786Sps 93560786Sps* When you enter text at the bottom of the screen (search string, 93660786Sps filename, etc.), some keys act different than previously. 93760786Sps Specifically, \ (backslash), ESC, TAB, BACKTAB, and control-L 93860786Sps now have line editing functions. 93960786Sps 94060786Sps* Some previous unofficial versions of less were able to display 94160786Sps compressed files. The new LESSOPEN/LESSCLOSE feature now provides 94260786Sps this functionality in a different way. 94360786Sps 94460786Sps* Some previous unofficial versions of less provided a -Z flag to 94560786Sps set the number of lines of text to retain between full screen scrolls. 94660786Sps The -z-n flag (that is, -z with a negative number) provides this 94760786Sps functionality. 94860786Sps 94960786Sps 95060786Sps====================================================================== 95160786Sps 95260786Sps 95360786Sps Major changes between "less" versions 123 and 170 95460786Sps 95560786Sps* New option -j allows target lines to be positioned anywhere on screen. 95660786Sps 95760786Sps* New option -S truncates displayed line at the screen width, 95860786Sps rather than wrapping onto the next line. 95960786Sps 96060786Sps* New option -y limits amount of forward scroll. 96160786Sps 96260786Sps* New option -T specifies a "tags" file. 96360786Sps 96460786Sps* Non-printable, non-control characters are displayed in octal. 96560786Sps Such characters, as well as control characters, are displayed 96660786Sps in blinking mode. 96760786Sps 96860786Sps* New command -+ sets an option to its default. 96960786Sps* New command -- sets an option to the opposite of its default. 97060786Sps 97160786Sps* Lesskey file may have a string appended to a key's action, 97260786Sps which acts as though typed in after the command. 97360786Sps 97460786Sps* New commands ESC-^F and ESC-^B match arbitrary types of brackets. 97560786Sps 97660786Sps* New command F monitors a growing file (like "tail -f"). 97760786Sps 97860786Sps* New command | pipes a section of the input file into a shell command. 97960786Sps 98060786Sps* New command :x directly jumps to a file in the command line list. 98160786Sps 98260786Sps* Search commands have been enhanced and reorganized: 98360786Sps n Repeat search, same direction. 98460786Sps N Repeat search, opposite direction. 98560786Sps ESC-/ Search forward thru file boundaries 98660786Sps ESC-? Search backward thru file boundaries 98760786Sps ESC-n Repeat search thru file boundaries, same direction. 98860786Sps ESC-N Repeat search thru file boundaries, opposite direction. 98960786Sps Special character * causes search to search thru file boundaries. 99060786Sps Special character @ causes search to begin at start/end of file list. 99160786Sps 99260786Sps* Examining a new file adds it to the command line list. 99360786Sps A list of files, or an expression which matches more than one file, 99460786Sps may be examined; all of them are added to the command line list. 99560786Sps 99660786Sps* Environment variables LESSCHARSET and LESSCHARDEF can define 99760786Sps a non-ASCII character set. 99860786Sps 99960786Sps* Partial support for MSDOS, including options -R for repainting screen 100060786Sps on quit, -v/-V to select video mode, and -W to change window size. 100160786Sps 100260786Sps 100360786Sps====================================================================== 100460786Sps 100560786Sps 100660786Sps Major changes between "less" versions 97 and 123 100760786Sps 100860786Sps* New option (-N) causes line numbers to be displayed in the 100960786Sps text of the file (like vi "set nu"). 101060786Sps 101160786Sps* New option (-?) prints help message immediately. 101260786Sps 101360786Sps* New option (-r) displays "raw" control characters, without 101460786Sps mapping them to ^X notation. 101560786Sps 101660786Sps* New option (-f) forces less to open non-regular files 101760786Sps (directories, etc). 101860786Sps 101960786Sps* New option (-k) can be used to specify lesskey files by name. 102060786Sps 102160786Sps* New option (-y) can be used to set a forward scroll limit 102260786Sps (like -h sets a backward scroll limit). 102360786Sps 102460786Sps* File marks (set by the m command) are now preserved when a new 102560786Sps file is edited. The ' command can thus be used to switch files. 102660786Sps 102760786Sps* New command ESC-/ searches all files (on the command line) 102860786Sps for a pattern. 102960786Sps 103060786Sps* New command ESC-n repeats previous search, spanning files. 103160786Sps 103260786Sps* The N command has been changed to repeat the previous search 103360786Sps in the reverse direction. The old N command is still available 103460786Sps via :n. 103560786Sps 103660786Sps* New command ESC-N repeats previous search in the reverse 103760786Sps direction and spanning files. 103860786Sps 103960786Sps* 8 bit characters are now supported. A new option (-g) can be 104060786Sps used to strip off the eighth bit (the previous behavior). 104160786Sps 104260786Sps* Options which take a following string (like -t) may now 104360786Sps optionally have a space between the option letter and the string. 104460786Sps 104560786Sps* Six new commands { } ( ) [ and ] can be used to match 104660786Sps brackets of specific types, similar to vi % command. 104760786Sps 104860786Sps* New commands z and w move forward/backward one window and 104960786Sps simultaneously set the window size. 105060786Sps 105160786Sps* Prompt string expansion now has %L for line number of the last 105260786Sps line in the file, and %E for the name of the editor. 105360786Sps Also, % escapes which refer to a line (b=bottom, t=top, etc.) 105460786Sps can use j for the jump target line. 105560786Sps 105660786Sps* New environment variable LESSEDIT can be used to tailor the 105760786Sps command string passed to the editor by the v command. 105860786Sps 105960786Sps* Examining a file which was previously examined will return 106060786Sps to the same position in the file. 106160786Sps 106260786Sps* A "%" is expanded to the current filename and a "#" to the 106360786Sps previous filename, in both shell commands and the E command. 106460786Sps (Previously % worked only in shell commands and # worked 106560786Sps only in the E command.) 106660786Sps 106760786Sps* New command ":ta" is equivalent to "-t". 106860786Sps 106960786Sps* New command "s" is equivalent to "-l". 107060786Sps 107160786Sps* The - command may be followed by "+X" to revert to the default 107260786Sps for option X, or "-X" to get the opposite of the default. 107360786Sps 107460786Sps* Lesskey files may now include characters after the action as 107560786Sps extra input to be parsed after the action; for example: 107660786Sps "toggle-option X" to toggle a specific option X. 1077170256Sdelphij 1078170256Sdelphij 1079170256Sdelphij 1080172597Sdelphij 1081173682Sdelphij 1082