1 2 NEWS about less 3 4====================================================================== 5 6 For the latest news about less, see https://greenwoodsoftware.com/less 7 You can also download the latest version of less from there. 8 9 Report bugs, suggestions or comments at 10 https://github.com/gwsw/less/issues. 11 12====================================================================== 13 14 Major changes between "less" versions 702 and 704 15 16* Fix possibly passing unsafe options to man when opening an 17 OSC 8 link (github #779). 18 19* Fix possibly sending unsafe OSC sequence to terminal when file 20 contains an unterminated OSC sequence (github #781). 21 22* In Examine and Shell commands, expand % and # to shell-escaped 23 filenames (github #784). 24 25====================================================================== 26 27 Major changes between "less" versions 692 and 702 28 29* Add --hilite-target option and -DJ to color target line (github #745). 30 31* Add --past-eof option. 32 33* Add --end-prompt option. 34 35* Add --emouse and --rmouse options, and horizontal mouse scrolling 36 and dragging (github #744). 37 38* Add -DT option to format tilde lines (github #725). 39 40* Change OSC 8 link handling: replace LESS_OSC8_xxx with LESS_OSC8_OPEN_xxx. 41 Remove %O from prompt expansion as no longer needed. 42 Any use of environment variables LESS_OSC8_xxx need to be manually 43 changed to use LESS_OSC8_OPEN_xxx. 44 45* Add ?o to prompt strings, to detect whether an OSC 8 link is selected. 46 47* When scrolling past end-of-file or before beginning-of-file, 48 stop when exactly one line is left on screen. 49 50* Make -w/-W highlight lines when moving backward as well as forward 51 (github #729). 52 53* Display pattern in "Pattern not found" message (github #731). 54 55* Allow m and M commands to take a numeric argument to specify the 56 line to be marked (github #736). 57 58* Allow ' command to take a numeric argument to specify the screen 59 position on which to place the marked line. 60 61* Allow lesskey to map keypad ENTER with \kpe (github #761). 62 63* Add "noaction" as a possible action in #line-edit section 64 in a lesskey file (github #761). 65 66* Support POSIX character classes with the built-in V8 regex library 67 (github #732). 68 69* Change | command to pipe just one line if the marked line is at the 70 top of the screen (github #733). 71 72* If OSC8 handler command begins with "-", suppress command echo, 73 and if it begins with ctrl-P, suppress "done" message (github #747). 74 75* Don't ask for confirmation when input is a binary file and stdout is 76 redirected. Fixes infinite loop in that situation (github #719). 77 78* Make early error messages go to stderr if stdout is redirected 79 (github #719). 80 81* Don't retry read after read error; fixes hang when attempting to read 82 a directory or other unreadable file (github #741). 83 84* Fix incorrect restoration of saved mark if not at top of screen. 85 86* With --save-marks, don't save a mark that was cleared with ESC-m. 87 88* Fix buffer overflow when using malformed lesskey file (github #721). 89 90* Fix unexpected scrolling past end of file (github #720). 91 92* Fix bug when env var in LESSKEY_CONTENT partially matches env var 93 defined in lesskey file (github #727). 94 95* Fix bug when env var in lesskey file matches tail of env var used 96 by less (github #728). 97 98* Fix command parsing bug when one command is a substring of another. 99 Also fixes --no-paste option (github #724). 100 101* Fix incorrect display using --color to set character attributes 102 without color, such as -DS-u (github #730). 103 104* Fix crash when tags file contains invalid line number 0 (github #743). 105 106* Fix build when tparm() doesn't use varargs (github #748). 107 108* Fix prompt overflow when filtering with long prompt (github #749). 109 110* Fix incorrect highlighting when change -i while filtering (github #750). 111 112* Fix erroneous error mesage using --show-preproc-error with 113 some shells (github #753). 114 115* Fix erroneous highlighting when using a search pattern containing more 116 than 5 pairs of parentheses with PCRE2 (github #754). 117 118* When ^X interrupts F mode, discard pending keys as is done when 119 ^C interrupts it (github #757). 120 121* Fix bug in Windows where pressing any key during "waiting for data" would 122 prevent a subsequent ^X from working. 123 124* Fix erroneous display in some situations when using LESS_LINES (github #759). 125 126* Fix erroneous display after certain messages are displayed in a 127 very narrow terminal (github #760). 128 129* Don't init terminal if stdout is not a tty (github #768). 130 131* Fix bug clicking OSC 8 link that crosses a screen line boundary 132 (github #775). 133 134* Fix beeps when resizing window on Windows (github #771). 135 136* Fix beeps when paging continuously on Windows (github #772). 137 138====================================================================== 139 140 Major changes between "less" versions 691 and 692 141 142* Revert HOME key to scroll to beginning of file and END key 143 to scroll to end of file (github #658). 144 145* Configure tty to leave CR and NL unmodified (github #703). 146 147* Add commands to lesskey parser (forw-bell-hilite, goto-pos and osc8-jump). 148 149* Add key sequences to lesskey parser (\kE, \kF, \kH, \kI, \kM, and \kS). 150 151* Fix bug using negative value with -z option (github #709). 152 153* Fix bug handling empty terminfo capabilties (github #710). 154 155* Fix memory leak in setupterm (github #707). 156 157* Make lesstest ignore system locale (nl_langinfo) (github #708). 158 159====================================================================== 160 161 Major changes between "less" versions 685 and 691 162 163* Add --autosave option (github #678). 164 165* Add ESC-f command (github #680). 166 167* Add column number to long prompt and = message. 168 169* Add prompt prototype sequences %C, %W, %Q and ?Q (github #685). 170 171* Map keypad keys, and use terminfo rather than termcap since keypad 172 definitions don't exist in termcap (github #650). 173 174* Change HOME key to scroll fully left and END key to scroll fully right. 175 Add shift-HOME and ctrl-HOME to scroll left and jump to top, and 176 add shift-END and ctrl-END to scroll right and jump to end (github #658). 177 178* Add LESSNOCONFIG environment variable. 179 180* Add --without-termlib to configure (github #701). 181 182* When setting line number colors (-DN), don't force bold attribute. 183 To set bold, you must append "d" or "*" to the color string (github #684). 184 185* While waiting for file data, only ^C or ^X will interrupt, not any command. 186 This reverts to behavior that existed before less-670 (github #700). 187 188* When --save-marks is not used, retain any marks saved in the history file 189 (github #662). 190 191* Defer sending the terminal init string until the first char is read 192 from the input file (github #682). 193 194* Make SIGHUP do an orderly exit like SIGTERM. 195 196* Implement modeline handling in Windows build. 197 198* Fix bugs and improve behavior of screen resize on Windows. 199 200* Fix bug when entering search modifier key at start of non-empty 201 search string (github #668). 202 203* Fix bug repainting screen with --form-feed (github #672). 204 205* Fix bugs passing invalid negative values to some command line 206 options (github #675). 207 208* Fix incorrect display of Lit indicator (github #670). 209 210* Fix incorrect display when returning to a mark after resizeing window 211 (github #681). 212 213* Fix bug using --pattern with --incsearch (github #696). 214 215* Disallow mouse click to open OSC8 link in SECURE mode (github #676). 216 217* Add SECURE_COMPILE environment variable for Windows builds. 218 219* Update Unicode tables. 220 221====================================================================== 222 223 Major changes between "less" versions 679 and 685 224 225* Add --cmd option (github #624). 226 227* Add LESS_TERMCAP_SUSPEND and LESS_TERMCAP_RESUME (github #654). 228 229* Change --incsearch so that after typing each character of the pattern, 230 the search begins at the position where the search command was invoked, 231 not the current position (github #640). 232 233* Allow mixing of option arguments and filename arguments on the 234 command line unless POSIXLY_CORRECT is set (github #653). 235 236* Don't output U+00AD and U+200D, and fix some bugs handling emoji 237 modifier characters (github #637). 238 239* Fix hang if a search using ^S modifier matches empty string (github #634). 240 241* Fix bug using -g and -J (github #636). 242 243* Fix bug when pasting a search pattern while --incsearch is active 244 (github #635). 245 246* Fix bug in Windows build when autorepeating a search pattern (github #639). 247 248* Fix lesskey bug using #stop directive. 249 250* Fix lesskey bug using "invalid" action (github #643). 251 252* Fix bug causing file to appear to end prematurely if an input command 253 was received during a file read (github #649). 254 255* Fix performance issue in & filtering (github #638). Problem was introduced 256 in da2a9ecdf16beb642d0c030e35f0351c5f2e5a12 and released in less-673. 257 258* Fix some problems reported by valgrind (github #659, github #660, github #661). 259 260====================================================================== 261 262 Major changes between "less" versions 678 and 679 263 264* Fix bad parsing of lesskey file an env var is a prefix of another 265 env var (github #626). 266 267* Fix unexpected exit using -K if a key press is received while reading 268 the input file (github #628). 269 270====================================================================== 271 272 Major changes between "less" versions 668 and 678 273 274* Treat -r in LESS environment variable as -R. 275 276* Add ESC-j and ESC-k commands (github #560). 277 278* Add --no-paste option (github #523). 279 280* Add --no-edit-warn option (github #513). 281 282* Add --form-feed option (github #496). 283 284* Add ESC-b command (github #615). 285 286* Make TAB complete option name in -- command (github #531). 287 288* Update the file size on an attempt to go past end of file. 289 290* Make -R able to pass through any OSC escape sequences, 291 not just OSC 8 (github #504). 292 293* Setting LESS_IS_MORE=0 now disables "more" compatibility even 294 if invoked via a file link named "more" (github #500). 295 296* Pass through escape sequences in prompts even if -R is not set. 297 298* Add LESS_SHELL_LINES to support shell prompts which use more than 299 one line (github #514). 300 301* Add LESSANSIOSCALLOW to define OSC types which may be passed through. 302 303* Add LESSANSIOSCCHARS to define non-standard OSC intro chars. 304 305* Add LESS_SIGUSR1 to define user signal handler (github #582). 306 307* Add mouse and mouse6 commands to lesskey (github #569). 308 309* Improve behavior of ^O^N and ^O^P commands. 310 311* Leave stty tabs setting unchanged (github #620). 312 313* Fix unexpected behavior when entering a partial command followed by 314 a valid command (github #543). 315 316* Fix bug when coloring prompt string with SGR sequences (github #516). 317 318* Fix bug when searching for text near an invalid UTF-8 sequence (github #542). 319 320* Fix display bug when file contains ESC followed by NUL (github #550). 321 322* Fix bug when using +:n +:p +:x or +:d on the command line (github #552). 323 324* Fix bug with --no-number-headers when header is not at start of file 325 (github #566). 326 327* Fix bug where lesstest fails if window is resized (github #570). 328 329* Fix bug using "configure --with-secure=no" (github #584). 330 331* Fix bug using multibyte command chars (github #595). 332 333* Fix auto_wrap setting on Windows (github #497). 334 335* Fix two bugs using ^S search modifier (github #605). 336 337* Fix bug searching for UTF-8 strings with the PCRE2 library (github #610). 338 339* Fix bug highlighting OSC 8 links when opening a new file. 340 341* Fix bug when & filtering is active (github #618). 342 343====================================================================== 344 345 Major changes between "less" versions 661 and 668 346 347* Make 256/true colors work better on Windows without -Da 348 (github #539, github #546, github #562). 349 350* Fix build using --with-secure (github #544). 351 352* Fix crash when using --header on command line (github #545). 353 354* Fix possible crash when scrolling left/right or toggling -S (github #547). 355 356* Fix bug when using #stop in a lesskey file (github #551). 357 358* Fix bug when using --shift or --match-shift on command line with 359 a parameter starting with '.' (github #554). 360 361* Fix bug in R command when file size changes (github #553). 362 363* Fix bug using --header when file does not fill screen (github #556). 364 365* Fix ^X bug when output is not a terminal (github #558). 366 367* Fix bug where ^Z is not handled immediately (github #563). 368 369* Fix bug where first byte from a LESSOPEN filter is deleted if it is 370 greater than 0x7F (github #568). 371 372* Fix uninitialized variable in edit_ifile (github #573). 373 374* Fix incorrect handling of UTF-8 chars in prompts (github #576). 375 376====================================================================== 377 378 Major changes between "less" versions 643 and 661 379 380* Add ^O^N, ^O^P, ^O^L and ^O^O commands and mouse clicks (with --mouse) 381 to find and open OSC8 hyperlinks (github #251). 382 383* Add --match-shift option. 384 385* Add --lesskey-content option (github #447). 386 387* Add LESSKEY_CONTENT environment variable (github #447). 388 389* Add --no-search-header-lines and --no-search-header-columns options 390 (github #397). 391 392* Add ctrl-L search modifier (github #367). 393 394* A ctrl-P at the start of a shell command suppresses the "done" 395 message (github #462). 396 397* Add attribute characters ('*', '~', '_', '&') to --color 398 parameter (github #471). 399 400* Allow expansion of environment variables in lesskey files. 401 402* Add LESSSECURE_ALLOW environment variable (github #449). 403 404* Add LESS_UNSUPPORT environment variable. 405 406* Add line number parameter to --header option (github #436). 407 408* Mouse right-click jumps to position marked by left-click (github #390). 409 410* Ensure that the target line is not obscured by a header line 411 set by --header (github #444). 412 413* Change default character set to "utf-8", except remains "dos" on MS-DOS. 414 415* Add message when search with ^W wraps (github #459). 416 417* UCRT builds on Windows 10 and later now support Unicode file names 418 (github #438). 419 420* Improve behavior of interrupt while reading non-terminated pipe 421 (github #414). 422 423* Improve parsing of -j, -x and -# options (github #393). 424 425* Support files larger than 4GB on Windows (github #417). 426 427* Support entry of Unicode chars larger than U+FFFF on Windows (github #391). 428 429* Improve colors of bold, underline and standout text on Windows. 430 431* Allow --rscroll to accept non-ASCII characters (github #483). 432 433* Allow the parameter to certain options to be terminated with a 434 space (--color, --quotes, --rscroll, --search-options 435 and --intr) (github #495). 436 437* Fix bug where # substitution failed after viewing help (github #420). 438 439* Fix crash if files are deleted while less is viewing them (github #404). 440 441* Workaround unreliable ReadConsoleInputW behavior on Windows 442 with non-ASCII input. 443 444* Fix -J display when searching for non-ASCII characters (github #422). 445 446* Don't filter header lines via the & command (github #423). 447 448* Fix bug when horizontally shifting long lines (github #425). 449 450* Add -x and -D options to lesstest, to make it easier to diagnose 451 a failed lesstest run. 452 453* Fix bug searching long lines with --incsearch and -S (github #428). 454 455* Fix bug that made ESC-} fail if top line on screen was empty (github #429). 456 457* Fix bug with --mouse on Windows when used with pipes (github #440). 458 459* Fix bug in --+OPTION command line syntax. 460 461* Fix display bug when using -w with an empty line with a CR/LF 462 line ending (github #474). 463 464* When substituting '#' or '%' with a filename, quote the filename 465 if it contains a space (github #480). 466 467* Fix wrong sleep time when system has usleep but not nanosleep (github #489). 468 469* Fix bug when file name contains a newline. 470 471* Fix bug when file name contains nonprintable characters (github #503). 472 473* Fix DJGPP build (github #497). 474 475* Update Unicode tables. 476 477====================================================================== 478 479 Major changes between "less" versions 633 and 643 480 481* Fix problem when a program piping into less reads from the tty, 482 like sudo asking for password (github #368). 483 484* Fix search modifier ^E after ^W. 485 486* Fix bug using negated (^N) search (github #374). 487 488* Fix bug setting colors with -D on Windows build (github #386). 489 490* Fix reading special chars like PageDown on Windows (github #378). 491 492* Fix mouse wheel scrolling on Windows (github #379). 493 494* Fix erroneous EOF when terminal window size changes (github #372). 495 496* Fix compile error with some definitions of ECHONL (github #395). 497 498* Fix crash on Windows when writing logfile (github #405). 499 500* Fix regression in exit code when stdin is /dev/null and 501 output is a file (github #373). 502 503* Add lesstest test suite to production release (github #344). 504 505* Change lesstest output to conform with 506 automake Simple Test Format (github #399). 507 508====================================================================== 509 510 Major changes between "less" versions 632 and 633 511 512* Fix build on systems which have ncurses/termcap.h or 513 ncursesw/termcap.h but not termcap.h. 514 515====================================================================== 516 517 Major changes between "less" versions 608 and 632 518 519* Add LESSUTFCHARDEF environment variable (github #275). 520 521* Add # command (github #330). 522 523* Add ^S search modifier (github #196). 524 525* Add --wordwrap option (github #113). 526 527* Add --no-vbell option (github #304). 528 529* Add --no-search-headers option (github #44). 530 531* Add --modelines option (github #89). 532 533* Add --intr option (github #224). 534 535* Add --proc-backspace, --proc-tab and --proc-return options (github #335). 536 537* Add --show-preproc-errors option (github #258). 538 539* Add LESS_LINES and LESS_COLUMNS environment variables (github #84). 540 541* Add LESS_DATA_DELAY environment variable (github #337). 542 543* Allow empty "lines" field in --header option. 544 545* Update Unicode tables. 546 547* Improve ability of ^X to interrupt F command (github #49). 548 549* Status column (-J) shows off-screen matches. 550 551* Parenthesized sub-patterns in searches are colored with unique colors, 552 if supported by the regular expression library (github #196). 553 554* Don't allow opening a tty as file input unless -f is set (github #309). 555 556* Don't require newline input after +&... option (github #339). 557 558* Fix incorrect handling of some Private Use Unicode characters. 559 560* Fix ANSI color bug when overstriking with colored chars (github #276). 561 562* Fix compiler const warning (github #279). 563 564* Fix signal race in iread (github #280). 565 566* Fix reading procfs files on Linux (github #282). 567 568* Fix --ignore-case with ctrl-R (no regex) search (github #300). 569 570* Fix bug doing repeat search after setting & filter (github #299). 571 572* Fix bug doing repeat search before non-repeat search. 573 574* Fix crash with -R and certain line lengths (github #338). 575 576* Fix input of Windows dead keys (github #352). 577 578* Don't retain search options from a cancelled search (github #302). 579 580* Don't call realpath on fake filenames like "-" (github #289). 581 582* Implement lesstest test suite. 583 584* Convert function parameter definitions from K&R to C89 (github #316). 585 586====================================================================== 587 588 Major changes between "less" versions 590 and 608 589 590* Add the --header option (github #43). 591 592* Add the --no-number-headers option (github #178). 593 594* Add the --status-line option. 595 596* Add the --redraw-on-quit option (github #36). 597 598* Add the --search-options option (github #213). 599 600* Add the --exit-follow-on-close option (github #244). 601 602* Add 'H' color type to set color of header lines. 603 604* Add #version conditional to lesskey. 605 606* Add += syntax to variable section in lesskey files. 607 608* Allow option name in -- command to end with '=' in addition to '\n'. 609 610* Add $HOME/.config to possible locations of lesskey file (github #153). 611 612* Add $XDG_STATE_HOME and $HOME/.local/state to possible locations 613 of history file (github #223). 614 615* Don't read or write history file in secure mode (github #201). 616 617* Fix display of multibyte and double-width chars in prompt. 618 619* Fix ESC-BACKSPACE command when BACKSPACE key does not send 0x08 620 (github #188). 621 622* Add more \k codes to lesskey format. 623 624* Fix bug when empty file is modified while viewing it. 625 626* Fix bug when parsing a malformed lesskey file (githb #234). 627 628* Fix bug scrolling history when --incsearch is set (github #214). 629 630* Fix buffer overflow when invoking lessecho with more than 63 -m/-n 631 options (github #198). 632 633* Fix buffer overflow in bin_file (github #271). 634 635* Fix bug restoring color at end of highlighted text. 636 637* Fix bug in parsing lesskey file. 638 639* Defer moving cursor to lower left in some more cases. 640 641* Suppress TAB filename expansion in some cases where it doesn't make sense. 642 643* Fix termlib detection when compiler doesn't accept 644 calls to undeclared functions. 645 646* Fix bug in input of non-ASCII characters on Windows (github #247) 647 648* Escape filenames when invoking LESSCLOSE. 649 650* Fix bug using multibyte UTF-8 char in search string 651 with --incsearch (github #273). 652 653====================================================================== 654 655 Major changes between "less" versions 581 and 590 656 657* Make less able to read lesskey source files (deprecating lesskey). 658 659* If XDG_CONFIG_HOME is set, find lesskey source file 660 in $XDG_CONFIG_HOME/lesskey rather than $HOME/.lesskey. 661 662* If XDG_DATA_HOME is set, find and store history file 663 in $XDG_DATA_HOME/lesshst rather than $HOME/.lesshst. 664 665* Add the --lesskey-src option. 666 667* Add the --file-size option. 668 669* With -F, if screen is resized to make file fit on one screen, don't exit. 670 671* Fix bug which could leave terminal in mouse-reporting mode 672 after exiting less. 673 674* Fix bug which caused failure to respond to window resize. 675 676* Fix backslash bug searching in tag file. 677 678====================================================================== 679 680 Major changes between "less" versions 563 and 581 681 682* Change ESC-u command to toggle, not disable, highlighting per man page. 683 684* Add ESC-U command. 685 686* Add ctrl-W search modifier for wrapping search. 687 688* F command can be interrupted by ^X. 689 690* Support OSC 8 hyperlinks when -R is in effect. 691 692* g command with no number will ignore -j and put first line at top of screen. 693 694* Multiple + or -p command line options are handled better. 695 696* Add the --incsearch option. 697 698* Add the --line-num-width option. 699 700* Add the --status-col-width option. 701 702* Add the --use-color and --color options. 703 704* Display -w highlight even if highlighted line is empty. 705 706* If search result is in a long line, scroll to ensure it is visible. 707 708* Editing the same file under different names now creates only 709 one entry in the file list. 710 711* Make visual bell more visible on some terminals. 712 713* Ring end-of-file bell no more than once per second. 714 715* Build can use either Python or Perl for Makefile.aut operations. 716 717* Fix crash when using the @ search modifier. 718 719* Fix crash in the 's' command due to duplicate free. 720 721* Fix realpath crash on Darwin. 722 723====================================================================== 724 725 Major changes between "less" versions 551 and 563 726 727* Update Unicode tables. 728 729* Treat Hangul Jamo medial vowels and final consonants as zero width. 730 731* Display error message immediately when -o is toggled and 732 input is not a pipe. 733 734* Fix regression: make screen repaint when "squished" and 735 a no-movement command is given. 736 737* Fix erroneous EOF calculation when F command is interrupted. 738 739* Make WIN32C version include this fix from 551: 740 Don't count lines in initial screen if using -X with -F. 741 742* Fix display bug in WIN32C version. 743 744* Fix memory corruption when built with libtermcap. 745 746* Support libtinfow. 747 748====================================================================== 749 750 Major changes between "less" versions 530 and 551 751 752* Add --mouse option. 753 754* Add --wheel-lines option. 755 756* Add --no-histdups option. 757 758* Add --save-marks option. 759 760* Support PCRE2 regular expression library. 761 762* Redraw screen on SIGWINCH even if screen size doesn't change. 763 764* Shell-escape filenames in history so they can be used again. 765 766* Ring bell if user enters invalid long option name. 767 768* Use PCRE_UTF8 flag for pcre regular expressions when in UTF-8 mode. 769 770* Windows: use wide-char string to set console title. 771 772* Don't count lines in initial screen if using -X with -F. 773 774* Support mingw build system. 775 776* Fix bug in v command on empty file. 777 778* Fix bug in v command when filename contains shell metacharacters. 779 780====================================================================== 781 782 Major changes between "less" versions 487 and 530 783 784* Don't output terminal init sequence if using -F and file fits on one screen. 785 786* When using -S, mark truncated lines with a special character. 787 The character can be changed or disabled via the new --rscroll option. 788 789* New command M marks the last line displayed on the screen. 790 791* New command ESC-m removes a line mark. 792 793* Status column (enabled via -J) now shows mark letters. 794 795* Status column shows search matches even if highlighting is disabled via -G. 796 797* A second ESC-u command will clear search match markers in the status column. 798 799* Do same ANSI escape code filtering for tag matching that we do for 800 searching, to help when viewing syntax-highlighted code. 801 802* Catch SIGTERM and clean up before exiting. 803 804* Fix bug initializing default charset on Windows. 805 806* Handle keypad ENTER key correctly if it sends something other than newline. 807 808* Fix buffering bug when using stdin with a LESSOPEN pipe. 809 810* On Windows, allow 'u' in -D option to enable underlining. 811 812* On Windows, use underline in sgr mode. 813 814* On Windows, convert UTF-8 to multibyte if console is not UTF-8. 815 816* Update Unicode tables to 2017-03-08. 817 818* Pass-thru Unicode formatting chars (Cf type) instead of treating them 819 as binary chars. But treat them as binary if -U is set. 820 821* Fix erroneous binary file warning when UTF-8 file contains ANSI SGR sequences. 822 823* Fix bugs when using LESSOPEN and switching between stdin and other files. 824 825* Fix some bugs handling filenames containing shell metacharacters. 826 827* Fix some memory leaks. 828 829* Allow some debugging environment variables to be set in lesskey file. 830 831* Code improvements: 832 . Use ANSI prototypes in funcs.h declarations. 833 . Fix some const mismatches. 834 . Remove archaic "register" in variable declarations. 835 836====================================================================== 837 838 Major changes between "less" versions 481 and 487 839 840* New commands ESC-{ and ESC-} to shift to start/end of displayed lines. 841 842* Make search highlights work correctly when changing caselessness with -i. 843 844* New option -Da in Windows version to enable SGR mode. 845 846* Fix "nothing to search" error when top or bottom line on screen is empty. 847 848* Fix bug when terminal has no "cm" termcap entry. 849 850* Fix incorrect display when entering double-width chars in search string. 851 852* Fix bug in Unicode handling that missed some double width characters. 853 854* Update Unicode database to 9.0.0. 855 856====================================================================== 857 858 Major changes between "less" versions 458 and 481 859 860* Don't overwrite history file; just append to it. 861 862* New command ESC-G goes to end of currently buffered data in a pipe. 863 864* Disable history feature when compiled with LESSHISTFILE set to "-". 865 866* In more-compatible mode, make the -p option apply to every file opened, 867 not just the first one. 868 869* In more-compatible mode, change the -e option to work like -E, not -EF. 870 871* Treat multiple CRs before LF are like one CR (all the CRs are hidden). 872 873* Allow "extra" string in lesskey file to append to a multi-char command 874 (like a search pattern), without executing the command. 875 876* Ignore -u/-U setting while viewing help file, so that 877 underline and bold chars are displayed correctly. 878 879* Improve detection of "binary" files in UTF-8 mode. 880 881* Fix bug with ++ commands. 882 883* Fix bug where prompt was sometimes not displayed with +G. 884 885* Fix possible memory corruption 886 887* Fix bugs and improve performance in ampersand filtering. 888 889* Automate construction of Unicode tables from Unicode database. 890 891* Allow %% escape sequence in LESSOPEN variable. 892 893====================================================================== 894 895 Major changes between "less" versions 451 and 458 896 897* Allow backslash escaping of metacharacters in LESS environment variable 898 after the --use-backslash option. 899 900* Don't quit if syntax errors are found in command line options. 901 902* Increase sizes of some internal buffers. 903 904* Fix configure bug with --with-regex=none. 905 906* Fix crash with "stty rows 0". 907 908* Fix Win32 attribute display bug. 909 910* Fix display bug when using up/down arrow on the command line. 911 912====================================================================== 913 914 Major changes between "less" versions 444 and 451 915 916* Add ESC-F command to keep reading data until a pattern is found. 917 918* Use exit code of LESSOPEN script if LESSOPEN starts with "||". 919 920* When up/down arrow is used on the command line immediately after 921 typing text, the next command starting with that text is found. 922 923* Add support for GNU regex. 924 925* Add configure option --with-regex=none and fix compile errors 926 when compiling with no regex library. 927 928* Fix bugs handling SGR sequences in Win32. 929 930* Fix possible crashes caused by malformed LESSOPEN or 931 LESSCLOSE variables. 932 933* Fix bug highlighting text which is discontiguous in the file 934 due to backspace processing. 935 936* Fix bug in displaying status column when scrolling backwards 937 with -J and -S in effect. 938 939====================================================================== 940 941 Major changes between "less" versions 443 and 444 942 943* Fix bug in unget handling that can cause strange effects on the 944 command line. 945 946* Remove vestiges of obsolete -l option that can cause a crash. 947 948====================================================================== 949 950 Major changes between "less" versions 436 and 443 951 952* Change search behavior such that when a search is given an explicit 953 pattern, the entire displayed screen is included in the search and 954 not just the portion after the target line. 955 956* Add -A option to change search behavior to the old way: only 957 the portion of the screen after the target line is searched. 958 959* Add %F formatting to prompt strings, replaced by the last component 960 of the input file. 961 962* Control-G while editing a command exits the command. 963 964* Less now exits with status 2 if control-C is pressed and -K is in effect. 965 966* Fix "ungetc overflow" when passing long commands via the -p option. 967 968* Fix bug in using line filtering via the & command 969 in combination with -i and -I. 970 971* Fix bug in handling negative arguments to the -j option. 972 973* Fix bug in handling %t in prompt strings. 974 975* Improve handling of long option names. 976 977* Improve percentage calculation for very large files. 978 979====================================================================== 980 981 Major changes between "less" versions 429 and 436 982 983* Don't pass "-" to non-pipe LESSOPEN unless it starts with "-". 984 985* Allow a fraction as the argument to the -# (--shift) option. 986 987* Fix highlight bug when underlined/overstruck text matches at end of line. 988 989* Fix non-regex searches with ctrl-R. 990 991====================================================================== 992 993 Major changes between "less" versions 424 and 429 994 995* LESSOPEN pipe will now be used on standard input, if the LESSOPEN 996 environment variable begins with "|-". 997 998* The -D option with one number now means use the normal background color. 999 1000* Don't change permissions on history file if it is not a regular file. 1001 1002* Fix non-ANSI-compliant code that caused problems with some compilers. 1003 1004* Fix binary file detection in UTF-8 mode. 1005 1006* Fix display problems with long lines on "ignaw" terminals. 1007 1008* Fix problem interrupting the line number calculation for initial prompt. 1009 1010* Fix SGR emulation when dealing with multiple attributes (e.g. bold+underline). 1011 1012* Fix highlight bug when searching for underlined/overstruck text. 1013 1014====================================================================== 1015 1016 Major changes between "less" versions 418 and 424 1017 1018* New "&" command allows filtering of lines based on a pattern. 1019 1020* Status column now displays a search match, even if the matched 1021 string is scrolled off screen because -S is in effect. 1022 1023* Improve behavior of -F option. 1024 1025* Allow CSI character (0x9B) to work in UTF-8 mode. 1026 1027* Output carriage return at startup in case terminal doesn't default 1028 to column 1. 1029 1030* Fix bug in '' (quote, quote) command after G command. 1031 1032====================================================================== 1033 1034 Major changes between "less" versions 416 and 418 1035 1036* Color escape sequences are now supported in WIN32 build. 1037 1038* Makefile now uses EXEEXT feature of autoconf. 1039 1040* Fix search bug when using -R and text contains ANSI color escape sequences. 1041 1042* Fix crash when using -r with UTF-8 text containing 0x9B bytes. 1043 1044* Fix display bug when using ' command to move less than one page forward. 1045 1046* Update GPL to version 3. 1047 1048====================================================================== 1049 1050 Major changes between "less" versions 409 and 416 1051 1052* New --follow-name option makes F command follow the name of a file 1053 rather than the file descriptor if an open file is renamed. 1054 1055* Make searching with -i/-I work correctly with non-ASCII text. 1056 1057* Fix DJGPP build. 1058 1059====================================================================== 1060 1061 Major changes between "less" versions 406 and 409 1062 1063* Support CSI escape sequences, like SGR escape sequences. 1064 1065* Fix bug which caused screen to fail to repaint when window is resized. 1066 1067* Fix bug in using -i and -I flags with non-ASCII text. 1068 1069* Fix configure bug on systems which don't support langinfo.h. 1070 1071* Fix crash when searching text containing certain invalid UTF-8 sequences. 1072 1073====================================================================== 1074 1075 Major changes between "less" versions 394 and 406 1076 1077* Allow decimal point in number for % (percent) command. 1078 1079* Allow decimal point in number for -j option (fraction of screen height). 1080 1081* Make n command fetch previous pattern from history file on first search. 1082 1083* Don't rewrite history file if it has not changed. 1084 1085* Don't move to bottom of screen on first page. 1086 1087* Don't output extraneous newlines, so copy & pasting lines from the 1088 output works better. 1089 1090* The -c option has been made identical with the -C option. 1091 1092* Allow "/dev/null" as synonym for "-" in LESSHISTFILE to indicate 1093 that no history file should be used. 1094 1095* Search can now find text which follows a null byte, if the PCRE 1096 library is used, or if no-regex searching (ctrl-R) is used. 1097 1098* Better compatibility with POSIX more specification. 1099 1100* Make -f work for directories. 1101 1102* Make "t" cmd traverse tags in the correct order. 1103 1104* Allow a few binary characters in the input file before warning 1105 that the file is binary. 1106 1107* Don't warn that file is binary if it merely contains ANSI color sequences 1108 and -R is in effect. 1109 1110* Update Unicode character tables. 1111 1112* Support DESTDIR in Makefile. 1113 1114* Fix bug when filename contains certain shell metacharacters such as "$". 1115 1116* Fix bug when resizing the window while waiting for input from a pipe. 1117 1118* Fix configure bugs. 1119 1120====================================================================== 1121 1122 Major changes between "less" versions 382 and 394 1123 1124* Add history file to save search and shell command history between 1125 invocations of less. 1126 1127* Improve behavior of history list for search and shell commands. 1128 1129* Add -K (or --quit-on-intr) option to make less exit immediately on ctrl-C. 1130 1131* Improve handling of UTF-8 files and commands, including better 1132 line wrapping and handling double-width chars. 1133 1134* Added LESSUTFBINFMT environment variable to control display of 1135 non-printable characters in a UTF-8 file. 1136 1137* Add --with-secure option to configure, to make it easier to 1138 build a secure version of less. 1139 1140* Show search matches in the status column even if search highlights 1141 are disabled via the -G option or the ESC-u command. 1142 1143* Improve performance when the file contains very long lines. 1144 1145* Add "windows" charset. 1146 1147* Add man page for lessecho. 1148 1149* Add support for erase2 character, treated same as erase. 1150 1151* Use ASCII lowercase/uppercase logic when operating on the command line. 1152 1153* Update makefile for Borland C++ 5.5.1. 1154 1155* Fix bug in calculating number of pages for %D prompt. 1156 1157* Fix bug in handling tag file error. 1158 1159* Fix obscure bug if input file is deleted while viewing help. 1160 1161* Fix bug handling filenames which include square brackets. 1162 1163* Fix possible buffer overflow in "global" tag search. 1164 1165* Fix possible buffer overflow in usage of LESSOPEN and LESSCLOSE. 1166 1167* Fix buffer overflow in reverse search. 1168 1169====================================================================== 1170 1171 Major changes between "less" versions 381 and 382 1172 1173* Removed some old copyrighted code. 1174 This probably breaks OS/9 support. 1175 1176====================================================================== 1177 1178 Major changes between "less" versions 378 and 381 1179 1180* New -L option to disable LESSOPEN processing. 1181 1182* Further support for large (64 bit) file addressing. 1183 Large file support is now set up by the configure script. 1184 1185* Use autoconf 2.54. 1186 Replace configure.in, acconfig.h, defines.h.top with configure.ac. 1187 1188* Overstriking underscore with underscore is now bold or underlined 1189 depending on context. 1190 1191* Use only 7 spaces for line numbers in -N mode, if possible. 1192 1193* Fix some bugs in handling overstriking in UTF-8 files. 1194 1195* Fix some nroff issues in the man page. 1196 1197====================================================================== 1198 1199 Major changes between "less" versions 376 and 378 1200 1201* Bug fixes: 1202 Default buffer space is now 64K as documented. 1203 Search highlighting works properly when used with -R. 1204 Windows version works properly when input file contains carriage returns. 1205 Clean up some compiler warnings. 1206 1207====================================================================== 1208 1209 Major changes between "less" versions 358 and 376 1210 1211* -x option can now specify multiple variable-width tab stops. 1212 1213* -X option no longer disables keypad initialization. 1214 New option --no-keypad disables keypad initialization. 1215 1216* New commands t and T step through multiple tag matches. 1217 Added support for "global(1)" tags 1218 (see http://www.gnu.org/software/global/global.html). 1219 1220* New prompt style set by option -Pw defines the message printed 1221 while waiting for data in the F command. 1222 1223* System-wide lesskey file now defaults to sysless in etc directory 1224 instead of .sysless in bin directory. 1225 Use "configure --sysconfdir=..." to change it. 1226 (For backwards compatibility, .sysless in bin is still recognized.) 1227 1228* Pressing RightArrow or LeftArrow while entering a number now shifts 1229 the display N columns rather than editing the number itself. 1230 1231* Status column (enabled with -J) now shows search results. 1232 1233* Windows version sets window title. 1234 1235* Default LESSCHARSET for MS-DOS versions is now "dos". 1236 1237* Searching works better with ANSI (SGR) escape sequences. 1238 ANSI color escape sequences are now supported in the MS-DOS (DJGPP) version. 1239 1240* Improved performance in reading very large pipes. 1241 1242* Eliminated some dependencies on file offsets being 32 bits. 1243 1244* Fixed problems when viewing files with very long lines. 1245 1246* Fixed overstriking in UTF-8 mode, and overstriking tabs. 1247 1248* Improved horizontal shifting of text using -R option with ANSI color. 1249 1250* Improved handling of filenames containing shell metacharacters. 1251 1252* Some fixes for EBCDIC systems. 1253 1254* Some fixes for OS/2 systems. 1255 1256====================================================================== 1257 1258 Major changes between "less" versions 354 and 358 1259 1260* Add -J (--status-column) option to display a status column. 1261 1262* Add -# (--shift) option to set default horizontal shift distance. 1263 Default horizontal shift distance is now one-half screen width. 1264 1265* Horizontal shifting does not shift line numbers if -N is in effect. 1266 1267* Horizontal shifting acts as though -S were set, to avoid confusion. 1268 1269====================================================================== 1270 1271 1272 Major changes between "less" versions 352 and 354 1273 1274* Allow space after numeric-valued command line options. 1275 1276* Fix problem with configuring terminal libraries on some systems. 1277 1278* Add support for PCRE regular expression library. 1279 1280* Add --with-regex option to configure to allow manually selecting 1281 a regular expression library. 1282 1283* Fix bug compiling with SECURE = 1. 1284 1285====================================================================== 1286 1287 1288 Major changes between "less" versions 346 and 352 1289 1290* Enable UTF-8 if "UTF-8" appears in locale-related environment variables. 1291 1292* Add --with-editor option to configure script. 1293 1294* The -M prompt and = message now show the top and bottom line number. 1295 1296* Fix bug in running the editor on a file whose name contains quotes, etc. 1297 1298* Fix bug in horizontal scrolling of long lines. 1299 1300* Fix bug in doing :d on a file which contains marks. 1301 1302* Fix bug causing cleared lines to sometimes be filled with standout, 1303 bold, underline, etc. on certain terminals. 1304 1305* Fixes for MS-DOS (DJGPP) version. 1306 1307====================================================================== 1308 1309 1310 Major changes between "less" versions 340 and 346 1311 1312* The UTF-8 character set is now supported. 1313 1314* The default character set is now latin1 rather than ascii. 1315 1316* New option -R (--RAW-CONTROL-CHARS) is like -r but handles 1317 long (wrapped) lines correctly, as long as the input contains only 1318 normal text and ANSI color escape sequences. 1319 1320* New option -F (--quit-if-one-screen) quits if the text fits on 1321 the first screen. 1322 1323* The -w option now highlights the target line of a g or p command. 1324 1325* A system-wide lesskey file is supported (LESSKEY_SYSTEM). 1326 1327* New escape for prompt strings: %c is replaced by column number. 1328 1329* New escape for prompt strings: %P is replaced by percentage into 1330 file, based on line number rather than byte offset. 1331 1332* HOME and END keys now jump to beginning of file or end of file. 1333 1334====================================================================== 1335 1336 1337 Major changes between "less" versions 337 and 340 1338 1339* Command line options for less may now be given in either the old 1340 single-letter form, or a new long name form (--option-name). 1341 See the less man page or "less --help" for the list of long option names. 1342 1343* Command line options for lesskey may now be given in a new long name 1344 form. See the lesskey man page for the list of long option names. 1345 1346* New command -- toggles an option using the long option name. 1347 1348* New command __ queries an option using the long option name. 1349 1350* The old -- command is renamed as -!. 1351 1352* If a ^P is entered between the dash and the option letter of the - 1353 command, the message describing the new setting is suppressed. 1354 1355* Lesskey files may now contain \k escape sequences to represent the 1356 "special" keys (arrows, PAGE-UP/PAGE-DOWN, HOME, END, INSERT, DELETE). 1357 1358* New command :d removes the current file from the list of files. 1359 1360* New option -~ (like -w before version 335) 1361 suppresses tildes after end-of-file. 1362 1363* Less is now released under the GNU General Public License. 1364 1365====================================================================== 1366 1367 1368 Major changes between "less" versions 335 and 337 1369 1370* Fixed bugs in "make install". 1371 1372====================================================================== 1373 1374 1375 Major changes between "less" versions 332 and 335 1376 1377* The old -w flag (suppress tildes after end-of-file) has been removed. 1378 1379* New -w flag highlights the first new line after a forward-screen. 1380 1381* New -W flag highlights the first new line after any forward movement. 1382 1383* Window resize works even if LINES and/or COLUMNS environment 1384 variables are incorrect. 1385 1386* New percent escapes for prompt strings: 1387 %d is replaced by the page number, and 1388 %D is replaced by the number of pages in the file. 1389 1390* Added charsets "iso8859" and "ebcdic". 1391 1392* In Windows version, uses HOMEDRIVE and HOMEPATH if HOME is not defined. 1393 1394* Fixed some bugs causing incorrect display on DOS/Windows. 1395 1396====================================================================== 1397 1398 1399 Major changes between "less" versions 330 and 332 1400 1401* Filenames from the command line are entered into the command history, 1402 so UPARROW/DOWNARROW can be used to retrieve them from the :e command. 1403 1404* Now works correctly on Windows when using a scrolling terminal 1405 window (buffer larger than display window). 1406 1407* On Windows, now restores the console screen on exit. 1408 Use -X to get the old behavior. 1409 1410* Fixed bug on Windows when CAPS-LOCK or NUM-LOCK is pressed. 1411 1412* Fixed bug on Windows when piping output of an interactive program. 1413 1414* Fixed bug in tags file processing when tags file has DOS-style 1415 line terminators (CR/LF). 1416 1417* Fixed compilation problem on OS/2. 1418 1419====================================================================== 1420 1421 1422 Major changes between "less" versions 321 and 330 1423 1424* Now supports filenames containing spaces (in double quotes). 1425 New option -" can be used to change the quoting characters. 1426 1427* In filename completion, a slash is appended to a directory name. 1428 If the environment variable LESSSEPARATOR is set, the value of 1429 that variable, rather than a slash, is appended. 1430 1431* LeftArrow and RightArrow are same as ESC-[ and ESC-]. 1432 1433* Added commands ESC-( and ESC-), same as ESC-[ and ESC-]. 1434 1435* A "quit" command defined in a lesskey file may now have an "extra" 1436 string, which is used to return an exit code from less when it quits. 1437 1438* New environment variables LESSMETACHARS and LESSMETAESCAPE provide 1439 more control over how less interfaces to the shell. 1440 1441* Ported to Microsoft Visual C compiler for Windows. 1442 1443* Ported to DJGPP compiler for MS-DOS. 1444 1445* Bug fixes. 1446 1447====================================================================== 1448 1449 1450 Major changes between "less" versions 291 and 321 1451 1452* Command line at bottom of screen now scrolls, so it can be longer 1453 than the screen width. 1454 1455* New commands ESC-] and ESC-[ scroll the display horizontally. 1456 1457* New command ESC-SPACE scrolls forward a full screen, even if it 1458 hits end-of-file. 1459 1460* Alternate modifiers for search commands: ^N is same as !, 1461 ^F is same as @, and ^E is same as *. 1462 1463* New modifier for search commands: ^K means highlight the matches 1464 currently on-screen, but don't move to the first match. 1465 1466* New modifier for search commands: ^R means don't use regular 1467 expressions in the search. 1468 1469* Environment variable LESSKEY gives name of default lesskey file. 1470 1471* Environment variable LESSSECURE will force less to run in 1472 "secure" mode. 1473 1474* Command line argument "--" signals that the rest of the arguments 1475 are files (not option flags). 1476 1477* Help file (less.hlp) is no longer installed. Help text is now 1478 embedded in the less executable itself. 1479 1480* Added -Ph to change the prompt for the help text. 1481 Added -Ps to change the default short prompt (same as plain -P). 1482 1483* Ported to the Borland C compiler for MS-DOS. 1484 1485* Ported to Windows 95 & Windows NT. 1486 1487* Ported to OS-9. 1488 1489* Ported to GNU Hurd. 1490 1491====================================================================== 1492 1493 1494 Major changes between "less" versions 290 and 291 1495 1496* Less environment variables can be specified in lesskey files. 1497 1498* Fixed MS-DOS build. 1499 1500====================================================================== 1501 1502 1503 Major changes between "less" versions 278 and 290 1504 1505* Accepts GNU-style options "--help" and "--version". 1506 1507* OS/2 version looks for less.ini in $HOME before $INIT and $PATH. 1508 1509* Bug fixes 1510 1511====================================================================== 1512 1513 1514 Major changes between "less" versions 252 and 278 1515 1516* A LESSOPEN preprocessor may now pipe the converted file data to less, 1517 rather than writing it to a temporary file. 1518 1519* Search pattern highlighting has been fixed. It now highlights 1520 reliably, even if a string is split across two screen lines, 1521 contains TABs, etc. 1522 1523* The -F flag (which suppress search highlighting) has been changed 1524 to -G. A new flag, -g, changes search highlighting to highlight 1525 only the string found by the last search command, instead of all 1526 strings which match the last search command. 1527 1528* New flag -I acts like -i, but ignores case even if the search 1529 pattern contains uppercase letters. 1530 1531* Less now checks for the environment variable VISUAL before EDITOR. 1532 1533* Ported to OS/2. 1534 1535====================================================================== 1536 1537 1538 Major changes between "less" versions 237 and 252 1539 1540* Changes in line-editing keys: 1541 The literal key is now ^V or ^A rather than \ (backslash). 1542 Filename completion commands (TAB and ^L) are disabled 1543 when typing a search pattern. 1544 1545* Line-editing command keys can be redefined using lesskey. 1546 1547* Lesskey with no input file defaults to $HOME/.lesskey 1548 rather than standard input. 1549 1550* New option -V displays version number of less. 1551 1552* New option -V displays version number of lesskey. 1553 1554* Help file less.hlp is now installed by default in /usr/local/share 1555 rather than /usr/local/lib. 1556 1557 1558====================================================================== 1559 1560 1561 Major changes between "less" versions 170 and 237 1562 1563* By popular demand, text which matches the current search pattern 1564 is highlighted. New -F flag disables this feature. 1565 1566* Henry Spencer's regexp.c is now included, for systems which do not 1567 have a regular expression library. 1568 regexp.c is Copyright (c) 1986 by University of Toronto. 1569 1570* New line-editing keys, including command history (arrow keys) and 1571 filename completion (TAB). 1572 1573* Input preprocessor allows modification of input files (e.g. uncompress) 1574 via LESSOPEN/LESSCLOSE environment variables. 1575 1576* New -X flag disables sending termcap "ti" and "te" (initialize and 1577 deinitialize) strings to the terminal. 1578 1579* Changing -i from within less now correctly affects a subsequent 1580 repeated search. 1581 1582* Searching for underlined or overstruck text now works when the -u 1583 flag is in effect, rather than the -i flag. 1584 1585* Use setlocale (LANG and LC_CTYPE environment variables) to determine 1586 the character set if LESSCHARSET/LESSCHARDEF are not set. 1587 1588* The default format for displaying binary characters is now standout 1589 (reverse video) rather than blinking. This can still be changed by 1590 setting the LESSBINFMT environment variable. 1591 1592* Use autoconf installation technology. 1593 1594* Ported to MS-DOS. 1595 1596 ******************************** 1597 Things that may surprise you 1598 ******************************** 1599 1600* When you enter text at the bottom of the screen (search string, 1601 filename, etc.), some keys act different than previously. 1602 Specifically, \ (backslash), ESC, TAB, BACKTAB, and control-L 1603 now have line editing functions. 1604 1605* Some previous unofficial versions of less were able to display 1606 compressed files. The new LESSOPEN/LESSCLOSE feature now provides 1607 this functionality in a different way. 1608 1609* Some previous unofficial versions of less provided a -Z flag to 1610 set the number of lines of text to retain between full screen scrolls. 1611 The -z-n flag (that is, -z with a negative number) provides this 1612 functionality. 1613 1614 1615====================================================================== 1616 1617 1618 Major changes between "less" versions 123 and 170 1619 1620* New option -j allows target lines to be positioned anywhere on screen. 1621 1622* New option -S truncates displayed line at the screen width, 1623 rather than wrapping onto the next line. 1624 1625* New option -y limits amount of forward scroll. 1626 1627* New option -T specifies a "tags" file. 1628 1629* Non-printable, non-control characters are displayed in octal. 1630 Such characters, as well as control characters, are displayed 1631 in blinking mode. 1632 1633* New command -+ sets an option to its default. 1634* New command -- sets an option to the opposite of its default. 1635 1636* Lesskey file may have a string appended to a key's action, 1637 which acts as though typed in after the command. 1638 1639* New commands ESC-^F and ESC-^B match arbitrary types of brackets. 1640 1641* New command F monitors a growing file (like "tail -f"). 1642 1643* New command | pipes a section of the input file into a shell command. 1644 1645* New command :x directly jumps to a file in the command line list. 1646 1647* Search commands have been enhanced and reorganized: 1648 n Repeat search, same direction. 1649 N Repeat search, opposite direction. 1650 ESC-/ Search forward thru file boundaries 1651 ESC-? Search backward thru file boundaries 1652 ESC-n Repeat search thru file boundaries, same direction. 1653 ESC-N Repeat search thru file boundaries, opposite direction. 1654 Special character * causes search to search thru file boundaries. 1655 Special character @ causes search to begin at start/end of file list. 1656 1657* Examining a new file adds it to the command line list. 1658 A list of files, or an expression which matches more than one file, 1659 may be examined; all of them are added to the command line list. 1660 1661* Environment variables LESSCHARSET and LESSCHARDEF can define 1662 a non-ASCII character set. 1663 1664* Partial support for MSDOS, including options -R for repainting screen 1665 on quit, -v/-V to select video mode, and -W to change window size. 1666 1667 1668====================================================================== 1669 1670 1671 Major changes between "less" versions 97 and 123 1672 1673* New option (-N) causes line numbers to be displayed in the 1674 text of the file (like vi "set nu"). 1675 1676* New option (-?) prints help message immediately. 1677 1678* New option (-r) displays "raw" control characters, without 1679 mapping them to ^X notation. 1680 1681* New option (-f) forces less to open non-regular files 1682 (directories, etc). 1683 1684* New option (-k) can be used to specify lesskey files by name. 1685 1686* New option (-y) can be used to set a forward scroll limit 1687 (like -h sets a backward scroll limit). 1688 1689* File marks (set by the m command) are now preserved when a new 1690 file is edited. The ' command can thus be used to switch files. 1691 1692* New command ESC-/ searches all files (on the command line) 1693 for a pattern. 1694 1695* New command ESC-n repeats previous search, spanning files. 1696 1697* The N command has been changed to repeat the previous search 1698 in the reverse direction. The old N command is still available 1699 via :n. 1700 1701* New command ESC-N repeats previous search in the reverse 1702 direction and spanning files. 1703 1704* 8 bit characters are now supported. A new option (-g) can be 1705 used to strip off the eighth bit (the previous behavior). 1706 1707* Options which take a following string (like -t) may now 1708 optionally have a space between the option letter and the string. 1709 1710* Six new commands { } ( ) [ and ] can be used to match 1711 brackets of specific types, similar to vi % command. 1712 1713* New commands z and w move forward/backward one window and 1714 simultaneously set the window size. 1715 1716* Prompt string expansion now has %L for line number of the last 1717 line in the file, and %E for the name of the editor. 1718 Also, % escapes which refer to a line (b=bottom, t=top, etc.) 1719 can use j for the jump target line. 1720 1721* New environment variable LESSEDIT can be used to tailor the 1722 command string passed to the editor by the v command. 1723 1724* Examining a file which was previously examined will return 1725 to the same position in the file. 1726 1727* A "%" is expanded to the current filename and a "#" to the 1728 previous filename, in both shell commands and the E command. 1729 (Previously % worked only in shell commands and # worked 1730 only in the E command.) 1731 1732* New command ":ta" is equivalent to "-t". 1733 1734* New command "s" is equivalent to "-l". 1735 1736* The - command may be followed by "+X" to revert to the default 1737 for option X, or "-X" to get the opposite of the default. 1738 1739* Lesskey files may now include characters after the action as 1740 extra input to be parsed after the action; for example: 1741 "toggle-option X" to toggle a specific option X. 1742 1743 1744 1745 1746 1747