1a5f0fb15SPaul Saab 2a5f0fb15SPaul Saab NEWS about less 3a5f0fb15SPaul Saab 4a5f0fb15SPaul Saab====================================================================== 5a5f0fb15SPaul Saab 630a1828cSXin LI For the latest news about less, see https://greenwoodsoftware.com/less 7a5f0fb15SPaul Saab You can also download the latest version of less from there. 8a5f0fb15SPaul Saab 92235c7feSXin LI Report bugs, suggestions or comments at 102235c7feSXin LI https://github.com/gwsw/less/issues. 112235c7feSXin LI 122235c7feSXin LI====================================================================== 132235c7feSXin LI 14*f80a33eaSXin LI Major changes between "less" versions 633 and 643 15*f80a33eaSXin LI 16*f80a33eaSXin LI* Fix problem when a program piping into less reads from the tty, 17*f80a33eaSXin LI like sudo asking for password (github #368). 18*f80a33eaSXin LI 19*f80a33eaSXin LI* Fix search modifier ^E after ^W. 20*f80a33eaSXin LI 21*f80a33eaSXin LI* Fix bug using negated (^N) search (github #374). 22*f80a33eaSXin LI 23*f80a33eaSXin LI* Fix bug setting colors with -D on Windows build (github #386). 24*f80a33eaSXin LI 25*f80a33eaSXin LI* Fix reading special chars like PageDown on Windows (github #378). 26*f80a33eaSXin LI 27*f80a33eaSXin LI* Fix mouse wheel scrolling on Windows (github #379). 28*f80a33eaSXin LI 29*f80a33eaSXin LI* Fix erroneous EOF when terminal window size changes (github #372). 30*f80a33eaSXin LI 31*f80a33eaSXin LI* Fix compile error with some definitions of ECHONL (github #395). 32*f80a33eaSXin LI 33*f80a33eaSXin LI* Fix crash on Windows when writing logfile (github #405). 34*f80a33eaSXin LI 35*f80a33eaSXin LI* Fix regression in exit code when stdin is /dev/null and 36*f80a33eaSXin LI output is a file (github #373). 37*f80a33eaSXin LI 38*f80a33eaSXin LI* Add lesstest test suite to production release (github #344). 39*f80a33eaSXin LI 40*f80a33eaSXin LI* Change lesstest output to conform with 41*f80a33eaSXin LI automake Simple Test Format (github #399). 42*f80a33eaSXin LI 43*f80a33eaSXin LI====================================================================== 44*f80a33eaSXin LI 45*f80a33eaSXin LI Major changes between "less" versions 632 and 633 46*f80a33eaSXin LI 47*f80a33eaSXin LI* Fix build on systems which have ncurses/termcap.h or 48*f80a33eaSXin LI ncursesw/termcap.h but not termcap.h. 49*f80a33eaSXin LI 50*f80a33eaSXin LI====================================================================== 51*f80a33eaSXin LI 52d713e089SXin LI Major changes between "less" versions 608 and 632 53d713e089SXin LI 54d713e089SXin LI* Add LESSUTFCHARDEF environment variable (github #275). 55d713e089SXin LI 56d713e089SXin LI* Add # command (github #330). 57d713e089SXin LI 58d713e089SXin LI* Add ^S search modifier (github #196). 59d713e089SXin LI 60d713e089SXin LI* Add --wordwrap option (github #113). 61d713e089SXin LI 62d713e089SXin LI* Add --no-vbell option (github #304). 63d713e089SXin LI 64d713e089SXin LI* Add --no-search-headers option (github #44). 65d713e089SXin LI 66d713e089SXin LI* Add --modelines option (github #89). 67d713e089SXin LI 68d713e089SXin LI* Add --intr option (github #224). 69d713e089SXin LI 70d713e089SXin LI* Add --proc-backspace, --proc-tab and --proc-return options (github #335). 71d713e089SXin LI 72d713e089SXin LI* Add --show-preproc-errors option (github #258). 73d713e089SXin LI 74d713e089SXin LI* Add LESS_LINES and LESS_COLUMNS environment variables (github #84). 75d713e089SXin LI 76d713e089SXin LI* Add LESS_DATA_DELAY environment variable (github #337). 77d713e089SXin LI 78d713e089SXin LI* Allow empty "lines" field in --header option. 79d713e089SXin LI 80d713e089SXin LI* Update Unicode tables. 81d713e089SXin LI 82d713e089SXin LI* Improve ability of ^X to interrupt F command (github #49). 83d713e089SXin LI 84d713e089SXin LI* Status column (-J) shows off-screen matches. 85d713e089SXin LI 86d713e089SXin LI* Parenthesized sub-patterns in searches are colored with unique colors, 87d713e089SXin LI if supported by the regular expression library (github #196). 88d713e089SXin LI 89d713e089SXin LI* Don't allow opening a tty as file input unless -f is set (github #309). 90d713e089SXin LI 91d713e089SXin LI* Don't require newline input after +&... option (github #339). 92d713e089SXin LI 93d713e089SXin LI* Fix incorrect handling of some Private Use Unicode characters. 94d713e089SXin LI 95d713e089SXin LI* Fix ANSI color bug when overstriking with colored chars (github #276). 96d713e089SXin LI 97d713e089SXin LI* Fix compiler const warning (github #279). 98d713e089SXin LI 99d713e089SXin LI* Fix signal race in iread (github #280). 100d713e089SXin LI 101d713e089SXin LI* Fix reading procfs files on Linux (github #282). 102d713e089SXin LI 103d713e089SXin LI* Fix --ignore-case with ctrl-R (no regex) search (github #300). 104d713e089SXin LI 105d713e089SXin LI* Fix bug doing repeat search after setting & filter (github #299). 106d713e089SXin LI 107d713e089SXin LI* Fix bug doing repeat search before non-repeat search. 108d713e089SXin LI 109d713e089SXin LI* Fix crash with -R and certain line lengths (github #338). 110d713e089SXin LI 111d713e089SXin LI* Fix input of Windows dead keys (github #352). 112d713e089SXin LI 113d713e089SXin LI* Don't retain search options from a cancelled search (github #302). 114d713e089SXin LI 115d713e089SXin LI* Don't call realpath on fake filenames like "-" (github #289). 116d713e089SXin LI 117d713e089SXin LI* Implement lesstest test suite. 118d713e089SXin LI 119d713e089SXin LI* Convert function parameter definitions from K&R to C89 (github #316). 120d713e089SXin LI 121d713e089SXin LI====================================================================== 122d713e089SXin LI 12395270f73SXin LI Major changes between "less" versions 590 and 608 12495270f73SXin LI 12595270f73SXin LI* Add the --header option (github #43). 12695270f73SXin LI 12795270f73SXin LI* Add the --no-number-headers option (github #178). 12895270f73SXin LI 12995270f73SXin LI* Add the --status-line option. 13095270f73SXin LI 13195270f73SXin LI* Add the --redraw-on-quit option (github #36). 13295270f73SXin LI 13395270f73SXin LI* Add the --search-options option (github #213). 13495270f73SXin LI 13595270f73SXin LI* Add the --exit-follow-on-close option (github #244). 13695270f73SXin LI 13795270f73SXin LI* Add 'H' color type to set color of header lines. 13895270f73SXin LI 13995270f73SXin LI* Add #version conditional to lesskey. 14095270f73SXin LI 14195270f73SXin LI* Add += syntax to variable section in lesskey files. 14295270f73SXin LI 14395270f73SXin LI* Allow option name in -- command to end with '=' in addition to '\n'. 14495270f73SXin LI 14595270f73SXin LI* Add $HOME/.config to possible locations of lesskey file (github #153). 14695270f73SXin LI 14795270f73SXin LI* Add $XDG_STATE_HOME and $HOME/.local/state to possible locations 14895270f73SXin LI of history file (github #223). 14995270f73SXin LI 15095270f73SXin LI* Don't read or write history file in secure mode (github #201). 15195270f73SXin LI 15295270f73SXin LI* Fix display of multibyte and double-width chars in prompt. 15395270f73SXin LI 15495270f73SXin LI* Fix ESC-BACKSPACE command when BACKSPACE key does not send 0x08 15595270f73SXin LI (github #188). 15695270f73SXin LI 15795270f73SXin LI* Add more \k codes to lesskey format. 15895270f73SXin LI 15995270f73SXin LI* Fix bug when empty file is modified while viewing it. 16095270f73SXin LI 16195270f73SXin LI* Fix bug when parsing a malformed lesskey file (githb #234). 16295270f73SXin LI 16395270f73SXin LI* Fix bug scrolling history when --incsearch is set (github #214). 16495270f73SXin LI 16595270f73SXin LI* Fix buffer overflow when invoking lessecho with more than 63 -m/-n 16695270f73SXin LI options (github #198). 16795270f73SXin LI 16895270f73SXin LI* Fix buffer overflow in bin_file (github #271). 16995270f73SXin LI 17095270f73SXin LI* Fix bug restoring color at end of highlighted text. 17195270f73SXin LI 17295270f73SXin LI* Fix bug in parsing lesskey file. 17395270f73SXin LI 17495270f73SXin LI* Defer moving cursor to lower left in some more cases. 17595270f73SXin LI 17695270f73SXin LI* Suppress TAB filename expansion in some cases where it doesn't make sense. 17795270f73SXin LI 17895270f73SXin LI* Fix termlib detection when compiler doesn't accept 17995270f73SXin LI calls to undeclared functions. 18095270f73SXin LI 18195270f73SXin LI* Fix bug in input of non-ASCII characters on Windows (github #247) 18295270f73SXin LI 18395270f73SXin LI* Escape filenames when invoking LESSCLOSE. 18495270f73SXin LI 18595270f73SXin LI* Fix bug using multibyte UTF-8 char in search string 18695270f73SXin LI with --incsearch (github #273). 18795270f73SXin LI 18895270f73SXin LI====================================================================== 18995270f73SXin LI 19030a1828cSXin LI Major changes between "less" versions 581 and 590 19130a1828cSXin LI 19230a1828cSXin LI* Make less able to read lesskey source files (deprecating lesskey). 19330a1828cSXin LI 19430a1828cSXin LI* If XDG_CONFIG_HOME is set, find lesskey source file 19530a1828cSXin LI in $XDG_CONFIG_HOME/lesskey rather than $HOME/.lesskey. 19630a1828cSXin LI 19730a1828cSXin LI* If XDG_DATA_HOME is set, find and store history file 19830a1828cSXin LI in $XDG_DATA_HOME/lesshst rather than $HOME/.lesshst. 19930a1828cSXin LI 20030a1828cSXin LI* Add the --lesskey-src option. 20130a1828cSXin LI 20230a1828cSXin LI* Add the --file-size option. 20330a1828cSXin LI 20430a1828cSXin LI* With -F, if screen is resized to make file fit on one screen, don't exit. 20530a1828cSXin LI 20630a1828cSXin LI* Fix bug which could leave terminal in mouse-reporting mode 20730a1828cSXin LI after exiting less. 20830a1828cSXin LI 20930a1828cSXin LI* Fix bug which caused failure to respond to window resize. 21030a1828cSXin LI 21130a1828cSXin LI* Fix backslash bug searching in tag file. 21230a1828cSXin LI 21330a1828cSXin LI====================================================================== 21430a1828cSXin LI 21530a1828cSXin LI Major changes between "less" versions 563 and 581 2162235c7feSXin LI 2172235c7feSXin LI* Change ESC-u command to toggle, not disable, highlighting per man page. 2182235c7feSXin LI 2192235c7feSXin LI* Add ESC-U command. 2202235c7feSXin LI 2212235c7feSXin LI* Add ctrl-W search modifier for wrapping search. 2222235c7feSXin LI 2232235c7feSXin LI* F command can be interrupted by ^X. 2242235c7feSXin LI 2252235c7feSXin LI* Support OSC 8 hyperlinks when -R is in effect. 2262235c7feSXin LI 2272235c7feSXin LI* g command with no number will ignore -j and put first line at top of screen. 2282235c7feSXin LI 2292235c7feSXin LI* Multiple + or -p command line options are handled better. 2302235c7feSXin LI 2312235c7feSXin LI* Add the --incsearch option. 2322235c7feSXin LI 2332235c7feSXin LI* Add the --line-num-width option. 2342235c7feSXin LI 2352235c7feSXin LI* Add the --status-col-width option. 2362235c7feSXin LI 2372235c7feSXin LI* Add the --use-color and --color options. 2382235c7feSXin LI 2392235c7feSXin LI* Display -w highlight even if highlighted line is empty. 2402235c7feSXin LI 2412235c7feSXin LI* If search result is in a long line, scroll to ensure it is visible. 2422235c7feSXin LI 2432235c7feSXin LI* Editing the same file under different names now creates only 2442235c7feSXin LI one entry in the file list. 2452235c7feSXin LI 2462235c7feSXin LI* Make visual bell more visible on some terminals. 2472235c7feSXin LI 2482235c7feSXin LI* Ring end-of-file bell no more than once per second. 2492235c7feSXin LI 2502235c7feSXin LI* Build can use either Python or Perl for Makefile.aut operations. 2512235c7feSXin LI 2522235c7feSXin LI* Fix crash when using the @ search modifier. 2532235c7feSXin LI 2542235c7feSXin LI* Fix crash in the 's' command due to duplicate free. 2552235c7feSXin LI 2562235c7feSXin LI* Fix realpath crash on Darwin. 257a15691bfSXin LI 258a15691bfSXin LI====================================================================== 259a15691bfSXin LI 2606f26c71dSXin LI Major changes between "less" versions 551 and 563 2616f26c71dSXin LI 2626f26c71dSXin LI* Update Unicode tables. 2636f26c71dSXin LI 2646f26c71dSXin LI* Treat Hangul Jamo medial vowels and final consonants as zero width. 2656f26c71dSXin LI 2666f26c71dSXin LI* Display error message immediately when -o is toggled and 2676f26c71dSXin LI input is not a pipe. 2686f26c71dSXin LI 2696f26c71dSXin LI* Fix regression: make screen repaint when "squished" and 2706f26c71dSXin LI a no-movement command is given. 2716f26c71dSXin LI 2726f26c71dSXin LI* Fix erroneous EOF calculation when F command is interrupted. 2736f26c71dSXin LI 2746f26c71dSXin LI* Make WIN32C version include this fix from 551: 2756f26c71dSXin LI Don't count lines in initial screen if using -X with -F. 2766f26c71dSXin LI 2776f26c71dSXin LI* Fix display bug in WIN32C version. 2786f26c71dSXin LI 2796f26c71dSXin LI* Fix memory corruption when built with libtermcap. 2806f26c71dSXin LI 2816f26c71dSXin LI* Support libtinfow. 2826f26c71dSXin LI 2836f26c71dSXin LI====================================================================== 2846f26c71dSXin LI 285b7780dbeSXin LI Major changes between "less" versions 530 and 551 286b7780dbeSXin LI 287b7780dbeSXin LI* Add --mouse option. 288b7780dbeSXin LI 289b7780dbeSXin LI* Add --wheel-lines option. 290b7780dbeSXin LI 291b7780dbeSXin LI* Add --no-histdups option. 292b7780dbeSXin LI 293b7780dbeSXin LI* Add --save-marks option. 294b7780dbeSXin LI 295b7780dbeSXin LI* Support PCRE2 regular expression library. 296b7780dbeSXin LI 297b7780dbeSXin LI* Redraw screen on SIGWINCH even if screen size doesn't change. 298b7780dbeSXin LI 299b7780dbeSXin LI* Shell-escape filenames in history so they can be used again. 300b7780dbeSXin LI 301b7780dbeSXin LI* Ring bell if user enters invalid long option name. 302b7780dbeSXin LI 303b7780dbeSXin LI* Use PCRE_UTF8 flag for pcre regular expressions when in UTF-8 mode. 304b7780dbeSXin LI 305b7780dbeSXin LI* Windows: use wide-char string to set console title. 306b7780dbeSXin LI 307b7780dbeSXin LI* Don't count lines in initial screen if using -X with -F. 308b7780dbeSXin LI 309b7780dbeSXin LI* Support mingw build system. 310b7780dbeSXin LI 311b7780dbeSXin LI* Fix bug in v command on empty file. 312b7780dbeSXin LI 313b7780dbeSXin LI* Fix bug in v command when filename contains shell metacharacters. 314b7780dbeSXin LI 315b7780dbeSXin LI====================================================================== 316b7780dbeSXin LI 31774709ed0SXin LI Major changes between "less" versions 487 and 530 318f6b74a7dSXin LI 319f6b74a7dSXin LI* Don't output terminal init sequence if using -F and file fits on one screen. 320f6b74a7dSXin LI 321b2ea2440SXin LI* When using -S, mark truncated lines with a special character. 322b2ea2440SXin LI The character can be changed or disabled via the new --rscroll option. 323f6b74a7dSXin LI 324b2ea2440SXin LI* New command M marks the last line displayed on the screen. 325f6b74a7dSXin LI 326b2ea2440SXin LI* New command ESC-m removes a line mark. 327b2ea2440SXin LI 328b2ea2440SXin LI* Status column (enabled via -J) now shows mark letters. 329b2ea2440SXin LI 330b2ea2440SXin LI* Status column shows search matches even if highlighting is disabled via -G. 331b2ea2440SXin LI 332b2ea2440SXin LI* A second ESC-u command will clear search match markers in the status column. 333b2ea2440SXin LI 334b2ea2440SXin LI* Do same ANSI escape code filtering for tag matching that we do for 335b2ea2440SXin LI searching, to help when viewing syntax-highlighted code. 336b2ea2440SXin LI 337b2ea2440SXin LI* Catch SIGTERM and clean up before exiting. 338b2ea2440SXin LI 339b2ea2440SXin LI* Fix bug initializing default charset on Windows. 340b2ea2440SXin LI 341b2ea2440SXin LI* Handle keypad ENTER key correctly if it sends something other than newline. 342b2ea2440SXin LI 343b2ea2440SXin LI* Fix buffering bug when using stdin with a LESSOPEN pipe. 344b2ea2440SXin LI 345b2ea2440SXin LI* On Windows, allow 'u' in -D option to enable underlining. 346b2ea2440SXin LI 347b2ea2440SXin LI* On Windows, use underline in sgr mode. 348b2ea2440SXin LI 349b2ea2440SXin LI* On Windows, convert UTF-8 to multibyte if console is not UTF-8. 350b2ea2440SXin LI 351b2ea2440SXin LI* Update Unicode tables to 2017-03-08. 352b2ea2440SXin LI 353d713e089SXin LI* Pass-thru Unicode formatting chars (Cf type) instead of treating them 354b2ea2440SXin LI as binary chars. But treat them as binary if -U is set. 355b2ea2440SXin LI 356b2ea2440SXin LI* Fix erroneous binary file warning when UTF-8 file contains ANSI SGR sequences. 357b2ea2440SXin LI 358b2ea2440SXin LI* Fix bugs when using LESSOPEN and switching between stdin and other files. 359b2ea2440SXin LI 360b2ea2440SXin LI* Fix some bugs handling filenames containing shell metacharacters. 361f6b74a7dSXin LI 362f6b74a7dSXin LI* Fix some memory leaks. 363f6b74a7dSXin LI 364b2ea2440SXin LI* Allow some debugging environment variables to be set in lesskey file. 365b2ea2440SXin LI 366b2ea2440SXin LI* Code improvements: 367b2ea2440SXin LI . Use ANSI prototypes in funcs.h declarations. 368b2ea2440SXin LI . Fix some const mismatches. 369b2ea2440SXin LI . Remove archaic "register" in variable declarations. 370b2ea2440SXin LI 371f6b74a7dSXin LI====================================================================== 372f6b74a7dSXin LI 373f6b74a7dSXin LI Major changes between "less" versions 481 and 487 374f6b74a7dSXin LI 375f6b74a7dSXin LI* New commands ESC-{ and ESC-} to shift to start/end of displayed lines. 376f6b74a7dSXin LI 377f6b74a7dSXin LI* Make search highlights work correctly when changing caselessness with -i. 378f6b74a7dSXin LI 379f6b74a7dSXin LI* New option -Da in Windows version to enable SGR mode. 380f6b74a7dSXin LI 381f6b74a7dSXin LI* Fix "nothing to search" error when top or bottom line on screen is empty. 382f6b74a7dSXin LI 383f6b74a7dSXin LI* Fix bug when terminal has no "cm" termcap entry. 384f6b74a7dSXin LI 385f6b74a7dSXin LI* Fix incorrect display when entering double-width chars in search string. 386f6b74a7dSXin LI 387f6b74a7dSXin LI* Fix bug in Unicode handling that missed some double width characters. 388f6b74a7dSXin LI 389f6b74a7dSXin LI* Update Unicode database to 9.0.0. 390f6b74a7dSXin LI 391f6b74a7dSXin LI====================================================================== 392f6b74a7dSXin LI 393a15691bfSXin LI Major changes between "less" versions 458 and 481 394a15691bfSXin LI 395a15691bfSXin LI* Don't overwrite history file; just append to it. 396a15691bfSXin LI 397a15691bfSXin LI* New command ESC-G goes to end of currently buffered data in a pipe. 398a15691bfSXin LI 399a15691bfSXin LI* Disable history feature when compiled with LESSHISTFILE set to "-". 400a15691bfSXin LI 401a15691bfSXin LI* In more-compatible mode, make the -p option apply to every file opened, 402a15691bfSXin LI not just the first one. 403a15691bfSXin LI 404a15691bfSXin LI* In more-compatible mode, change the -e option to work like -E, not -EF. 405a15691bfSXin LI 406a15691bfSXin LI* Treat multiple CRs before LF are like one CR (all the CRs are hidden). 407a15691bfSXin LI 408a15691bfSXin LI* Allow "extra" string in lesskey file to append to a multi-char command 409a15691bfSXin LI (like a search pattern), without executing the command. 410a15691bfSXin LI 411a15691bfSXin LI* Ignore -u/-U setting while viewing help file, so that 412a15691bfSXin LI underline and bold chars are displayed correctly. 413a15691bfSXin LI 414a15691bfSXin LI* Improve detection of "binary" files in UTF-8 mode. 415a15691bfSXin LI 416a15691bfSXin LI* Fix bug with ++ commands. 417a15691bfSXin LI 418a15691bfSXin LI* Fix bug where prompt was sometimes not displayed with +G. 419a15691bfSXin LI 420a15691bfSXin LI* Fix possible memory corruption 421a15691bfSXin LI 422a15691bfSXin LI* Fix bugs and improve performance in ampersand filtering. 423a15691bfSXin LI 424a15691bfSXin LI* Automate construction of Unicode tables from Unicode database. 425a15691bfSXin LI 426a15691bfSXin LI* Allow %% escape sequence in LESSOPEN variable. 42796e55cc7SXin LI 42896e55cc7SXin LI====================================================================== 42996e55cc7SXin LI 4307bd2567cSXin LI Major changes between "less" versions 451 and 458 4314cc5fc9aSXin LI 4327bd2567cSXin LI* Allow backslash escaping of metacharacters in LESS environment variable 4337bd2567cSXin LI after the --use-backslash option. 4344cc5fc9aSXin LI 4354cc5fc9aSXin LI* Don't quit if syntax errors are found in command line options. 4364cc5fc9aSXin LI 4374cc5fc9aSXin LI* Increase sizes of some internal buffers. 4384cc5fc9aSXin LI 4394cc5fc9aSXin LI* Fix configure bug with --with-regex=none. 4404cc5fc9aSXin LI 4414cc5fc9aSXin LI* Fix crash with "stty rows 0". 4424cc5fc9aSXin LI 4434cc5fc9aSXin LI* Fix Win32 attribute display bug. 4444cc5fc9aSXin LI 4457bd2567cSXin LI* Fix display bug when using up/down arrow on the command line. 4467bd2567cSXin LI 4474cc5fc9aSXin LI====================================================================== 4484cc5fc9aSXin LI 449e2449719SXin LI Major changes between "less" versions 444 and 451 45096e55cc7SXin LI 45196e55cc7SXin LI* Add ESC-F command to keep reading data until a pattern is found. 45296e55cc7SXin LI 45396e55cc7SXin LI* Use exit code of LESSOPEN script if LESSOPEN starts with "||". 45496e55cc7SXin LI 45596e55cc7SXin LI* When up/down arrow is used on the command line immediately after 45696e55cc7SXin LI typing text, the next command starting with that text is found. 45796e55cc7SXin LI 45896e55cc7SXin LI* Add support for GNU regex. 45996e55cc7SXin LI 46096e55cc7SXin LI* Add configure option --with-regex=none and fix compile errors 46196e55cc7SXin LI when compiling with no regex library. 46296e55cc7SXin LI 46396e55cc7SXin LI* Fix bugs handling SGR sequences in Win32. 46496e55cc7SXin LI 46596e55cc7SXin LI* Fix possible crashes caused by malformed LESSOPEN or 46696e55cc7SXin LI LESSCLOSE variables. 46796e55cc7SXin LI 46896e55cc7SXin LI* Fix bug highlighting text which is discontiguous in the file 46996e55cc7SXin LI due to backspace processing. 47096e55cc7SXin LI 47196e55cc7SXin LI* Fix bug in displaying status column when scrolling backwards 47296e55cc7SXin LI with -J and -S in effect. 473a5f0fb15SPaul Saab 474a5f0fb15SPaul Saab====================================================================== 475a5f0fb15SPaul Saab 476b24bfc5aSXin LI Major changes between "less" versions 443 and 444 477b24bfc5aSXin LI 478b24bfc5aSXin LI* Fix bug in unget handling that can cause strange effects on the 479b24bfc5aSXin LI command line. 480b24bfc5aSXin LI 481b24bfc5aSXin LI* Remove vestiges of obsolete -l option that can cause a crash. 482b24bfc5aSXin LI 483b24bfc5aSXin LI====================================================================== 484b24bfc5aSXin LI 48533096f16SXin LI Major changes between "less" versions 436 and 443 48633096f16SXin LI 48733096f16SXin LI* Change search behavior such that when a search is given an explicit 48833096f16SXin LI pattern, the entire displayed screen is included in the search and 48933096f16SXin LI not just the portion after the target line. 49033096f16SXin LI 49133096f16SXin LI* Add -A option to change search behavior to the old way: only 49233096f16SXin LI the portion of the screen after the target line is searched. 49333096f16SXin LI 49433096f16SXin LI* Add %F formatting to prompt strings, replaced by the last component 49533096f16SXin LI of the input file. 49633096f16SXin LI 49733096f16SXin LI* Control-G while editing a command exits the command. 49833096f16SXin LI 49933096f16SXin LI* Less now exits with status 2 if control-C is pressed and -K is in effect. 50033096f16SXin LI 50133096f16SXin LI* Fix "ungetc overflow" when passing long commands via the -p option. 50233096f16SXin LI 50333096f16SXin LI* Fix bug in using line filtering via the & command 50433096f16SXin LI in combination with -i and -I. 50533096f16SXin LI 50633096f16SXin LI* Fix bug in handling negative arguments to the -j option. 50733096f16SXin LI 50833096f16SXin LI* Fix bug in handling %t in prompt strings. 50933096f16SXin LI 51033096f16SXin LI* Improve handling of long option names. 51133096f16SXin LI 51233096f16SXin LI* Improve percentage calculation for very large files. 51333096f16SXin LI 51433096f16SXin LI====================================================================== 51533096f16SXin LI 516f0be0a1fSXin LI Major changes between "less" versions 429 and 436 517f0be0a1fSXin LI 518f0be0a1fSXin LI* Don't pass "-" to non-pipe LESSOPEN unless it starts with "-". 519f0be0a1fSXin LI 520f0be0a1fSXin LI* Allow a fraction as the argument to the -# (--shift) option. 521f0be0a1fSXin LI 522f0be0a1fSXin LI* Fix highlight bug when underlined/overstruck text matches at end of line. 523f0be0a1fSXin LI 524f0be0a1fSXin LI* Fix non-regex searches with ctrl-R. 525f0be0a1fSXin LI 526f0be0a1fSXin LI====================================================================== 527f0be0a1fSXin LI 5287374caaaSXin LI Major changes between "less" versions 424 and 429 5297374caaaSXin LI 5307374caaaSXin LI* LESSOPEN pipe will now be used on standard input, if the LESSOPEN 5317374caaaSXin LI environment variable begins with "|-". 5327374caaaSXin LI 5337374caaaSXin LI* The -D option with one number now means use the normal background color. 5347374caaaSXin LI 5357374caaaSXin LI* Don't change permissions on history file if it is not a regular file. 5367374caaaSXin LI 5377374caaaSXin LI* Fix non-ANSI-compliant code that caused problems with some compilers. 5387374caaaSXin LI 5397374caaaSXin LI* Fix binary file detection in UTF-8 mode. 5407374caaaSXin LI 5417374caaaSXin LI* Fix display problems with long lines on "ignaw" terminals. 5427374caaaSXin LI 5437374caaaSXin LI* Fix problem interrupting the line number calculation for initial prompt. 5447374caaaSXin LI 545d713e089SXin LI* Fix SGR emulation when dealing with multiple attributes (e.g. bold+underline). 5467374caaaSXin LI 5477374caaaSXin LI* Fix highlight bug when searching for underlined/overstruck text. 5487374caaaSXin LI 5497374caaaSXin LI====================================================================== 5507374caaaSXin LI 5517374caaaSXin LI Major changes between "less" versions 418 and 424 5527374caaaSXin LI 5537374caaaSXin LI* New "&" command allows filtering of lines based on a pattern. 5547374caaaSXin LI 5557374caaaSXin LI* Status column now displays a search match, even if the matched 5567374caaaSXin LI string is scrolled off screen because -S is in effect. 5577374caaaSXin LI 5587374caaaSXin LI* Improve behavior of -F option. 5597374caaaSXin LI 5607374caaaSXin LI* Allow CSI character (0x9B) to work in UTF-8 mode. 5617374caaaSXin LI 5627374caaaSXin LI* Output carriage return at startup in case terminal doesn't default 5637374caaaSXin LI to column 1. 5647374caaaSXin LI 5657374caaaSXin LI* Fix bug in '' (quote, quote) command after G command. 5667374caaaSXin LI 5677374caaaSXin LI====================================================================== 5687374caaaSXin LI 5697374caaaSXin LI Major changes between "less" versions 416 and 418 5707374caaaSXin LI 5717374caaaSXin LI* Color escape sequences are now supported in WIN32 build. 5727374caaaSXin LI 5737374caaaSXin LI* Makefile now uses EXEEXT feature of autoconf. 5747374caaaSXin LI 5757374caaaSXin LI* Fix search bug when using -R and text contains ANSI color escape sequences. 5767374caaaSXin LI 5777374caaaSXin LI* Fix crash when using -r with UTF-8 text containing 0x9B bytes. 5787374caaaSXin LI 5797374caaaSXin LI* Fix display bug when using ' command to move less than one page forward. 5807374caaaSXin LI 5817374caaaSXin LI* Update GPL to version 3. 5827374caaaSXin LI 5837374caaaSXin LI====================================================================== 584a5f0fb15SPaul Saab 58533a9f6abSXin LI Major changes between "less" versions 409 and 416 586464501a8SXin LI 587464501a8SXin LI* New --follow-name option makes F command follow the name of a file 588464501a8SXin LI rather than the file descriptor if an open file is renamed. 589464501a8SXin LI 590464501a8SXin LI* Make searching with -i/-I work correctly with non-ASCII text. 591464501a8SXin LI 592464501a8SXin LI* Fix DJGPP build. 593464501a8SXin LI 594464501a8SXin LI====================================================================== 595464501a8SXin LI 596f78327b5SXin LI Major changes between "less" versions 406 and 409 5971c6a5c10SXin LI 5981c6a5c10SXin LI* Support CSI escape sequences, like SGR escape sequences. 5991c6a5c10SXin LI 6001c6a5c10SXin LI* Fix bug which caused screen to fail to repaint when window is resized. 6011c6a5c10SXin LI 6021c6a5c10SXin LI* Fix bug in using -i and -I flags with non-ASCII text. 6031c6a5c10SXin LI 6041c6a5c10SXin LI* Fix configure bug on systems which don't support langinfo.h. 6051c6a5c10SXin LI 606f78327b5SXin LI* Fix crash when searching text containing certain invalid UTF-8 sequences. 607f78327b5SXin LI 6081c6a5c10SXin LI====================================================================== 6091c6a5c10SXin LI 610efd72c2eSXin LI Major changes between "less" versions 394 and 406 6117f074f9cSXin LI 6127f074f9cSXin LI* Allow decimal point in number for % (percent) command. 6137f074f9cSXin LI 6147f074f9cSXin LI* Allow decimal point in number for -j option (fraction of screen height). 6157f074f9cSXin LI 6167f074f9cSXin LI* Make n command fetch previous pattern from history file on first search. 6177f074f9cSXin LI 6187f074f9cSXin LI* Don't rewrite history file if it has not changed. 6197f074f9cSXin LI 6207f074f9cSXin LI* Don't move to bottom of screen on first page. 6217f074f9cSXin LI 6227f074f9cSXin LI* Don't output extraneous newlines, so copy & pasting lines from the 6237f074f9cSXin LI output works better. 6247f074f9cSXin LI 6257f074f9cSXin LI* The -c option has been made identical with the -C option. 6267f074f9cSXin LI 627d713e089SXin LI* Allow "/dev/null" as synonym for "-" in LESSHISTFILE to indicate 6287f074f9cSXin LI that no history file should be used. 6297f074f9cSXin LI 6307f074f9cSXin LI* Search can now find text which follows a null byte, if the PCRE 6317f074f9cSXin LI library is used, or if no-regex searching (ctrl-R) is used. 6327f074f9cSXin LI 6337f074f9cSXin LI* Better compatibility with POSIX more specification. 6347f074f9cSXin LI 6357f074f9cSXin LI* Make -f work for directories. 6367f074f9cSXin LI 6377f074f9cSXin LI* Make "t" cmd traverse tags in the correct order. 6387f074f9cSXin LI 6397f074f9cSXin LI* Allow a few binary characters in the input file before warning 6407f074f9cSXin LI that the file is binary. 6417f074f9cSXin LI 6427f074f9cSXin LI* Don't warn that file is binary if it merely contains ANSI color sequences 6437f074f9cSXin LI and -R is in effect. 6447f074f9cSXin LI 6457f074f9cSXin LI* Update Unicode character tables. 6467f074f9cSXin LI 6477f074f9cSXin LI* Support DESTDIR in Makefile. 6487f074f9cSXin LI 6497f074f9cSXin LI* Fix bug when filename contains certain shell metacharacters such as "$". 6507f074f9cSXin LI 6517f074f9cSXin LI* Fix bug when resizing the window while waiting for input from a pipe. 6527f074f9cSXin LI 6537f074f9cSXin LI* Fix configure bugs. 6547f074f9cSXin LI 6557f074f9cSXin LI====================================================================== 6567f074f9cSXin LI 6576dcb072bSXin LI Major changes between "less" versions 382 and 394 6586dcb072bSXin LI 6596dcb072bSXin LI* Add history file to save search and shell command history between 6606dcb072bSXin LI invocations of less. 6616dcb072bSXin LI 6626dcb072bSXin LI* Improve behavior of history list for search and shell commands. 6636dcb072bSXin LI 6646dcb072bSXin LI* Add -K (or --quit-on-intr) option to make less exit immediately on ctrl-C. 6656dcb072bSXin LI 6666dcb072bSXin LI* Improve handling of UTF-8 files and commands, including better 6676dcb072bSXin LI line wrapping and handling double-width chars. 6686dcb072bSXin LI 6696dcb072bSXin LI* Added LESSUTFBINFMT environment variable to control display of 6706dcb072bSXin LI non-printable characters in a UTF-8 file. 6716dcb072bSXin LI 6726dcb072bSXin LI* Add --with-secure option to configure, to make it easier to 6736dcb072bSXin LI build a secure version of less. 6746dcb072bSXin LI 6756dcb072bSXin LI* Show search matches in the status column even if search highlights 6766dcb072bSXin LI are disabled via the -G option or the ESC-u command. 6776dcb072bSXin LI 6786dcb072bSXin LI* Improve performance when the file contains very long lines. 6796dcb072bSXin LI 6806dcb072bSXin LI* Add "windows" charset. 6816dcb072bSXin LI 6826dcb072bSXin LI* Add man page for lessecho. 6836dcb072bSXin LI 6846dcb072bSXin LI* Add support for erase2 character, treated same as erase. 6856dcb072bSXin LI 6866dcb072bSXin LI* Use ASCII lowercase/uppercase logic when operating on the command line. 6876dcb072bSXin LI 6886dcb072bSXin LI* Update makefile for Borland C++ 5.5.1. 6896dcb072bSXin LI 6906dcb072bSXin LI* Fix bug in calculating number of pages for %D prompt. 6916dcb072bSXin LI 6926dcb072bSXin LI* Fix bug in handling tag file error. 6936dcb072bSXin LI 6946dcb072bSXin LI* Fix obscure bug if input file is deleted while viewing help. 6956dcb072bSXin LI 6966dcb072bSXin LI* Fix bug handling filenames which include square brackets. 6976dcb072bSXin LI 6986dcb072bSXin LI* Fix possible buffer overflow in "global" tag search. 6996dcb072bSXin LI 7006dcb072bSXin LI* Fix possible buffer overflow in usage of LESSOPEN and LESSCLOSE. 7016dcb072bSXin LI 7026dcb072bSXin LI* Fix buffer overflow in reverse search. 7036dcb072bSXin LI 7046dcb072bSXin LI====================================================================== 7056dcb072bSXin LI 7066dcb072bSXin LI Major changes between "less" versions 381 and 382 7076dcb072bSXin LI 7086dcb072bSXin LI* Removed some old copyrighted code. 7096dcb072bSXin LI This probably breaks OS/9 support. 7106dcb072bSXin LI 7116dcb072bSXin LI====================================================================== 7126dcb072bSXin LI 713000ba3e8STim J. Robbins Major changes between "less" versions 378 and 381 714000ba3e8STim J. Robbins 715000ba3e8STim J. Robbins* New -L option to disable LESSOPEN processing. 716000ba3e8STim J. Robbins 717000ba3e8STim J. Robbins* Further support for large (64 bit) file addressing. 718000ba3e8STim J. Robbins Large file support is now set up by the configure script. 719000ba3e8STim J. Robbins 720000ba3e8STim J. Robbins* Use autoconf 2.54. 721000ba3e8STim J. Robbins Replace configure.in, acconfig.h, defines.h.top with configure.ac. 722000ba3e8STim J. Robbins 723000ba3e8STim J. Robbins* Overstriking underscore with underscore is now bold or underlined 724000ba3e8STim J. Robbins depending on context. 725000ba3e8STim J. Robbins 726000ba3e8STim J. Robbins* Use only 7 spaces for line numbers in -N mode, if possible. 727000ba3e8STim J. Robbins 728000ba3e8STim J. Robbins* Fix some bugs in handling overstriking in UTF-8 files. 729000ba3e8STim J. Robbins 730000ba3e8STim J. Robbins* Fix some nroff issues in the man page. 731000ba3e8STim J. Robbins 732000ba3e8STim J. Robbins====================================================================== 733000ba3e8STim J. Robbins 734000ba3e8STim J. Robbins Major changes between "less" versions 376 and 378 735000ba3e8STim J. Robbins 736000ba3e8STim J. Robbins* Bug fixes: 737000ba3e8STim J. Robbins Default buffer space is now 64K as documented. 738000ba3e8STim J. Robbins Search highlighting works properly when used with -R. 739000ba3e8STim J. Robbins Windows version works properly when input file contains carriage returns. 740000ba3e8STim J. Robbins Clean up some compiler warnings. 741000ba3e8STim J. Robbins 742000ba3e8STim J. Robbins====================================================================== 743000ba3e8STim J. Robbins 744000ba3e8STim J. Robbins Major changes between "less" versions 358 and 376 745c9346414SPaul Saab 746c9346414SPaul Saab* -x option can now specify multiple variable-width tab stops. 747c9346414SPaul Saab 748c9346414SPaul Saab* -X option no longer disables keypad initialization. 749c9346414SPaul Saab New option --no-keypad disables keypad initialization. 750c9346414SPaul Saab 751c9346414SPaul Saab* New commands t and T step through multiple tag matches. 752c9346414SPaul Saab Added support for "global(1)" tags 753c9346414SPaul Saab (see http://www.gnu.org/software/global/global.html). 754c9346414SPaul Saab 755c9346414SPaul Saab* New prompt style set by option -Pw defines the message printed 756c9346414SPaul Saab while waiting for data in the F command. 757c9346414SPaul Saab 758c9346414SPaul Saab* System-wide lesskey file now defaults to sysless in etc directory 759c9346414SPaul Saab instead of .sysless in bin directory. 760c9346414SPaul Saab Use "configure --sysconfdir=..." to change it. 761c9346414SPaul Saab (For backwards compatibility, .sysless in bin is still recognized.) 762c9346414SPaul Saab 763c9346414SPaul Saab* Pressing RightArrow or LeftArrow while entering a number now shifts 764c9346414SPaul Saab the display N columns rather than editing the number itself. 765c9346414SPaul Saab 766c9346414SPaul Saab* Status column (enabled with -J) now shows search results. 767c9346414SPaul Saab 768c9346414SPaul Saab* Windows version sets window title. 769c9346414SPaul Saab 770c9346414SPaul Saab* Default LESSCHARSET for MS-DOS versions is now "dos". 771c9346414SPaul Saab 772000ba3e8STim J. Robbins* Searching works better with ANSI (SGR) escape sequences. 773000ba3e8STim J. Robbins ANSI color escape sequences are now supported in the MS-DOS (DJGPP) version. 774000ba3e8STim J. Robbins 775000ba3e8STim J. Robbins* Improved performance in reading very large pipes. 776c9346414SPaul Saab 777d713e089SXin LI* Eliminated some dependencies on file offsets being 32 bits. 778c9346414SPaul Saab 779c9346414SPaul Saab* Fixed problems when viewing files with very long lines. 780c9346414SPaul Saab 781c9346414SPaul Saab* Fixed overstriking in UTF-8 mode, and overstriking tabs. 782c9346414SPaul Saab 783c9346414SPaul Saab* Improved horizontal shifting of text using -R option with ANSI color. 784c9346414SPaul Saab 785000ba3e8STim J. Robbins* Improved handling of filenames containing shell metacharacters. 786000ba3e8STim J. Robbins 787c9346414SPaul Saab* Some fixes for EBCDIC systems. 788c9346414SPaul Saab 789c9346414SPaul Saab* Some fixes for OS/2 systems. 790c9346414SPaul Saab 791c9346414SPaul Saab====================================================================== 792c9346414SPaul Saab 7938ed69c6fSPaul Saab Major changes between "less" versions 354 and 358 7948ed69c6fSPaul Saab 7958ed69c6fSPaul Saab* Add -J (--status-column) option to display a status column. 7968ed69c6fSPaul Saab 7978ed69c6fSPaul Saab* Add -# (--shift) option to set default horizontal shift distance. 7988ed69c6fSPaul Saab Default horizontal shift distance is now one-half screen width. 7998ed69c6fSPaul Saab 8008ed69c6fSPaul Saab* Horizontal shifting does not shift line numbers if -N is in effect. 8018ed69c6fSPaul Saab 8028ed69c6fSPaul Saab* Horizontal shifting acts as though -S were set, to avoid confusion. 8038ed69c6fSPaul Saab 8048ed69c6fSPaul Saab====================================================================== 8058ed69c6fSPaul Saab 8068ed69c6fSPaul Saab 807a5f0fb15SPaul Saab Major changes between "less" versions 352 and 354 808a5f0fb15SPaul Saab 809a5f0fb15SPaul Saab* Allow space after numeric-valued command line options. 810a5f0fb15SPaul Saab 811a5f0fb15SPaul Saab* Fix problem with configuring terminal libraries on some systems. 812a5f0fb15SPaul Saab 813a5f0fb15SPaul Saab* Add support for PCRE regular expression library. 814a5f0fb15SPaul Saab 815a5f0fb15SPaul Saab* Add --with-regex option to configure to allow manually selecting 816a5f0fb15SPaul Saab a regular expression library. 817a5f0fb15SPaul Saab 818a5f0fb15SPaul Saab* Fix bug compiling with SECURE = 1. 819a5f0fb15SPaul Saab 820a5f0fb15SPaul Saab====================================================================== 821a5f0fb15SPaul Saab 822a5f0fb15SPaul Saab 823a5f0fb15SPaul Saab Major changes between "less" versions 346 and 352 824a5f0fb15SPaul Saab 825a5f0fb15SPaul Saab* Enable UTF-8 if "UTF-8" appears in locale-related environment variables. 826a5f0fb15SPaul Saab 827a5f0fb15SPaul Saab* Add --with-editor option to configure script. 828a5f0fb15SPaul Saab 829a5f0fb15SPaul Saab* The -M prompt and = message now show the top and bottom line number. 830a5f0fb15SPaul Saab 831a5f0fb15SPaul Saab* Fix bug in running the editor on a file whose name contains quotes, etc. 832a5f0fb15SPaul Saab 833a5f0fb15SPaul Saab* Fix bug in horizontal scrolling of long lines. 834a5f0fb15SPaul Saab 835a5f0fb15SPaul Saab* Fix bug in doing :d on a file which contains marks. 836a5f0fb15SPaul Saab 837a5f0fb15SPaul Saab* Fix bug causing cleared lines to sometimes be filled with standout, 838a5f0fb15SPaul Saab bold, underline, etc. on certain terminals. 839a5f0fb15SPaul Saab 840a5f0fb15SPaul Saab* Fixes for MS-DOS (DJGPP) version. 841a5f0fb15SPaul Saab 842a5f0fb15SPaul Saab====================================================================== 843a5f0fb15SPaul Saab 844a5f0fb15SPaul Saab 845a5f0fb15SPaul Saab Major changes between "less" versions 340 and 346 846a5f0fb15SPaul Saab 847a5f0fb15SPaul Saab* The UTF-8 character set is now supported. 848a5f0fb15SPaul Saab 849a5f0fb15SPaul Saab* The default character set is now latin1 rather than ascii. 850a5f0fb15SPaul Saab 851a5f0fb15SPaul Saab* New option -R (--RAW-CONTROL-CHARS) is like -r but handles 852a5f0fb15SPaul Saab long (wrapped) lines correctly, as long as the input contains only 853a5f0fb15SPaul Saab normal text and ANSI color escape sequences. 854a5f0fb15SPaul Saab 855a5f0fb15SPaul Saab* New option -F (--quit-if-one-screen) quits if the text fits on 856a5f0fb15SPaul Saab the first screen. 857a5f0fb15SPaul Saab 858a5f0fb15SPaul Saab* The -w option now highlights the target line of a g or p command. 859a5f0fb15SPaul Saab 860a5f0fb15SPaul Saab* A system-wide lesskey file is supported (LESSKEY_SYSTEM). 861a5f0fb15SPaul Saab 862a5f0fb15SPaul Saab* New escape for prompt strings: %c is replaced by column number. 863a5f0fb15SPaul Saab 864a5f0fb15SPaul Saab* New escape for prompt strings: %P is replaced by percentage into 865a5f0fb15SPaul Saab file, based on line number rather than byte offset. 866a5f0fb15SPaul Saab 867a5f0fb15SPaul Saab* HOME and END keys now jump to beginning of file or end of file. 868a5f0fb15SPaul Saab 869a5f0fb15SPaul Saab====================================================================== 870a5f0fb15SPaul Saab 871a5f0fb15SPaul Saab 872a5f0fb15SPaul Saab Major changes between "less" versions 337 and 340 873a5f0fb15SPaul Saab 874a5f0fb15SPaul Saab* Command line options for less may now be given in either the old 875a5f0fb15SPaul Saab single-letter form, or a new long name form (--option-name). 876a5f0fb15SPaul Saab See the less man page or "less --help" for the list of long option names. 877a5f0fb15SPaul Saab 878a5f0fb15SPaul Saab* Command line options for lesskey may now be given in a new long name 879a5f0fb15SPaul Saab form. See the lesskey man page for the list of long option names. 880a5f0fb15SPaul Saab 881a5f0fb15SPaul Saab* New command -- toggles an option using the long option name. 882a5f0fb15SPaul Saab 883a5f0fb15SPaul Saab* New command __ queries an option using the long option name. 884a5f0fb15SPaul Saab 885a5f0fb15SPaul Saab* The old -- command is renamed as -!. 886a5f0fb15SPaul Saab 887a5f0fb15SPaul Saab* If a ^P is entered between the dash and the option letter of the - 888a5f0fb15SPaul Saab command, the message describing the new setting is suppressed. 889a5f0fb15SPaul Saab 890a5f0fb15SPaul Saab* Lesskey files may now contain \k escape sequences to represent the 891a5f0fb15SPaul Saab "special" keys (arrows, PAGE-UP/PAGE-DOWN, HOME, END, INSERT, DELETE). 892a5f0fb15SPaul Saab 893a5f0fb15SPaul Saab* New command :d removes the current file from the list of files. 894a5f0fb15SPaul Saab 895a5f0fb15SPaul Saab* New option -~ (like -w before version 335) 896a5f0fb15SPaul Saab suppresses tildes after end-of-file. 897a5f0fb15SPaul Saab 898a5f0fb15SPaul Saab* Less is now released under the GNU General Public License. 899a5f0fb15SPaul Saab 900a5f0fb15SPaul Saab====================================================================== 901a5f0fb15SPaul Saab 902a5f0fb15SPaul Saab 903a5f0fb15SPaul Saab Major changes between "less" versions 335 and 337 904a5f0fb15SPaul Saab 905a5f0fb15SPaul Saab* Fixed bugs in "make install". 906a5f0fb15SPaul Saab 907a5f0fb15SPaul Saab====================================================================== 908a5f0fb15SPaul Saab 909a5f0fb15SPaul Saab 910a5f0fb15SPaul Saab Major changes between "less" versions 332 and 335 911a5f0fb15SPaul Saab 912a5f0fb15SPaul Saab* The old -w flag (suppress tildes after end-of-file) has been removed. 913a5f0fb15SPaul Saab 914a5f0fb15SPaul Saab* New -w flag highlights the first new line after a forward-screen. 915a5f0fb15SPaul Saab 916a5f0fb15SPaul Saab* New -W flag highlights the first new line after any forward movement. 917a5f0fb15SPaul Saab 918a5f0fb15SPaul Saab* Window resize works even if LINES and/or COLUMNS environment 919a5f0fb15SPaul Saab variables are incorrect. 920a5f0fb15SPaul Saab 921a5f0fb15SPaul Saab* New percent escapes for prompt strings: 922a5f0fb15SPaul Saab %d is replaced by the page number, and 923a5f0fb15SPaul Saab %D is replaced by the number of pages in the file. 924a5f0fb15SPaul Saab 925a5f0fb15SPaul Saab* Added charsets "iso8859" and "ebcdic". 926a5f0fb15SPaul Saab 927a5f0fb15SPaul Saab* In Windows version, uses HOMEDRIVE and HOMEPATH if HOME is not defined. 928a5f0fb15SPaul Saab 929a5f0fb15SPaul Saab* Fixed some bugs causing incorrect display on DOS/Windows. 930a5f0fb15SPaul Saab 931a5f0fb15SPaul Saab====================================================================== 932a5f0fb15SPaul Saab 933a5f0fb15SPaul Saab 934a5f0fb15SPaul Saab Major changes between "less" versions 330 and 332 935a5f0fb15SPaul Saab 936a5f0fb15SPaul Saab* Filenames from the command line are entered into the command history, 937a5f0fb15SPaul Saab so UPARROW/DOWNARROW can be used to retrieve them from the :e command. 938a5f0fb15SPaul Saab 939a5f0fb15SPaul Saab* Now works correctly on Windows when using a scrolling terminal 940a5f0fb15SPaul Saab window (buffer larger than display window). 941a5f0fb15SPaul Saab 942a5f0fb15SPaul Saab* On Windows, now restores the console screen on exit. 943a5f0fb15SPaul Saab Use -X to get the old behavior. 944a5f0fb15SPaul Saab 945a5f0fb15SPaul Saab* Fixed bug on Windows when CAPS-LOCK or NUM-LOCK is pressed. 946a5f0fb15SPaul Saab 947a5f0fb15SPaul Saab* Fixed bug on Windows when piping output of an interactive program. 948a5f0fb15SPaul Saab 949a5f0fb15SPaul Saab* Fixed bug in tags file processing when tags file has DOS-style 950a5f0fb15SPaul Saab line terminators (CR/LF). 951a5f0fb15SPaul Saab 952a5f0fb15SPaul Saab* Fixed compilation problem on OS/2. 953a5f0fb15SPaul Saab 954a5f0fb15SPaul Saab====================================================================== 955a5f0fb15SPaul Saab 956a5f0fb15SPaul Saab 957a5f0fb15SPaul Saab Major changes between "less" versions 321 and 330 958a5f0fb15SPaul Saab 959a5f0fb15SPaul Saab* Now supports filenames containing spaces (in double quotes). 960a5f0fb15SPaul Saab New option -" can be used to change the quoting characters. 961a5f0fb15SPaul Saab 962a5f0fb15SPaul Saab* In filename completion, a slash is appended to a directory name. 963a5f0fb15SPaul Saab If the environment variable LESSSEPARATOR is set, the value of 964a5f0fb15SPaul Saab that variable, rather than a slash, is appended. 965a5f0fb15SPaul Saab 966a5f0fb15SPaul Saab* LeftArrow and RightArrow are same as ESC-[ and ESC-]. 967a5f0fb15SPaul Saab 968a5f0fb15SPaul Saab* Added commands ESC-( and ESC-), same as ESC-[ and ESC-]. 969a5f0fb15SPaul Saab 970a5f0fb15SPaul Saab* A "quit" command defined in a lesskey file may now have an "extra" 971a5f0fb15SPaul Saab string, which is used to return an exit code from less when it quits. 972a5f0fb15SPaul Saab 973a5f0fb15SPaul Saab* New environment variables LESSMETACHARS and LESSMETAESCAPE provide 974a5f0fb15SPaul Saab more control over how less interfaces to the shell. 975a5f0fb15SPaul Saab 976a5f0fb15SPaul Saab* Ported to Microsoft Visual C compiler for Windows. 977a5f0fb15SPaul Saab 978a5f0fb15SPaul Saab* Ported to DJGPP compiler for MS-DOS. 979a5f0fb15SPaul Saab 980a5f0fb15SPaul Saab* Bug fixes. 981a5f0fb15SPaul Saab 982a5f0fb15SPaul Saab====================================================================== 983a5f0fb15SPaul Saab 984a5f0fb15SPaul Saab 985a5f0fb15SPaul Saab Major changes between "less" versions 291 and 321 986a5f0fb15SPaul Saab 987a5f0fb15SPaul Saab* Command line at bottom of screen now scrolls, so it can be longer 988a5f0fb15SPaul Saab than the screen width. 989a5f0fb15SPaul Saab 990a5f0fb15SPaul Saab* New commands ESC-] and ESC-[ scroll the display horizontally. 991a5f0fb15SPaul Saab 992a5f0fb15SPaul Saab* New command ESC-SPACE scrolls forward a full screen, even if it 993a5f0fb15SPaul Saab hits end-of-file. 994a5f0fb15SPaul Saab 995a5f0fb15SPaul Saab* Alternate modifiers for search commands: ^N is same as !, 996a5f0fb15SPaul Saab ^F is same as @, and ^E is same as *. 997a5f0fb15SPaul Saab 998a5f0fb15SPaul Saab* New modifier for search commands: ^K means highlight the matches 999a5f0fb15SPaul Saab currently on-screen, but don't move to the first match. 1000a5f0fb15SPaul Saab 1001a5f0fb15SPaul Saab* New modifier for search commands: ^R means don't use regular 1002a5f0fb15SPaul Saab expressions in the search. 1003a5f0fb15SPaul Saab 1004a5f0fb15SPaul Saab* Environment variable LESSKEY gives name of default lesskey file. 1005a5f0fb15SPaul Saab 1006a5f0fb15SPaul Saab* Environment variable LESSSECURE will force less to run in 1007a5f0fb15SPaul Saab "secure" mode. 1008a5f0fb15SPaul Saab 1009a5f0fb15SPaul Saab* Command line argument "--" signals that the rest of the arguments 1010a5f0fb15SPaul Saab are files (not option flags). 1011a5f0fb15SPaul Saab 1012a5f0fb15SPaul Saab* Help file (less.hlp) is no longer installed. Help text is now 1013a5f0fb15SPaul Saab embedded in the less executable itself. 1014a5f0fb15SPaul Saab 1015a5f0fb15SPaul Saab* Added -Ph to change the prompt for the help text. 1016a5f0fb15SPaul Saab Added -Ps to change the default short prompt (same as plain -P). 1017a5f0fb15SPaul Saab 1018a5f0fb15SPaul Saab* Ported to the Borland C compiler for MS-DOS. 1019a5f0fb15SPaul Saab 1020a5f0fb15SPaul Saab* Ported to Windows 95 & Windows NT. 1021a5f0fb15SPaul Saab 1022a5f0fb15SPaul Saab* Ported to OS-9. 1023a5f0fb15SPaul Saab 1024a5f0fb15SPaul Saab* Ported to GNU Hurd. 1025a5f0fb15SPaul Saab 1026a5f0fb15SPaul Saab====================================================================== 1027a5f0fb15SPaul Saab 1028a5f0fb15SPaul Saab 1029a5f0fb15SPaul Saab Major changes between "less" versions 290 and 291 1030a5f0fb15SPaul Saab 1031a5f0fb15SPaul Saab* Less environment variables can be specified in lesskey files. 1032a5f0fb15SPaul Saab 1033a5f0fb15SPaul Saab* Fixed MS-DOS build. 1034a5f0fb15SPaul Saab 1035a5f0fb15SPaul Saab====================================================================== 1036a5f0fb15SPaul Saab 1037a5f0fb15SPaul Saab 1038a5f0fb15SPaul Saab Major changes between "less" versions 278 and 290 1039a5f0fb15SPaul Saab 1040a5f0fb15SPaul Saab* Accepts GNU-style options "--help" and "--version". 1041a5f0fb15SPaul Saab 1042a5f0fb15SPaul Saab* OS/2 version looks for less.ini in $HOME before $INIT and $PATH. 1043a5f0fb15SPaul Saab 1044a5f0fb15SPaul Saab* Bug fixes 1045a5f0fb15SPaul Saab 1046a5f0fb15SPaul Saab====================================================================== 1047a5f0fb15SPaul Saab 1048a5f0fb15SPaul Saab 1049a5f0fb15SPaul Saab Major changes between "less" versions 252 and 278 1050a5f0fb15SPaul Saab 1051a5f0fb15SPaul Saab* A LESSOPEN preprocessor may now pipe the converted file data to less, 1052a5f0fb15SPaul Saab rather than writing it to a temporary file. 1053a5f0fb15SPaul Saab 1054a5f0fb15SPaul Saab* Search pattern highlighting has been fixed. It now highlights 1055a5f0fb15SPaul Saab reliably, even if a string is split across two screen lines, 1056a5f0fb15SPaul Saab contains TABs, etc. 1057a5f0fb15SPaul Saab 1058a5f0fb15SPaul Saab* The -F flag (which suppress search highlighting) has been changed 1059a5f0fb15SPaul Saab to -G. A new flag, -g, changes search highlighting to highlight 1060a5f0fb15SPaul Saab only the string found by the last search command, instead of all 1061a5f0fb15SPaul Saab strings which match the last search command. 1062a5f0fb15SPaul Saab 1063a5f0fb15SPaul Saab* New flag -I acts like -i, but ignores case even if the search 1064a5f0fb15SPaul Saab pattern contains uppercase letters. 1065a5f0fb15SPaul Saab 1066a5f0fb15SPaul Saab* Less now checks for the environment variable VISUAL before EDITOR. 1067a5f0fb15SPaul Saab 1068a5f0fb15SPaul Saab* Ported to OS/2. 1069a5f0fb15SPaul Saab 1070a5f0fb15SPaul Saab====================================================================== 1071a5f0fb15SPaul Saab 1072a5f0fb15SPaul Saab 1073a5f0fb15SPaul Saab Major changes between "less" versions 237 and 252 1074a5f0fb15SPaul Saab 1075a5f0fb15SPaul Saab* Changes in line-editing keys: 1076a5f0fb15SPaul Saab The literal key is now ^V or ^A rather than \ (backslash). 1077a5f0fb15SPaul Saab Filename completion commands (TAB and ^L) are disabled 1078a5f0fb15SPaul Saab when typing a search pattern. 1079a5f0fb15SPaul Saab 1080a5f0fb15SPaul Saab* Line-editing command keys can be redefined using lesskey. 1081a5f0fb15SPaul Saab 1082a5f0fb15SPaul Saab* Lesskey with no input file defaults to $HOME/.lesskey 1083a5f0fb15SPaul Saab rather than standard input. 1084a5f0fb15SPaul Saab 1085a5f0fb15SPaul Saab* New option -V displays version number of less. 1086a5f0fb15SPaul Saab 1087a5f0fb15SPaul Saab* New option -V displays version number of lesskey. 1088a5f0fb15SPaul Saab 1089a5f0fb15SPaul Saab* Help file less.hlp is now installed by default in /usr/local/share 1090a5f0fb15SPaul Saab rather than /usr/local/lib. 1091a5f0fb15SPaul Saab 1092a5f0fb15SPaul Saab 1093a5f0fb15SPaul Saab====================================================================== 1094a5f0fb15SPaul Saab 1095a5f0fb15SPaul Saab 1096a5f0fb15SPaul Saab Major changes between "less" versions 170 and 237 1097a5f0fb15SPaul Saab 1098a5f0fb15SPaul Saab* By popular demand, text which matches the current search pattern 1099a5f0fb15SPaul Saab is highlighted. New -F flag disables this feature. 1100a5f0fb15SPaul Saab 1101a5f0fb15SPaul Saab* Henry Spencer's regexp.c is now included, for systems which do not 1102a5f0fb15SPaul Saab have a regular expression library. 1103a5f0fb15SPaul Saab regexp.c is Copyright (c) 1986 by University of Toronto. 1104a5f0fb15SPaul Saab 1105a5f0fb15SPaul Saab* New line-editing keys, including command history (arrow keys) and 1106a5f0fb15SPaul Saab filename completion (TAB). 1107a5f0fb15SPaul Saab 1108a5f0fb15SPaul Saab* Input preprocessor allows modification of input files (e.g. uncompress) 1109a5f0fb15SPaul Saab via LESSOPEN/LESSCLOSE environment variables. 1110a5f0fb15SPaul Saab 1111a5f0fb15SPaul Saab* New -X flag disables sending termcap "ti" and "te" (initialize and 1112a5f0fb15SPaul Saab deinitialize) strings to the terminal. 1113a5f0fb15SPaul Saab 1114a5f0fb15SPaul Saab* Changing -i from within less now correctly affects a subsequent 1115a5f0fb15SPaul Saab repeated search. 1116a5f0fb15SPaul Saab 1117a5f0fb15SPaul Saab* Searching for underlined or overstruck text now works when the -u 1118a5f0fb15SPaul Saab flag is in effect, rather than the -i flag. 1119a5f0fb15SPaul Saab 1120a5f0fb15SPaul Saab* Use setlocale (LANG and LC_CTYPE environment variables) to determine 1121a5f0fb15SPaul Saab the character set if LESSCHARSET/LESSCHARDEF are not set. 1122a5f0fb15SPaul Saab 1123a5f0fb15SPaul Saab* The default format for displaying binary characters is now standout 1124a5f0fb15SPaul Saab (reverse video) rather than blinking. This can still be changed by 1125a5f0fb15SPaul Saab setting the LESSBINFMT environment variable. 1126a5f0fb15SPaul Saab 1127a5f0fb15SPaul Saab* Use autoconf installation technology. 1128a5f0fb15SPaul Saab 1129a5f0fb15SPaul Saab* Ported to MS-DOS. 1130a5f0fb15SPaul Saab 1131a5f0fb15SPaul Saab ******************************** 1132a5f0fb15SPaul Saab Things that may surprise you 1133a5f0fb15SPaul Saab ******************************** 1134a5f0fb15SPaul Saab 1135a5f0fb15SPaul Saab* When you enter text at the bottom of the screen (search string, 1136a5f0fb15SPaul Saab filename, etc.), some keys act different than previously. 1137a5f0fb15SPaul Saab Specifically, \ (backslash), ESC, TAB, BACKTAB, and control-L 1138a5f0fb15SPaul Saab now have line editing functions. 1139a5f0fb15SPaul Saab 1140a5f0fb15SPaul Saab* Some previous unofficial versions of less were able to display 1141a5f0fb15SPaul Saab compressed files. The new LESSOPEN/LESSCLOSE feature now provides 1142a5f0fb15SPaul Saab this functionality in a different way. 1143a5f0fb15SPaul Saab 1144a5f0fb15SPaul Saab* Some previous unofficial versions of less provided a -Z flag to 1145a5f0fb15SPaul Saab set the number of lines of text to retain between full screen scrolls. 1146a5f0fb15SPaul Saab The -z-n flag (that is, -z with a negative number) provides this 1147a5f0fb15SPaul Saab functionality. 1148a5f0fb15SPaul Saab 1149a5f0fb15SPaul Saab 1150a5f0fb15SPaul Saab====================================================================== 1151a5f0fb15SPaul Saab 1152a5f0fb15SPaul Saab 1153a5f0fb15SPaul Saab Major changes between "less" versions 123 and 170 1154a5f0fb15SPaul Saab 1155a5f0fb15SPaul Saab* New option -j allows target lines to be positioned anywhere on screen. 1156a5f0fb15SPaul Saab 1157a5f0fb15SPaul Saab* New option -S truncates displayed line at the screen width, 1158a5f0fb15SPaul Saab rather than wrapping onto the next line. 1159a5f0fb15SPaul Saab 1160a5f0fb15SPaul Saab* New option -y limits amount of forward scroll. 1161a5f0fb15SPaul Saab 1162a5f0fb15SPaul Saab* New option -T specifies a "tags" file. 1163a5f0fb15SPaul Saab 1164a5f0fb15SPaul Saab* Non-printable, non-control characters are displayed in octal. 1165a5f0fb15SPaul Saab Such characters, as well as control characters, are displayed 1166a5f0fb15SPaul Saab in blinking mode. 1167a5f0fb15SPaul Saab 1168a5f0fb15SPaul Saab* New command -+ sets an option to its default. 1169a5f0fb15SPaul Saab* New command -- sets an option to the opposite of its default. 1170a5f0fb15SPaul Saab 1171a5f0fb15SPaul Saab* Lesskey file may have a string appended to a key's action, 1172a5f0fb15SPaul Saab which acts as though typed in after the command. 1173a5f0fb15SPaul Saab 1174a5f0fb15SPaul Saab* New commands ESC-^F and ESC-^B match arbitrary types of brackets. 1175a5f0fb15SPaul Saab 1176a5f0fb15SPaul Saab* New command F monitors a growing file (like "tail -f"). 1177a5f0fb15SPaul Saab 1178a5f0fb15SPaul Saab* New command | pipes a section of the input file into a shell command. 1179a5f0fb15SPaul Saab 1180a5f0fb15SPaul Saab* New command :x directly jumps to a file in the command line list. 1181a5f0fb15SPaul Saab 1182a5f0fb15SPaul Saab* Search commands have been enhanced and reorganized: 1183a5f0fb15SPaul Saab n Repeat search, same direction. 1184a5f0fb15SPaul Saab N Repeat search, opposite direction. 1185a5f0fb15SPaul Saab ESC-/ Search forward thru file boundaries 1186a5f0fb15SPaul Saab ESC-? Search backward thru file boundaries 1187a5f0fb15SPaul Saab ESC-n Repeat search thru file boundaries, same direction. 1188a5f0fb15SPaul Saab ESC-N Repeat search thru file boundaries, opposite direction. 1189a5f0fb15SPaul Saab Special character * causes search to search thru file boundaries. 1190a5f0fb15SPaul Saab Special character @ causes search to begin at start/end of file list. 1191a5f0fb15SPaul Saab 1192a5f0fb15SPaul Saab* Examining a new file adds it to the command line list. 1193a5f0fb15SPaul Saab A list of files, or an expression which matches more than one file, 1194a5f0fb15SPaul Saab may be examined; all of them are added to the command line list. 1195a5f0fb15SPaul Saab 1196a5f0fb15SPaul Saab* Environment variables LESSCHARSET and LESSCHARDEF can define 1197a5f0fb15SPaul Saab a non-ASCII character set. 1198a5f0fb15SPaul Saab 1199a5f0fb15SPaul Saab* Partial support for MSDOS, including options -R for repainting screen 1200a5f0fb15SPaul Saab on quit, -v/-V to select video mode, and -W to change window size. 1201a5f0fb15SPaul Saab 1202a5f0fb15SPaul Saab 1203a5f0fb15SPaul Saab====================================================================== 1204a5f0fb15SPaul Saab 1205a5f0fb15SPaul Saab 1206a5f0fb15SPaul Saab Major changes between "less" versions 97 and 123 1207a5f0fb15SPaul Saab 1208a5f0fb15SPaul Saab* New option (-N) causes line numbers to be displayed in the 1209a5f0fb15SPaul Saab text of the file (like vi "set nu"). 1210a5f0fb15SPaul Saab 1211a5f0fb15SPaul Saab* New option (-?) prints help message immediately. 1212a5f0fb15SPaul Saab 1213a5f0fb15SPaul Saab* New option (-r) displays "raw" control characters, without 1214a5f0fb15SPaul Saab mapping them to ^X notation. 1215a5f0fb15SPaul Saab 1216a5f0fb15SPaul Saab* New option (-f) forces less to open non-regular files 1217a5f0fb15SPaul Saab (directories, etc). 1218a5f0fb15SPaul Saab 1219a5f0fb15SPaul Saab* New option (-k) can be used to specify lesskey files by name. 1220a5f0fb15SPaul Saab 1221a5f0fb15SPaul Saab* New option (-y) can be used to set a forward scroll limit 1222a5f0fb15SPaul Saab (like -h sets a backward scroll limit). 1223a5f0fb15SPaul Saab 1224a5f0fb15SPaul Saab* File marks (set by the m command) are now preserved when a new 1225a5f0fb15SPaul Saab file is edited. The ' command can thus be used to switch files. 1226a5f0fb15SPaul Saab 1227a5f0fb15SPaul Saab* New command ESC-/ searches all files (on the command line) 1228a5f0fb15SPaul Saab for a pattern. 1229a5f0fb15SPaul Saab 1230a5f0fb15SPaul Saab* New command ESC-n repeats previous search, spanning files. 1231a5f0fb15SPaul Saab 1232a5f0fb15SPaul Saab* The N command has been changed to repeat the previous search 1233a5f0fb15SPaul Saab in the reverse direction. The old N command is still available 1234a5f0fb15SPaul Saab via :n. 1235a5f0fb15SPaul Saab 1236a5f0fb15SPaul Saab* New command ESC-N repeats previous search in the reverse 1237a5f0fb15SPaul Saab direction and spanning files. 1238a5f0fb15SPaul Saab 1239a5f0fb15SPaul Saab* 8 bit characters are now supported. A new option (-g) can be 1240a5f0fb15SPaul Saab used to strip off the eighth bit (the previous behavior). 1241a5f0fb15SPaul Saab 1242a5f0fb15SPaul Saab* Options which take a following string (like -t) may now 1243a5f0fb15SPaul Saab optionally have a space between the option letter and the string. 1244a5f0fb15SPaul Saab 1245a5f0fb15SPaul Saab* Six new commands { } ( ) [ and ] can be used to match 1246a5f0fb15SPaul Saab brackets of specific types, similar to vi % command. 1247a5f0fb15SPaul Saab 1248a5f0fb15SPaul Saab* New commands z and w move forward/backward one window and 1249a5f0fb15SPaul Saab simultaneously set the window size. 1250a5f0fb15SPaul Saab 1251a5f0fb15SPaul Saab* Prompt string expansion now has %L for line number of the last 1252a5f0fb15SPaul Saab line in the file, and %E for the name of the editor. 1253a5f0fb15SPaul Saab Also, % escapes which refer to a line (b=bottom, t=top, etc.) 1254a5f0fb15SPaul Saab can use j for the jump target line. 1255a5f0fb15SPaul Saab 1256a5f0fb15SPaul Saab* New environment variable LESSEDIT can be used to tailor the 1257a5f0fb15SPaul Saab command string passed to the editor by the v command. 1258a5f0fb15SPaul Saab 1259a5f0fb15SPaul Saab* Examining a file which was previously examined will return 1260a5f0fb15SPaul Saab to the same position in the file. 1261a5f0fb15SPaul Saab 1262a5f0fb15SPaul Saab* A "%" is expanded to the current filename and a "#" to the 1263a5f0fb15SPaul Saab previous filename, in both shell commands and the E command. 1264a5f0fb15SPaul Saab (Previously % worked only in shell commands and # worked 1265a5f0fb15SPaul Saab only in the E command.) 1266a5f0fb15SPaul Saab 1267a5f0fb15SPaul Saab* New command ":ta" is equivalent to "-t". 1268a5f0fb15SPaul Saab 1269a5f0fb15SPaul Saab* New command "s" is equivalent to "-l". 1270a5f0fb15SPaul Saab 1271a5f0fb15SPaul Saab* The - command may be followed by "+X" to revert to the default 1272a5f0fb15SPaul Saab for option X, or "-X" to get the opposite of the default. 1273a5f0fb15SPaul Saab 1274a5f0fb15SPaul Saab* Lesskey files may now include characters after the action as 1275a5f0fb15SPaul Saab extra input to be parsed after the action; for example: 1276a5f0fb15SPaul Saab "toggle-option X" to toggle a specific option X. 12777f074f9cSXin LI 12787f074f9cSXin LI 12797f074f9cSXin LI 1280f78327b5SXin LI 1281464501a8SXin LI 1282