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