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*d713e089SXin LI Major changes between "less" versions 608 and 632 15*d713e089SXin LI 16*d713e089SXin LI* Add LESSUTFCHARDEF environment variable (github #275). 17*d713e089SXin LI 18*d713e089SXin LI* Add # command (github #330). 19*d713e089SXin LI 20*d713e089SXin LI* Add ^S search modifier (github #196). 21*d713e089SXin LI 22*d713e089SXin LI* Add --wordwrap option (github #113). 23*d713e089SXin LI 24*d713e089SXin LI* Add --no-vbell option (github #304). 25*d713e089SXin LI 26*d713e089SXin LI* Add --no-search-headers option (github #44). 27*d713e089SXin LI 28*d713e089SXin LI* Add --modelines option (github #89). 29*d713e089SXin LI 30*d713e089SXin LI* Add --intr option (github #224). 31*d713e089SXin LI 32*d713e089SXin LI* Add --proc-backspace, --proc-tab and --proc-return options (github #335). 33*d713e089SXin LI 34*d713e089SXin LI* Add --show-preproc-errors option (github #258). 35*d713e089SXin LI 36*d713e089SXin LI* Add LESS_LINES and LESS_COLUMNS environment variables (github #84). 37*d713e089SXin LI 38*d713e089SXin LI* Add LESS_DATA_DELAY environment variable (github #337). 39*d713e089SXin LI 40*d713e089SXin LI* Allow empty "lines" field in --header option. 41*d713e089SXin LI 42*d713e089SXin LI* Update Unicode tables. 43*d713e089SXin LI 44*d713e089SXin LI* Improve ability of ^X to interrupt F command (github #49). 45*d713e089SXin LI 46*d713e089SXin LI* Status column (-J) shows off-screen matches. 47*d713e089SXin LI 48*d713e089SXin LI* Parenthesized sub-patterns in searches are colored with unique colors, 49*d713e089SXin LI if supported by the regular expression library (github #196). 50*d713e089SXin LI 51*d713e089SXin LI* Don't allow opening a tty as file input unless -f is set (github #309). 52*d713e089SXin LI 53*d713e089SXin LI* Don't require newline input after +&... option (github #339). 54*d713e089SXin LI 55*d713e089SXin LI* Fix incorrect handling of some Private Use Unicode characters. 56*d713e089SXin LI 57*d713e089SXin LI* Fix ANSI color bug when overstriking with colored chars (github #276). 58*d713e089SXin LI 59*d713e089SXin LI* Fix compiler const warning (github #279). 60*d713e089SXin LI 61*d713e089SXin LI* Fix signal race in iread (github #280). 62*d713e089SXin LI 63*d713e089SXin LI* Fix reading procfs files on Linux (github #282). 64*d713e089SXin LI 65*d713e089SXin LI* Fix --ignore-case with ctrl-R (no regex) search (github #300). 66*d713e089SXin LI 67*d713e089SXin LI* Fix bug doing repeat search after setting & filter (github #299). 68*d713e089SXin LI 69*d713e089SXin LI* Fix bug doing repeat search before non-repeat search. 70*d713e089SXin LI 71*d713e089SXin LI* Fix crash with -R and certain line lengths (github #338). 72*d713e089SXin LI 73*d713e089SXin LI* Fix input of Windows dead keys (github #352). 74*d713e089SXin LI 75*d713e089SXin LI* Don't retain search options from a cancelled search (github #302). 76*d713e089SXin LI 77*d713e089SXin LI* Don't call realpath on fake filenames like "-" (github #289). 78*d713e089SXin LI 79*d713e089SXin LI* Implement lesstest test suite. 80*d713e089SXin LI 81*d713e089SXin LI* Convert function parameter definitions from K&R to C89 (github #316). 82*d713e089SXin LI 83*d713e089SXin LI====================================================================== 84*d713e089SXin LI 8595270f73SXin LI Major changes between "less" versions 590 and 608 8695270f73SXin LI 8795270f73SXin LI* Add the --header option (github #43). 8895270f73SXin LI 8995270f73SXin LI* Add the --no-number-headers option (github #178). 9095270f73SXin LI 9195270f73SXin LI* Add the --status-line option. 9295270f73SXin LI 9395270f73SXin LI* Add the --redraw-on-quit option (github #36). 9495270f73SXin LI 9595270f73SXin LI* Add the --search-options option (github #213). 9695270f73SXin LI 9795270f73SXin LI* Add the --exit-follow-on-close option (github #244). 9895270f73SXin LI 9995270f73SXin LI* Add 'H' color type to set color of header lines. 10095270f73SXin LI 10195270f73SXin LI* Add #version conditional to lesskey. 10295270f73SXin LI 10395270f73SXin LI* Add += syntax to variable section in lesskey files. 10495270f73SXin LI 10595270f73SXin LI* Allow option name in -- command to end with '=' in addition to '\n'. 10695270f73SXin LI 10795270f73SXin LI* Add $HOME/.config to possible locations of lesskey file (github #153). 10895270f73SXin LI 10995270f73SXin LI* Add $XDG_STATE_HOME and $HOME/.local/state to possible locations 11095270f73SXin LI of history file (github #223). 11195270f73SXin LI 11295270f73SXin LI* Don't read or write history file in secure mode (github #201). 11395270f73SXin LI 11495270f73SXin LI* Fix display of multibyte and double-width chars in prompt. 11595270f73SXin LI 11695270f73SXin LI* Fix ESC-BACKSPACE command when BACKSPACE key does not send 0x08 11795270f73SXin LI (github #188). 11895270f73SXin LI 11995270f73SXin LI* Add more \k codes to lesskey format. 12095270f73SXin LI 12195270f73SXin LI* Fix bug when empty file is modified while viewing it. 12295270f73SXin LI 12395270f73SXin LI* Fix bug when parsing a malformed lesskey file (githb #234). 12495270f73SXin LI 12595270f73SXin LI* Fix bug scrolling history when --incsearch is set (github #214). 12695270f73SXin LI 12795270f73SXin LI* Fix buffer overflow when invoking lessecho with more than 63 -m/-n 12895270f73SXin LI options (github #198). 12995270f73SXin LI 13095270f73SXin LI* Fix buffer overflow in bin_file (github #271). 13195270f73SXin LI 13295270f73SXin LI* Fix bug restoring color at end of highlighted text. 13395270f73SXin LI 13495270f73SXin LI* Fix bug in parsing lesskey file. 13595270f73SXin LI 13695270f73SXin LI* Defer moving cursor to lower left in some more cases. 13795270f73SXin LI 13895270f73SXin LI* Suppress TAB filename expansion in some cases where it doesn't make sense. 13995270f73SXin LI 14095270f73SXin LI* Fix termlib detection when compiler doesn't accept 14195270f73SXin LI calls to undeclared functions. 14295270f73SXin LI 14395270f73SXin LI* Fix bug in input of non-ASCII characters on Windows (github #247) 14495270f73SXin LI 14595270f73SXin LI* Escape filenames when invoking LESSCLOSE. 14695270f73SXin LI 14795270f73SXin LI* Fix bug using multibyte UTF-8 char in search string 14895270f73SXin LI with --incsearch (github #273). 14995270f73SXin LI 15095270f73SXin LI====================================================================== 15195270f73SXin LI 15230a1828cSXin LI Major changes between "less" versions 581 and 590 15330a1828cSXin LI 15430a1828cSXin LI* Make less able to read lesskey source files (deprecating lesskey). 15530a1828cSXin LI 15630a1828cSXin LI* If XDG_CONFIG_HOME is set, find lesskey source file 15730a1828cSXin LI in $XDG_CONFIG_HOME/lesskey rather than $HOME/.lesskey. 15830a1828cSXin LI 15930a1828cSXin LI* If XDG_DATA_HOME is set, find and store history file 16030a1828cSXin LI in $XDG_DATA_HOME/lesshst rather than $HOME/.lesshst. 16130a1828cSXin LI 16230a1828cSXin LI* Add the --lesskey-src option. 16330a1828cSXin LI 16430a1828cSXin LI* Add the --file-size option. 16530a1828cSXin LI 16630a1828cSXin LI* With -F, if screen is resized to make file fit on one screen, don't exit. 16730a1828cSXin LI 16830a1828cSXin LI* Fix bug which could leave terminal in mouse-reporting mode 16930a1828cSXin LI after exiting less. 17030a1828cSXin LI 17130a1828cSXin LI* Fix bug which caused failure to respond to window resize. 17230a1828cSXin LI 17330a1828cSXin LI* Fix backslash bug searching in tag file. 17430a1828cSXin LI 17530a1828cSXin LI====================================================================== 17630a1828cSXin LI 17730a1828cSXin LI Major changes between "less" versions 563 and 581 1782235c7feSXin LI 1792235c7feSXin LI* Change ESC-u command to toggle, not disable, highlighting per man page. 1802235c7feSXin LI 1812235c7feSXin LI* Add ESC-U command. 1822235c7feSXin LI 1832235c7feSXin LI* Add ctrl-W search modifier for wrapping search. 1842235c7feSXin LI 1852235c7feSXin LI* F command can be interrupted by ^X. 1862235c7feSXin LI 1872235c7feSXin LI* Support OSC 8 hyperlinks when -R is in effect. 1882235c7feSXin LI 1892235c7feSXin LI* g command with no number will ignore -j and put first line at top of screen. 1902235c7feSXin LI 1912235c7feSXin LI* Multiple + or -p command line options are handled better. 1922235c7feSXin LI 1932235c7feSXin LI* Add the --incsearch option. 1942235c7feSXin LI 1952235c7feSXin LI* Add the --line-num-width option. 1962235c7feSXin LI 1972235c7feSXin LI* Add the --status-col-width option. 1982235c7feSXin LI 1992235c7feSXin LI* Add the --use-color and --color options. 2002235c7feSXin LI 2012235c7feSXin LI* Display -w highlight even if highlighted line is empty. 2022235c7feSXin LI 2032235c7feSXin LI* If search result is in a long line, scroll to ensure it is visible. 2042235c7feSXin LI 2052235c7feSXin LI* Editing the same file under different names now creates only 2062235c7feSXin LI one entry in the file list. 2072235c7feSXin LI 2082235c7feSXin LI* Make visual bell more visible on some terminals. 2092235c7feSXin LI 2102235c7feSXin LI* Ring end-of-file bell no more than once per second. 2112235c7feSXin LI 2122235c7feSXin LI* Build can use either Python or Perl for Makefile.aut operations. 2132235c7feSXin LI 2142235c7feSXin LI* Fix crash when using the @ search modifier. 2152235c7feSXin LI 2162235c7feSXin LI* Fix crash in the 's' command due to duplicate free. 2172235c7feSXin LI 2182235c7feSXin LI* Fix realpath crash on Darwin. 219a15691bfSXin LI 220a15691bfSXin LI====================================================================== 221a15691bfSXin LI 2226f26c71dSXin LI Major changes between "less" versions 551 and 563 2236f26c71dSXin LI 2246f26c71dSXin LI* Update Unicode tables. 2256f26c71dSXin LI 2266f26c71dSXin LI* Treat Hangul Jamo medial vowels and final consonants as zero width. 2276f26c71dSXin LI 2286f26c71dSXin LI* Display error message immediately when -o is toggled and 2296f26c71dSXin LI input is not a pipe. 2306f26c71dSXin LI 2316f26c71dSXin LI* Fix regression: make screen repaint when "squished" and 2326f26c71dSXin LI a no-movement command is given. 2336f26c71dSXin LI 2346f26c71dSXin LI* Fix erroneous EOF calculation when F command is interrupted. 2356f26c71dSXin LI 2366f26c71dSXin LI* Make WIN32C version include this fix from 551: 2376f26c71dSXin LI Don't count lines in initial screen if using -X with -F. 2386f26c71dSXin LI 2396f26c71dSXin LI* Fix display bug in WIN32C version. 2406f26c71dSXin LI 2416f26c71dSXin LI* Fix memory corruption when built with libtermcap. 2426f26c71dSXin LI 2436f26c71dSXin LI* Support libtinfow. 2446f26c71dSXin LI 2456f26c71dSXin LI====================================================================== 2466f26c71dSXin LI 247b7780dbeSXin LI Major changes between "less" versions 530 and 551 248b7780dbeSXin LI 249b7780dbeSXin LI* Add --mouse option. 250b7780dbeSXin LI 251b7780dbeSXin LI* Add --wheel-lines option. 252b7780dbeSXin LI 253b7780dbeSXin LI* Add --no-histdups option. 254b7780dbeSXin LI 255b7780dbeSXin LI* Add --save-marks option. 256b7780dbeSXin LI 257b7780dbeSXin LI* Support PCRE2 regular expression library. 258b7780dbeSXin LI 259b7780dbeSXin LI* Redraw screen on SIGWINCH even if screen size doesn't change. 260b7780dbeSXin LI 261b7780dbeSXin LI* Shell-escape filenames in history so they can be used again. 262b7780dbeSXin LI 263b7780dbeSXin LI* Ring bell if user enters invalid long option name. 264b7780dbeSXin LI 265b7780dbeSXin LI* Use PCRE_UTF8 flag for pcre regular expressions when in UTF-8 mode. 266b7780dbeSXin LI 267b7780dbeSXin LI* Windows: use wide-char string to set console title. 268b7780dbeSXin LI 269b7780dbeSXin LI* Don't count lines in initial screen if using -X with -F. 270b7780dbeSXin LI 271b7780dbeSXin LI* Support mingw build system. 272b7780dbeSXin LI 273b7780dbeSXin LI* Fix bug in v command on empty file. 274b7780dbeSXin LI 275b7780dbeSXin LI* Fix bug in v command when filename contains shell metacharacters. 276b7780dbeSXin LI 277b7780dbeSXin LI====================================================================== 278b7780dbeSXin LI 27974709ed0SXin LI Major changes between "less" versions 487 and 530 280f6b74a7dSXin LI 281f6b74a7dSXin LI* Don't output terminal init sequence if using -F and file fits on one screen. 282f6b74a7dSXin LI 283b2ea2440SXin LI* When using -S, mark truncated lines with a special character. 284b2ea2440SXin LI The character can be changed or disabled via the new --rscroll option. 285f6b74a7dSXin LI 286b2ea2440SXin LI* New command M marks the last line displayed on the screen. 287f6b74a7dSXin LI 288b2ea2440SXin LI* New command ESC-m removes a line mark. 289b2ea2440SXin LI 290b2ea2440SXin LI* Status column (enabled via -J) now shows mark letters. 291b2ea2440SXin LI 292b2ea2440SXin LI* Status column shows search matches even if highlighting is disabled via -G. 293b2ea2440SXin LI 294b2ea2440SXin LI* A second ESC-u command will clear search match markers in the status column. 295b2ea2440SXin LI 296b2ea2440SXin LI* Do same ANSI escape code filtering for tag matching that we do for 297b2ea2440SXin LI searching, to help when viewing syntax-highlighted code. 298b2ea2440SXin LI 299b2ea2440SXin LI* Catch SIGTERM and clean up before exiting. 300b2ea2440SXin LI 301b2ea2440SXin LI* Fix bug initializing default charset on Windows. 302b2ea2440SXin LI 303b2ea2440SXin LI* Handle keypad ENTER key correctly if it sends something other than newline. 304b2ea2440SXin LI 305b2ea2440SXin LI* Fix buffering bug when using stdin with a LESSOPEN pipe. 306b2ea2440SXin LI 307b2ea2440SXin LI* On Windows, allow 'u' in -D option to enable underlining. 308b2ea2440SXin LI 309b2ea2440SXin LI* On Windows, use underline in sgr mode. 310b2ea2440SXin LI 311b2ea2440SXin LI* On Windows, convert UTF-8 to multibyte if console is not UTF-8. 312b2ea2440SXin LI 313b2ea2440SXin LI* Update Unicode tables to 2017-03-08. 314b2ea2440SXin LI 315*d713e089SXin LI* Pass-thru Unicode formatting chars (Cf type) instead of treating them 316b2ea2440SXin LI as binary chars. But treat them as binary if -U is set. 317b2ea2440SXin LI 318b2ea2440SXin LI* Fix erroneous binary file warning when UTF-8 file contains ANSI SGR sequences. 319b2ea2440SXin LI 320b2ea2440SXin LI* Fix bugs when using LESSOPEN and switching between stdin and other files. 321b2ea2440SXin LI 322b2ea2440SXin LI* Fix some bugs handling filenames containing shell metacharacters. 323f6b74a7dSXin LI 324f6b74a7dSXin LI* Fix some memory leaks. 325f6b74a7dSXin LI 326b2ea2440SXin LI* Allow some debugging environment variables to be set in lesskey file. 327b2ea2440SXin LI 328b2ea2440SXin LI* Code improvements: 329b2ea2440SXin LI . Use ANSI prototypes in funcs.h declarations. 330b2ea2440SXin LI . Fix some const mismatches. 331b2ea2440SXin LI . Remove archaic "register" in variable declarations. 332b2ea2440SXin LI 333f6b74a7dSXin LI====================================================================== 334f6b74a7dSXin LI 335f6b74a7dSXin LI Major changes between "less" versions 481 and 487 336f6b74a7dSXin LI 337f6b74a7dSXin LI* New commands ESC-{ and ESC-} to shift to start/end of displayed lines. 338f6b74a7dSXin LI 339f6b74a7dSXin LI* Make search highlights work correctly when changing caselessness with -i. 340f6b74a7dSXin LI 341f6b74a7dSXin LI* New option -Da in Windows version to enable SGR mode. 342f6b74a7dSXin LI 343f6b74a7dSXin LI* Fix "nothing to search" error when top or bottom line on screen is empty. 344f6b74a7dSXin LI 345f6b74a7dSXin LI* Fix bug when terminal has no "cm" termcap entry. 346f6b74a7dSXin LI 347f6b74a7dSXin LI* Fix incorrect display when entering double-width chars in search string. 348f6b74a7dSXin LI 349f6b74a7dSXin LI* Fix bug in Unicode handling that missed some double width characters. 350f6b74a7dSXin LI 351f6b74a7dSXin LI* Update Unicode database to 9.0.0. 352f6b74a7dSXin LI 353f6b74a7dSXin LI====================================================================== 354f6b74a7dSXin LI 355a15691bfSXin LI Major changes between "less" versions 458 and 481 356a15691bfSXin LI 357a15691bfSXin LI* Don't overwrite history file; just append to it. 358a15691bfSXin LI 359a15691bfSXin LI* New command ESC-G goes to end of currently buffered data in a pipe. 360a15691bfSXin LI 361a15691bfSXin LI* Disable history feature when compiled with LESSHISTFILE set to "-". 362a15691bfSXin LI 363a15691bfSXin LI* In more-compatible mode, make the -p option apply to every file opened, 364a15691bfSXin LI not just the first one. 365a15691bfSXin LI 366a15691bfSXin LI* In more-compatible mode, change the -e option to work like -E, not -EF. 367a15691bfSXin LI 368a15691bfSXin LI* Treat multiple CRs before LF are like one CR (all the CRs are hidden). 369a15691bfSXin LI 370a15691bfSXin LI* Allow "extra" string in lesskey file to append to a multi-char command 371a15691bfSXin LI (like a search pattern), without executing the command. 372a15691bfSXin LI 373a15691bfSXin LI* Ignore -u/-U setting while viewing help file, so that 374a15691bfSXin LI underline and bold chars are displayed correctly. 375a15691bfSXin LI 376a15691bfSXin LI* Improve detection of "binary" files in UTF-8 mode. 377a15691bfSXin LI 378a15691bfSXin LI* Fix bug with ++ commands. 379a15691bfSXin LI 380a15691bfSXin LI* Fix bug where prompt was sometimes not displayed with +G. 381a15691bfSXin LI 382a15691bfSXin LI* Fix possible memory corruption 383a15691bfSXin LI 384a15691bfSXin LI* Fix bugs and improve performance in ampersand filtering. 385a15691bfSXin LI 386a15691bfSXin LI* Automate construction of Unicode tables from Unicode database. 387a15691bfSXin LI 388a15691bfSXin LI* Allow %% escape sequence in LESSOPEN variable. 38996e55cc7SXin LI 39096e55cc7SXin LI====================================================================== 39196e55cc7SXin LI 3927bd2567cSXin LI Major changes between "less" versions 451 and 458 3934cc5fc9aSXin LI 3947bd2567cSXin LI* Allow backslash escaping of metacharacters in LESS environment variable 3957bd2567cSXin LI after the --use-backslash option. 3964cc5fc9aSXin LI 3974cc5fc9aSXin LI* Don't quit if syntax errors are found in command line options. 3984cc5fc9aSXin LI 3994cc5fc9aSXin LI* Increase sizes of some internal buffers. 4004cc5fc9aSXin LI 4014cc5fc9aSXin LI* Fix configure bug with --with-regex=none. 4024cc5fc9aSXin LI 4034cc5fc9aSXin LI* Fix crash with "stty rows 0". 4044cc5fc9aSXin LI 4054cc5fc9aSXin LI* Fix Win32 attribute display bug. 4064cc5fc9aSXin LI 4077bd2567cSXin LI* Fix display bug when using up/down arrow on the command line. 4087bd2567cSXin LI 4094cc5fc9aSXin LI====================================================================== 4104cc5fc9aSXin LI 411e2449719SXin LI Major changes between "less" versions 444 and 451 41296e55cc7SXin LI 41396e55cc7SXin LI* Add ESC-F command to keep reading data until a pattern is found. 41496e55cc7SXin LI 41596e55cc7SXin LI* Use exit code of LESSOPEN script if LESSOPEN starts with "||". 41696e55cc7SXin LI 41796e55cc7SXin LI* When up/down arrow is used on the command line immediately after 41896e55cc7SXin LI typing text, the next command starting with that text is found. 41996e55cc7SXin LI 42096e55cc7SXin LI* Add support for GNU regex. 42196e55cc7SXin LI 42296e55cc7SXin LI* Add configure option --with-regex=none and fix compile errors 42396e55cc7SXin LI when compiling with no regex library. 42496e55cc7SXin LI 42596e55cc7SXin LI* Fix bugs handling SGR sequences in Win32. 42696e55cc7SXin LI 42796e55cc7SXin LI* Fix possible crashes caused by malformed LESSOPEN or 42896e55cc7SXin LI LESSCLOSE variables. 42996e55cc7SXin LI 43096e55cc7SXin LI* Fix bug highlighting text which is discontiguous in the file 43196e55cc7SXin LI due to backspace processing. 43296e55cc7SXin LI 43396e55cc7SXin LI* Fix bug in displaying status column when scrolling backwards 43496e55cc7SXin LI with -J and -S in effect. 435a5f0fb15SPaul Saab 436a5f0fb15SPaul Saab====================================================================== 437a5f0fb15SPaul Saab 438b24bfc5aSXin LI Major changes between "less" versions 443 and 444 439b24bfc5aSXin LI 440b24bfc5aSXin LI* Fix bug in unget handling that can cause strange effects on the 441b24bfc5aSXin LI command line. 442b24bfc5aSXin LI 443b24bfc5aSXin LI* Remove vestiges of obsolete -l option that can cause a crash. 444b24bfc5aSXin LI 445b24bfc5aSXin LI====================================================================== 446b24bfc5aSXin LI 44733096f16SXin LI Major changes between "less" versions 436 and 443 44833096f16SXin LI 44933096f16SXin LI* Change search behavior such that when a search is given an explicit 45033096f16SXin LI pattern, the entire displayed screen is included in the search and 45133096f16SXin LI not just the portion after the target line. 45233096f16SXin LI 45333096f16SXin LI* Add -A option to change search behavior to the old way: only 45433096f16SXin LI the portion of the screen after the target line is searched. 45533096f16SXin LI 45633096f16SXin LI* Add %F formatting to prompt strings, replaced by the last component 45733096f16SXin LI of the input file. 45833096f16SXin LI 45933096f16SXin LI* Control-G while editing a command exits the command. 46033096f16SXin LI 46133096f16SXin LI* Less now exits with status 2 if control-C is pressed and -K is in effect. 46233096f16SXin LI 46333096f16SXin LI* Fix "ungetc overflow" when passing long commands via the -p option. 46433096f16SXin LI 46533096f16SXin LI* Fix bug in using line filtering via the & command 46633096f16SXin LI in combination with -i and -I. 46733096f16SXin LI 46833096f16SXin LI* Fix bug in handling negative arguments to the -j option. 46933096f16SXin LI 47033096f16SXin LI* Fix bug in handling %t in prompt strings. 47133096f16SXin LI 47233096f16SXin LI* Improve handling of long option names. 47333096f16SXin LI 47433096f16SXin LI* Improve percentage calculation for very large files. 47533096f16SXin LI 47633096f16SXin LI====================================================================== 47733096f16SXin LI 478f0be0a1fSXin LI Major changes between "less" versions 429 and 436 479f0be0a1fSXin LI 480f0be0a1fSXin LI* Don't pass "-" to non-pipe LESSOPEN unless it starts with "-". 481f0be0a1fSXin LI 482f0be0a1fSXin LI* Allow a fraction as the argument to the -# (--shift) option. 483f0be0a1fSXin LI 484f0be0a1fSXin LI* Fix highlight bug when underlined/overstruck text matches at end of line. 485f0be0a1fSXin LI 486f0be0a1fSXin LI* Fix non-regex searches with ctrl-R. 487f0be0a1fSXin LI 488f0be0a1fSXin LI====================================================================== 489f0be0a1fSXin LI 4907374caaaSXin LI Major changes between "less" versions 424 and 429 4917374caaaSXin LI 4927374caaaSXin LI* LESSOPEN pipe will now be used on standard input, if the LESSOPEN 4937374caaaSXin LI environment variable begins with "|-". 4947374caaaSXin LI 4957374caaaSXin LI* The -D option with one number now means use the normal background color. 4967374caaaSXin LI 4977374caaaSXin LI* Don't change permissions on history file if it is not a regular file. 4987374caaaSXin LI 4997374caaaSXin LI* Fix non-ANSI-compliant code that caused problems with some compilers. 5007374caaaSXin LI 5017374caaaSXin LI* Fix binary file detection in UTF-8 mode. 5027374caaaSXin LI 5037374caaaSXin LI* Fix display problems with long lines on "ignaw" terminals. 5047374caaaSXin LI 5057374caaaSXin LI* Fix problem interrupting the line number calculation for initial prompt. 5067374caaaSXin LI 507*d713e089SXin LI* Fix SGR emulation when dealing with multiple attributes (e.g. bold+underline). 5087374caaaSXin LI 5097374caaaSXin LI* Fix highlight bug when searching for underlined/overstruck text. 5107374caaaSXin LI 5117374caaaSXin LI====================================================================== 5127374caaaSXin LI 5137374caaaSXin LI Major changes between "less" versions 418 and 424 5147374caaaSXin LI 5157374caaaSXin LI* New "&" command allows filtering of lines based on a pattern. 5167374caaaSXin LI 5177374caaaSXin LI* Status column now displays a search match, even if the matched 5187374caaaSXin LI string is scrolled off screen because -S is in effect. 5197374caaaSXin LI 5207374caaaSXin LI* Improve behavior of -F option. 5217374caaaSXin LI 5227374caaaSXin LI* Allow CSI character (0x9B) to work in UTF-8 mode. 5237374caaaSXin LI 5247374caaaSXin LI* Output carriage return at startup in case terminal doesn't default 5257374caaaSXin LI to column 1. 5267374caaaSXin LI 5277374caaaSXin LI* Fix bug in '' (quote, quote) command after G command. 5287374caaaSXin LI 5297374caaaSXin LI====================================================================== 5307374caaaSXin LI 5317374caaaSXin LI Major changes between "less" versions 416 and 418 5327374caaaSXin LI 5337374caaaSXin LI* Color escape sequences are now supported in WIN32 build. 5347374caaaSXin LI 5357374caaaSXin LI* Makefile now uses EXEEXT feature of autoconf. 5367374caaaSXin LI 5377374caaaSXin LI* Fix search bug when using -R and text contains ANSI color escape sequences. 5387374caaaSXin LI 5397374caaaSXin LI* Fix crash when using -r with UTF-8 text containing 0x9B bytes. 5407374caaaSXin LI 5417374caaaSXin LI* Fix display bug when using ' command to move less than one page forward. 5427374caaaSXin LI 5437374caaaSXin LI* Update GPL to version 3. 5447374caaaSXin LI 5457374caaaSXin LI====================================================================== 546a5f0fb15SPaul Saab 54733a9f6abSXin LI Major changes between "less" versions 409 and 416 548464501a8SXin LI 549464501a8SXin LI* New --follow-name option makes F command follow the name of a file 550464501a8SXin LI rather than the file descriptor if an open file is renamed. 551464501a8SXin LI 552464501a8SXin LI* Make searching with -i/-I work correctly with non-ASCII text. 553464501a8SXin LI 554464501a8SXin LI* Fix DJGPP build. 555464501a8SXin LI 556464501a8SXin LI====================================================================== 557464501a8SXin LI 558f78327b5SXin LI Major changes between "less" versions 406 and 409 5591c6a5c10SXin LI 5601c6a5c10SXin LI* Support CSI escape sequences, like SGR escape sequences. 5611c6a5c10SXin LI 5621c6a5c10SXin LI* Fix bug which caused screen to fail to repaint when window is resized. 5631c6a5c10SXin LI 5641c6a5c10SXin LI* Fix bug in using -i and -I flags with non-ASCII text. 5651c6a5c10SXin LI 5661c6a5c10SXin LI* Fix configure bug on systems which don't support langinfo.h. 5671c6a5c10SXin LI 568f78327b5SXin LI* Fix crash when searching text containing certain invalid UTF-8 sequences. 569f78327b5SXin LI 5701c6a5c10SXin LI====================================================================== 5711c6a5c10SXin LI 572efd72c2eSXin LI Major changes between "less" versions 394 and 406 5737f074f9cSXin LI 5747f074f9cSXin LI* Allow decimal point in number for % (percent) command. 5757f074f9cSXin LI 5767f074f9cSXin LI* Allow decimal point in number for -j option (fraction of screen height). 5777f074f9cSXin LI 5787f074f9cSXin LI* Make n command fetch previous pattern from history file on first search. 5797f074f9cSXin LI 5807f074f9cSXin LI* Don't rewrite history file if it has not changed. 5817f074f9cSXin LI 5827f074f9cSXin LI* Don't move to bottom of screen on first page. 5837f074f9cSXin LI 5847f074f9cSXin LI* Don't output extraneous newlines, so copy & pasting lines from the 5857f074f9cSXin LI output works better. 5867f074f9cSXin LI 5877f074f9cSXin LI* The -c option has been made identical with the -C option. 5887f074f9cSXin LI 589*d713e089SXin LI* Allow "/dev/null" as synonym for "-" in LESSHISTFILE to indicate 5907f074f9cSXin LI that no history file should be used. 5917f074f9cSXin LI 5927f074f9cSXin LI* Search can now find text which follows a null byte, if the PCRE 5937f074f9cSXin LI library is used, or if no-regex searching (ctrl-R) is used. 5947f074f9cSXin LI 5957f074f9cSXin LI* Better compatibility with POSIX more specification. 5967f074f9cSXin LI 5977f074f9cSXin LI* Make -f work for directories. 5987f074f9cSXin LI 5997f074f9cSXin LI* Make "t" cmd traverse tags in the correct order. 6007f074f9cSXin LI 6017f074f9cSXin LI* Allow a few binary characters in the input file before warning 6027f074f9cSXin LI that the file is binary. 6037f074f9cSXin LI 6047f074f9cSXin LI* Don't warn that file is binary if it merely contains ANSI color sequences 6057f074f9cSXin LI and -R is in effect. 6067f074f9cSXin LI 6077f074f9cSXin LI* Update Unicode character tables. 6087f074f9cSXin LI 6097f074f9cSXin LI* Support DESTDIR in Makefile. 6107f074f9cSXin LI 6117f074f9cSXin LI* Fix bug when filename contains certain shell metacharacters such as "$". 6127f074f9cSXin LI 6137f074f9cSXin LI* Fix bug when resizing the window while waiting for input from a pipe. 6147f074f9cSXin LI 6157f074f9cSXin LI* Fix configure bugs. 6167f074f9cSXin LI 6177f074f9cSXin LI====================================================================== 6187f074f9cSXin LI 6196dcb072bSXin LI Major changes between "less" versions 382 and 394 6206dcb072bSXin LI 6216dcb072bSXin LI* Add history file to save search and shell command history between 6226dcb072bSXin LI invocations of less. 6236dcb072bSXin LI 6246dcb072bSXin LI* Improve behavior of history list for search and shell commands. 6256dcb072bSXin LI 6266dcb072bSXin LI* Add -K (or --quit-on-intr) option to make less exit immediately on ctrl-C. 6276dcb072bSXin LI 6286dcb072bSXin LI* Improve handling of UTF-8 files and commands, including better 6296dcb072bSXin LI line wrapping and handling double-width chars. 6306dcb072bSXin LI 6316dcb072bSXin LI* Added LESSUTFBINFMT environment variable to control display of 6326dcb072bSXin LI non-printable characters in a UTF-8 file. 6336dcb072bSXin LI 6346dcb072bSXin LI* Add --with-secure option to configure, to make it easier to 6356dcb072bSXin LI build a secure version of less. 6366dcb072bSXin LI 6376dcb072bSXin LI* Show search matches in the status column even if search highlights 6386dcb072bSXin LI are disabled via the -G option or the ESC-u command. 6396dcb072bSXin LI 6406dcb072bSXin LI* Improve performance when the file contains very long lines. 6416dcb072bSXin LI 6426dcb072bSXin LI* Add "windows" charset. 6436dcb072bSXin LI 6446dcb072bSXin LI* Add man page for lessecho. 6456dcb072bSXin LI 6466dcb072bSXin LI* Add support for erase2 character, treated same as erase. 6476dcb072bSXin LI 6486dcb072bSXin LI* Use ASCII lowercase/uppercase logic when operating on the command line. 6496dcb072bSXin LI 6506dcb072bSXin LI* Update makefile for Borland C++ 5.5.1. 6516dcb072bSXin LI 6526dcb072bSXin LI* Fix bug in calculating number of pages for %D prompt. 6536dcb072bSXin LI 6546dcb072bSXin LI* Fix bug in handling tag file error. 6556dcb072bSXin LI 6566dcb072bSXin LI* Fix obscure bug if input file is deleted while viewing help. 6576dcb072bSXin LI 6586dcb072bSXin LI* Fix bug handling filenames which include square brackets. 6596dcb072bSXin LI 6606dcb072bSXin LI* Fix possible buffer overflow in "global" tag search. 6616dcb072bSXin LI 6626dcb072bSXin LI* Fix possible buffer overflow in usage of LESSOPEN and LESSCLOSE. 6636dcb072bSXin LI 6646dcb072bSXin LI* Fix buffer overflow in reverse search. 6656dcb072bSXin LI 6666dcb072bSXin LI====================================================================== 6676dcb072bSXin LI 6686dcb072bSXin LI Major changes between "less" versions 381 and 382 6696dcb072bSXin LI 6706dcb072bSXin LI* Removed some old copyrighted code. 6716dcb072bSXin LI This probably breaks OS/9 support. 6726dcb072bSXin LI 6736dcb072bSXin LI====================================================================== 6746dcb072bSXin LI 675000ba3e8STim J. Robbins Major changes between "less" versions 378 and 381 676000ba3e8STim J. Robbins 677000ba3e8STim J. Robbins* New -L option to disable LESSOPEN processing. 678000ba3e8STim J. Robbins 679000ba3e8STim J. Robbins* Further support for large (64 bit) file addressing. 680000ba3e8STim J. Robbins Large file support is now set up by the configure script. 681000ba3e8STim J. Robbins 682000ba3e8STim J. Robbins* Use autoconf 2.54. 683000ba3e8STim J. Robbins Replace configure.in, acconfig.h, defines.h.top with configure.ac. 684000ba3e8STim J. Robbins 685000ba3e8STim J. Robbins* Overstriking underscore with underscore is now bold or underlined 686000ba3e8STim J. Robbins depending on context. 687000ba3e8STim J. Robbins 688000ba3e8STim J. Robbins* Use only 7 spaces for line numbers in -N mode, if possible. 689000ba3e8STim J. Robbins 690000ba3e8STim J. Robbins* Fix some bugs in handling overstriking in UTF-8 files. 691000ba3e8STim J. Robbins 692000ba3e8STim J. Robbins* Fix some nroff issues in the man page. 693000ba3e8STim J. Robbins 694000ba3e8STim J. Robbins====================================================================== 695000ba3e8STim J. Robbins 696000ba3e8STim J. Robbins Major changes between "less" versions 376 and 378 697000ba3e8STim J. Robbins 698000ba3e8STim J. Robbins* Bug fixes: 699000ba3e8STim J. Robbins Default buffer space is now 64K as documented. 700000ba3e8STim J. Robbins Search highlighting works properly when used with -R. 701000ba3e8STim J. Robbins Windows version works properly when input file contains carriage returns. 702000ba3e8STim J. Robbins Clean up some compiler warnings. 703000ba3e8STim J. Robbins 704000ba3e8STim J. Robbins====================================================================== 705000ba3e8STim J. Robbins 706000ba3e8STim J. Robbins Major changes between "less" versions 358 and 376 707c9346414SPaul Saab 708c9346414SPaul Saab* -x option can now specify multiple variable-width tab stops. 709c9346414SPaul Saab 710c9346414SPaul Saab* -X option no longer disables keypad initialization. 711c9346414SPaul Saab New option --no-keypad disables keypad initialization. 712c9346414SPaul Saab 713c9346414SPaul Saab* New commands t and T step through multiple tag matches. 714c9346414SPaul Saab Added support for "global(1)" tags 715c9346414SPaul Saab (see http://www.gnu.org/software/global/global.html). 716c9346414SPaul Saab 717c9346414SPaul Saab* New prompt style set by option -Pw defines the message printed 718c9346414SPaul Saab while waiting for data in the F command. 719c9346414SPaul Saab 720c9346414SPaul Saab* System-wide lesskey file now defaults to sysless in etc directory 721c9346414SPaul Saab instead of .sysless in bin directory. 722c9346414SPaul Saab Use "configure --sysconfdir=..." to change it. 723c9346414SPaul Saab (For backwards compatibility, .sysless in bin is still recognized.) 724c9346414SPaul Saab 725c9346414SPaul Saab* Pressing RightArrow or LeftArrow while entering a number now shifts 726c9346414SPaul Saab the display N columns rather than editing the number itself. 727c9346414SPaul Saab 728c9346414SPaul Saab* Status column (enabled with -J) now shows search results. 729c9346414SPaul Saab 730c9346414SPaul Saab* Windows version sets window title. 731c9346414SPaul Saab 732c9346414SPaul Saab* Default LESSCHARSET for MS-DOS versions is now "dos". 733c9346414SPaul Saab 734000ba3e8STim J. Robbins* Searching works better with ANSI (SGR) escape sequences. 735000ba3e8STim J. Robbins ANSI color escape sequences are now supported in the MS-DOS (DJGPP) version. 736000ba3e8STim J. Robbins 737000ba3e8STim J. Robbins* Improved performance in reading very large pipes. 738c9346414SPaul Saab 739*d713e089SXin LI* Eliminated some dependencies on file offsets being 32 bits. 740c9346414SPaul Saab 741c9346414SPaul Saab* Fixed problems when viewing files with very long lines. 742c9346414SPaul Saab 743c9346414SPaul Saab* Fixed overstriking in UTF-8 mode, and overstriking tabs. 744c9346414SPaul Saab 745c9346414SPaul Saab* Improved horizontal shifting of text using -R option with ANSI color. 746c9346414SPaul Saab 747000ba3e8STim J. Robbins* Improved handling of filenames containing shell metacharacters. 748000ba3e8STim J. Robbins 749c9346414SPaul Saab* Some fixes for EBCDIC systems. 750c9346414SPaul Saab 751c9346414SPaul Saab* Some fixes for OS/2 systems. 752c9346414SPaul Saab 753c9346414SPaul Saab====================================================================== 754c9346414SPaul Saab 7558ed69c6fSPaul Saab Major changes between "less" versions 354 and 358 7568ed69c6fSPaul Saab 7578ed69c6fSPaul Saab* Add -J (--status-column) option to display a status column. 7588ed69c6fSPaul Saab 7598ed69c6fSPaul Saab* Add -# (--shift) option to set default horizontal shift distance. 7608ed69c6fSPaul Saab Default horizontal shift distance is now one-half screen width. 7618ed69c6fSPaul Saab 7628ed69c6fSPaul Saab* Horizontal shifting does not shift line numbers if -N is in effect. 7638ed69c6fSPaul Saab 7648ed69c6fSPaul Saab* Horizontal shifting acts as though -S were set, to avoid confusion. 7658ed69c6fSPaul Saab 7668ed69c6fSPaul Saab====================================================================== 7678ed69c6fSPaul Saab 7688ed69c6fSPaul Saab 769a5f0fb15SPaul Saab Major changes between "less" versions 352 and 354 770a5f0fb15SPaul Saab 771a5f0fb15SPaul Saab* Allow space after numeric-valued command line options. 772a5f0fb15SPaul Saab 773a5f0fb15SPaul Saab* Fix problem with configuring terminal libraries on some systems. 774a5f0fb15SPaul Saab 775a5f0fb15SPaul Saab* Add support for PCRE regular expression library. 776a5f0fb15SPaul Saab 777a5f0fb15SPaul Saab* Add --with-regex option to configure to allow manually selecting 778a5f0fb15SPaul Saab a regular expression library. 779a5f0fb15SPaul Saab 780a5f0fb15SPaul Saab* Fix bug compiling with SECURE = 1. 781a5f0fb15SPaul Saab 782a5f0fb15SPaul Saab====================================================================== 783a5f0fb15SPaul Saab 784a5f0fb15SPaul Saab 785a5f0fb15SPaul Saab Major changes between "less" versions 346 and 352 786a5f0fb15SPaul Saab 787a5f0fb15SPaul Saab* Enable UTF-8 if "UTF-8" appears in locale-related environment variables. 788a5f0fb15SPaul Saab 789a5f0fb15SPaul Saab* Add --with-editor option to configure script. 790a5f0fb15SPaul Saab 791a5f0fb15SPaul Saab* The -M prompt and = message now show the top and bottom line number. 792a5f0fb15SPaul Saab 793a5f0fb15SPaul Saab* Fix bug in running the editor on a file whose name contains quotes, etc. 794a5f0fb15SPaul Saab 795a5f0fb15SPaul Saab* Fix bug in horizontal scrolling of long lines. 796a5f0fb15SPaul Saab 797a5f0fb15SPaul Saab* Fix bug in doing :d on a file which contains marks. 798a5f0fb15SPaul Saab 799a5f0fb15SPaul Saab* Fix bug causing cleared lines to sometimes be filled with standout, 800a5f0fb15SPaul Saab bold, underline, etc. on certain terminals. 801a5f0fb15SPaul Saab 802a5f0fb15SPaul Saab* Fixes for MS-DOS (DJGPP) version. 803a5f0fb15SPaul Saab 804a5f0fb15SPaul Saab====================================================================== 805a5f0fb15SPaul Saab 806a5f0fb15SPaul Saab 807a5f0fb15SPaul Saab Major changes between "less" versions 340 and 346 808a5f0fb15SPaul Saab 809a5f0fb15SPaul Saab* The UTF-8 character set is now supported. 810a5f0fb15SPaul Saab 811a5f0fb15SPaul Saab* The default character set is now latin1 rather than ascii. 812a5f0fb15SPaul Saab 813a5f0fb15SPaul Saab* New option -R (--RAW-CONTROL-CHARS) is like -r but handles 814a5f0fb15SPaul Saab long (wrapped) lines correctly, as long as the input contains only 815a5f0fb15SPaul Saab normal text and ANSI color escape sequences. 816a5f0fb15SPaul Saab 817a5f0fb15SPaul Saab* New option -F (--quit-if-one-screen) quits if the text fits on 818a5f0fb15SPaul Saab the first screen. 819a5f0fb15SPaul Saab 820a5f0fb15SPaul Saab* The -w option now highlights the target line of a g or p command. 821a5f0fb15SPaul Saab 822a5f0fb15SPaul Saab* A system-wide lesskey file is supported (LESSKEY_SYSTEM). 823a5f0fb15SPaul Saab 824a5f0fb15SPaul Saab* New escape for prompt strings: %c is replaced by column number. 825a5f0fb15SPaul Saab 826a5f0fb15SPaul Saab* New escape for prompt strings: %P is replaced by percentage into 827a5f0fb15SPaul Saab file, based on line number rather than byte offset. 828a5f0fb15SPaul Saab 829a5f0fb15SPaul Saab* HOME and END keys now jump to beginning of file or end of file. 830a5f0fb15SPaul Saab 831a5f0fb15SPaul Saab====================================================================== 832a5f0fb15SPaul Saab 833a5f0fb15SPaul Saab 834a5f0fb15SPaul Saab Major changes between "less" versions 337 and 340 835a5f0fb15SPaul Saab 836a5f0fb15SPaul Saab* Command line options for less may now be given in either the old 837a5f0fb15SPaul Saab single-letter form, or a new long name form (--option-name). 838a5f0fb15SPaul Saab See the less man page or "less --help" for the list of long option names. 839a5f0fb15SPaul Saab 840a5f0fb15SPaul Saab* Command line options for lesskey may now be given in a new long name 841a5f0fb15SPaul Saab form. See the lesskey man page for the list of long option names. 842a5f0fb15SPaul Saab 843a5f0fb15SPaul Saab* New command -- toggles an option using the long option name. 844a5f0fb15SPaul Saab 845a5f0fb15SPaul Saab* New command __ queries an option using the long option name. 846a5f0fb15SPaul Saab 847a5f0fb15SPaul Saab* The old -- command is renamed as -!. 848a5f0fb15SPaul Saab 849a5f0fb15SPaul Saab* If a ^P is entered between the dash and the option letter of the - 850a5f0fb15SPaul Saab command, the message describing the new setting is suppressed. 851a5f0fb15SPaul Saab 852a5f0fb15SPaul Saab* Lesskey files may now contain \k escape sequences to represent the 853a5f0fb15SPaul Saab "special" keys (arrows, PAGE-UP/PAGE-DOWN, HOME, END, INSERT, DELETE). 854a5f0fb15SPaul Saab 855a5f0fb15SPaul Saab* New command :d removes the current file from the list of files. 856a5f0fb15SPaul Saab 857a5f0fb15SPaul Saab* New option -~ (like -w before version 335) 858a5f0fb15SPaul Saab suppresses tildes after end-of-file. 859a5f0fb15SPaul Saab 860a5f0fb15SPaul Saab* Less is now released under the GNU General Public License. 861a5f0fb15SPaul Saab 862a5f0fb15SPaul Saab====================================================================== 863a5f0fb15SPaul Saab 864a5f0fb15SPaul Saab 865a5f0fb15SPaul Saab Major changes between "less" versions 335 and 337 866a5f0fb15SPaul Saab 867a5f0fb15SPaul Saab* Fixed bugs in "make install". 868a5f0fb15SPaul Saab 869a5f0fb15SPaul Saab====================================================================== 870a5f0fb15SPaul Saab 871a5f0fb15SPaul Saab 872a5f0fb15SPaul Saab Major changes between "less" versions 332 and 335 873a5f0fb15SPaul Saab 874a5f0fb15SPaul Saab* The old -w flag (suppress tildes after end-of-file) has been removed. 875a5f0fb15SPaul Saab 876a5f0fb15SPaul Saab* New -w flag highlights the first new line after a forward-screen. 877a5f0fb15SPaul Saab 878a5f0fb15SPaul Saab* New -W flag highlights the first new line after any forward movement. 879a5f0fb15SPaul Saab 880a5f0fb15SPaul Saab* Window resize works even if LINES and/or COLUMNS environment 881a5f0fb15SPaul Saab variables are incorrect. 882a5f0fb15SPaul Saab 883a5f0fb15SPaul Saab* New percent escapes for prompt strings: 884a5f0fb15SPaul Saab %d is replaced by the page number, and 885a5f0fb15SPaul Saab %D is replaced by the number of pages in the file. 886a5f0fb15SPaul Saab 887a5f0fb15SPaul Saab* Added charsets "iso8859" and "ebcdic". 888a5f0fb15SPaul Saab 889a5f0fb15SPaul Saab* In Windows version, uses HOMEDRIVE and HOMEPATH if HOME is not defined. 890a5f0fb15SPaul Saab 891a5f0fb15SPaul Saab* Fixed some bugs causing incorrect display on DOS/Windows. 892a5f0fb15SPaul Saab 893a5f0fb15SPaul Saab====================================================================== 894a5f0fb15SPaul Saab 895a5f0fb15SPaul Saab 896a5f0fb15SPaul Saab Major changes between "less" versions 330 and 332 897a5f0fb15SPaul Saab 898a5f0fb15SPaul Saab* Filenames from the command line are entered into the command history, 899a5f0fb15SPaul Saab so UPARROW/DOWNARROW can be used to retrieve them from the :e command. 900a5f0fb15SPaul Saab 901a5f0fb15SPaul Saab* Now works correctly on Windows when using a scrolling terminal 902a5f0fb15SPaul Saab window (buffer larger than display window). 903a5f0fb15SPaul Saab 904a5f0fb15SPaul Saab* On Windows, now restores the console screen on exit. 905a5f0fb15SPaul Saab Use -X to get the old behavior. 906a5f0fb15SPaul Saab 907a5f0fb15SPaul Saab* Fixed bug on Windows when CAPS-LOCK or NUM-LOCK is pressed. 908a5f0fb15SPaul Saab 909a5f0fb15SPaul Saab* Fixed bug on Windows when piping output of an interactive program. 910a5f0fb15SPaul Saab 911a5f0fb15SPaul Saab* Fixed bug in tags file processing when tags file has DOS-style 912a5f0fb15SPaul Saab line terminators (CR/LF). 913a5f0fb15SPaul Saab 914a5f0fb15SPaul Saab* Fixed compilation problem on OS/2. 915a5f0fb15SPaul Saab 916a5f0fb15SPaul Saab====================================================================== 917a5f0fb15SPaul Saab 918a5f0fb15SPaul Saab 919a5f0fb15SPaul Saab Major changes between "less" versions 321 and 330 920a5f0fb15SPaul Saab 921a5f0fb15SPaul Saab* Now supports filenames containing spaces (in double quotes). 922a5f0fb15SPaul Saab New option -" can be used to change the quoting characters. 923a5f0fb15SPaul Saab 924a5f0fb15SPaul Saab* In filename completion, a slash is appended to a directory name. 925a5f0fb15SPaul Saab If the environment variable LESSSEPARATOR is set, the value of 926a5f0fb15SPaul Saab that variable, rather than a slash, is appended. 927a5f0fb15SPaul Saab 928a5f0fb15SPaul Saab* LeftArrow and RightArrow are same as ESC-[ and ESC-]. 929a5f0fb15SPaul Saab 930a5f0fb15SPaul Saab* Added commands ESC-( and ESC-), same as ESC-[ and ESC-]. 931a5f0fb15SPaul Saab 932a5f0fb15SPaul Saab* A "quit" command defined in a lesskey file may now have an "extra" 933a5f0fb15SPaul Saab string, which is used to return an exit code from less when it quits. 934a5f0fb15SPaul Saab 935a5f0fb15SPaul Saab* New environment variables LESSMETACHARS and LESSMETAESCAPE provide 936a5f0fb15SPaul Saab more control over how less interfaces to the shell. 937a5f0fb15SPaul Saab 938a5f0fb15SPaul Saab* Ported to Microsoft Visual C compiler for Windows. 939a5f0fb15SPaul Saab 940a5f0fb15SPaul Saab* Ported to DJGPP compiler for MS-DOS. 941a5f0fb15SPaul Saab 942a5f0fb15SPaul Saab* Bug fixes. 943a5f0fb15SPaul Saab 944a5f0fb15SPaul Saab====================================================================== 945a5f0fb15SPaul Saab 946a5f0fb15SPaul Saab 947a5f0fb15SPaul Saab Major changes between "less" versions 291 and 321 948a5f0fb15SPaul Saab 949a5f0fb15SPaul Saab* Command line at bottom of screen now scrolls, so it can be longer 950a5f0fb15SPaul Saab than the screen width. 951a5f0fb15SPaul Saab 952a5f0fb15SPaul Saab* New commands ESC-] and ESC-[ scroll the display horizontally. 953a5f0fb15SPaul Saab 954a5f0fb15SPaul Saab* New command ESC-SPACE scrolls forward a full screen, even if it 955a5f0fb15SPaul Saab hits end-of-file. 956a5f0fb15SPaul Saab 957a5f0fb15SPaul Saab* Alternate modifiers for search commands: ^N is same as !, 958a5f0fb15SPaul Saab ^F is same as @, and ^E is same as *. 959a5f0fb15SPaul Saab 960a5f0fb15SPaul Saab* New modifier for search commands: ^K means highlight the matches 961a5f0fb15SPaul Saab currently on-screen, but don't move to the first match. 962a5f0fb15SPaul Saab 963a5f0fb15SPaul Saab* New modifier for search commands: ^R means don't use regular 964a5f0fb15SPaul Saab expressions in the search. 965a5f0fb15SPaul Saab 966a5f0fb15SPaul Saab* Environment variable LESSKEY gives name of default lesskey file. 967a5f0fb15SPaul Saab 968a5f0fb15SPaul Saab* Environment variable LESSSECURE will force less to run in 969a5f0fb15SPaul Saab "secure" mode. 970a5f0fb15SPaul Saab 971a5f0fb15SPaul Saab* Command line argument "--" signals that the rest of the arguments 972a5f0fb15SPaul Saab are files (not option flags). 973a5f0fb15SPaul Saab 974a5f0fb15SPaul Saab* Help file (less.hlp) is no longer installed. Help text is now 975a5f0fb15SPaul Saab embedded in the less executable itself. 976a5f0fb15SPaul Saab 977a5f0fb15SPaul Saab* Added -Ph to change the prompt for the help text. 978a5f0fb15SPaul Saab Added -Ps to change the default short prompt (same as plain -P). 979a5f0fb15SPaul Saab 980a5f0fb15SPaul Saab* Ported to the Borland C compiler for MS-DOS. 981a5f0fb15SPaul Saab 982a5f0fb15SPaul Saab* Ported to Windows 95 & Windows NT. 983a5f0fb15SPaul Saab 984a5f0fb15SPaul Saab* Ported to OS-9. 985a5f0fb15SPaul Saab 986a5f0fb15SPaul Saab* Ported to GNU Hurd. 987a5f0fb15SPaul Saab 988a5f0fb15SPaul Saab====================================================================== 989a5f0fb15SPaul Saab 990a5f0fb15SPaul Saab 991a5f0fb15SPaul Saab Major changes between "less" versions 290 and 291 992a5f0fb15SPaul Saab 993a5f0fb15SPaul Saab* Less environment variables can be specified in lesskey files. 994a5f0fb15SPaul Saab 995a5f0fb15SPaul Saab* Fixed MS-DOS build. 996a5f0fb15SPaul Saab 997a5f0fb15SPaul Saab====================================================================== 998a5f0fb15SPaul Saab 999a5f0fb15SPaul Saab 1000a5f0fb15SPaul Saab Major changes between "less" versions 278 and 290 1001a5f0fb15SPaul Saab 1002a5f0fb15SPaul Saab* Accepts GNU-style options "--help" and "--version". 1003a5f0fb15SPaul Saab 1004a5f0fb15SPaul Saab* OS/2 version looks for less.ini in $HOME before $INIT and $PATH. 1005a5f0fb15SPaul Saab 1006a5f0fb15SPaul Saab* Bug fixes 1007a5f0fb15SPaul Saab 1008a5f0fb15SPaul Saab====================================================================== 1009a5f0fb15SPaul Saab 1010a5f0fb15SPaul Saab 1011a5f0fb15SPaul Saab Major changes between "less" versions 252 and 278 1012a5f0fb15SPaul Saab 1013a5f0fb15SPaul Saab* A LESSOPEN preprocessor may now pipe the converted file data to less, 1014a5f0fb15SPaul Saab rather than writing it to a temporary file. 1015a5f0fb15SPaul Saab 1016a5f0fb15SPaul Saab* Search pattern highlighting has been fixed. It now highlights 1017a5f0fb15SPaul Saab reliably, even if a string is split across two screen lines, 1018a5f0fb15SPaul Saab contains TABs, etc. 1019a5f0fb15SPaul Saab 1020a5f0fb15SPaul Saab* The -F flag (which suppress search highlighting) has been changed 1021a5f0fb15SPaul Saab to -G. A new flag, -g, changes search highlighting to highlight 1022a5f0fb15SPaul Saab only the string found by the last search command, instead of all 1023a5f0fb15SPaul Saab strings which match the last search command. 1024a5f0fb15SPaul Saab 1025a5f0fb15SPaul Saab* New flag -I acts like -i, but ignores case even if the search 1026a5f0fb15SPaul Saab pattern contains uppercase letters. 1027a5f0fb15SPaul Saab 1028a5f0fb15SPaul Saab* Less now checks for the environment variable VISUAL before EDITOR. 1029a5f0fb15SPaul Saab 1030a5f0fb15SPaul Saab* Ported to OS/2. 1031a5f0fb15SPaul Saab 1032a5f0fb15SPaul Saab====================================================================== 1033a5f0fb15SPaul Saab 1034a5f0fb15SPaul Saab 1035a5f0fb15SPaul Saab Major changes between "less" versions 237 and 252 1036a5f0fb15SPaul Saab 1037a5f0fb15SPaul Saab* Changes in line-editing keys: 1038a5f0fb15SPaul Saab The literal key is now ^V or ^A rather than \ (backslash). 1039a5f0fb15SPaul Saab Filename completion commands (TAB and ^L) are disabled 1040a5f0fb15SPaul Saab when typing a search pattern. 1041a5f0fb15SPaul Saab 1042a5f0fb15SPaul Saab* Line-editing command keys can be redefined using lesskey. 1043a5f0fb15SPaul Saab 1044a5f0fb15SPaul Saab* Lesskey with no input file defaults to $HOME/.lesskey 1045a5f0fb15SPaul Saab rather than standard input. 1046a5f0fb15SPaul Saab 1047a5f0fb15SPaul Saab* New option -V displays version number of less. 1048a5f0fb15SPaul Saab 1049a5f0fb15SPaul Saab* New option -V displays version number of lesskey. 1050a5f0fb15SPaul Saab 1051a5f0fb15SPaul Saab* Help file less.hlp is now installed by default in /usr/local/share 1052a5f0fb15SPaul Saab rather than /usr/local/lib. 1053a5f0fb15SPaul Saab 1054a5f0fb15SPaul Saab 1055a5f0fb15SPaul Saab====================================================================== 1056a5f0fb15SPaul Saab 1057a5f0fb15SPaul Saab 1058a5f0fb15SPaul Saab Major changes between "less" versions 170 and 237 1059a5f0fb15SPaul Saab 1060a5f0fb15SPaul Saab* By popular demand, text which matches the current search pattern 1061a5f0fb15SPaul Saab is highlighted. New -F flag disables this feature. 1062a5f0fb15SPaul Saab 1063a5f0fb15SPaul Saab* Henry Spencer's regexp.c is now included, for systems which do not 1064a5f0fb15SPaul Saab have a regular expression library. 1065a5f0fb15SPaul Saab regexp.c is Copyright (c) 1986 by University of Toronto. 1066a5f0fb15SPaul Saab 1067a5f0fb15SPaul Saab* New line-editing keys, including command history (arrow keys) and 1068a5f0fb15SPaul Saab filename completion (TAB). 1069a5f0fb15SPaul Saab 1070a5f0fb15SPaul Saab* Input preprocessor allows modification of input files (e.g. uncompress) 1071a5f0fb15SPaul Saab via LESSOPEN/LESSCLOSE environment variables. 1072a5f0fb15SPaul Saab 1073a5f0fb15SPaul Saab* New -X flag disables sending termcap "ti" and "te" (initialize and 1074a5f0fb15SPaul Saab deinitialize) strings to the terminal. 1075a5f0fb15SPaul Saab 1076a5f0fb15SPaul Saab* Changing -i from within less now correctly affects a subsequent 1077a5f0fb15SPaul Saab repeated search. 1078a5f0fb15SPaul Saab 1079a5f0fb15SPaul Saab* Searching for underlined or overstruck text now works when the -u 1080a5f0fb15SPaul Saab flag is in effect, rather than the -i flag. 1081a5f0fb15SPaul Saab 1082a5f0fb15SPaul Saab* Use setlocale (LANG and LC_CTYPE environment variables) to determine 1083a5f0fb15SPaul Saab the character set if LESSCHARSET/LESSCHARDEF are not set. 1084a5f0fb15SPaul Saab 1085a5f0fb15SPaul Saab* The default format for displaying binary characters is now standout 1086a5f0fb15SPaul Saab (reverse video) rather than blinking. This can still be changed by 1087a5f0fb15SPaul Saab setting the LESSBINFMT environment variable. 1088a5f0fb15SPaul Saab 1089a5f0fb15SPaul Saab* Use autoconf installation technology. 1090a5f0fb15SPaul Saab 1091a5f0fb15SPaul Saab* Ported to MS-DOS. 1092a5f0fb15SPaul Saab 1093a5f0fb15SPaul Saab ******************************** 1094a5f0fb15SPaul Saab Things that may surprise you 1095a5f0fb15SPaul Saab ******************************** 1096a5f0fb15SPaul Saab 1097a5f0fb15SPaul Saab* When you enter text at the bottom of the screen (search string, 1098a5f0fb15SPaul Saab filename, etc.), some keys act different than previously. 1099a5f0fb15SPaul Saab Specifically, \ (backslash), ESC, TAB, BACKTAB, and control-L 1100a5f0fb15SPaul Saab now have line editing functions. 1101a5f0fb15SPaul Saab 1102a5f0fb15SPaul Saab* Some previous unofficial versions of less were able to display 1103a5f0fb15SPaul Saab compressed files. The new LESSOPEN/LESSCLOSE feature now provides 1104a5f0fb15SPaul Saab this functionality in a different way. 1105a5f0fb15SPaul Saab 1106a5f0fb15SPaul Saab* Some previous unofficial versions of less provided a -Z flag to 1107a5f0fb15SPaul Saab set the number of lines of text to retain between full screen scrolls. 1108a5f0fb15SPaul Saab The -z-n flag (that is, -z with a negative number) provides this 1109a5f0fb15SPaul Saab functionality. 1110a5f0fb15SPaul Saab 1111a5f0fb15SPaul Saab 1112a5f0fb15SPaul Saab====================================================================== 1113a5f0fb15SPaul Saab 1114a5f0fb15SPaul Saab 1115a5f0fb15SPaul Saab Major changes between "less" versions 123 and 170 1116a5f0fb15SPaul Saab 1117a5f0fb15SPaul Saab* New option -j allows target lines to be positioned anywhere on screen. 1118a5f0fb15SPaul Saab 1119a5f0fb15SPaul Saab* New option -S truncates displayed line at the screen width, 1120a5f0fb15SPaul Saab rather than wrapping onto the next line. 1121a5f0fb15SPaul Saab 1122a5f0fb15SPaul Saab* New option -y limits amount of forward scroll. 1123a5f0fb15SPaul Saab 1124a5f0fb15SPaul Saab* New option -T specifies a "tags" file. 1125a5f0fb15SPaul Saab 1126a5f0fb15SPaul Saab* Non-printable, non-control characters are displayed in octal. 1127a5f0fb15SPaul Saab Such characters, as well as control characters, are displayed 1128a5f0fb15SPaul Saab in blinking mode. 1129a5f0fb15SPaul Saab 1130a5f0fb15SPaul Saab* New command -+ sets an option to its default. 1131a5f0fb15SPaul Saab* New command -- sets an option to the opposite of its default. 1132a5f0fb15SPaul Saab 1133a5f0fb15SPaul Saab* Lesskey file may have a string appended to a key's action, 1134a5f0fb15SPaul Saab which acts as though typed in after the command. 1135a5f0fb15SPaul Saab 1136a5f0fb15SPaul Saab* New commands ESC-^F and ESC-^B match arbitrary types of brackets. 1137a5f0fb15SPaul Saab 1138a5f0fb15SPaul Saab* New command F monitors a growing file (like "tail -f"). 1139a5f0fb15SPaul Saab 1140a5f0fb15SPaul Saab* New command | pipes a section of the input file into a shell command. 1141a5f0fb15SPaul Saab 1142a5f0fb15SPaul Saab* New command :x directly jumps to a file in the command line list. 1143a5f0fb15SPaul Saab 1144a5f0fb15SPaul Saab* Search commands have been enhanced and reorganized: 1145a5f0fb15SPaul Saab n Repeat search, same direction. 1146a5f0fb15SPaul Saab N Repeat search, opposite direction. 1147a5f0fb15SPaul Saab ESC-/ Search forward thru file boundaries 1148a5f0fb15SPaul Saab ESC-? Search backward thru file boundaries 1149a5f0fb15SPaul Saab ESC-n Repeat search thru file boundaries, same direction. 1150a5f0fb15SPaul Saab ESC-N Repeat search thru file boundaries, opposite direction. 1151a5f0fb15SPaul Saab Special character * causes search to search thru file boundaries. 1152a5f0fb15SPaul Saab Special character @ causes search to begin at start/end of file list. 1153a5f0fb15SPaul Saab 1154a5f0fb15SPaul Saab* Examining a new file adds it to the command line list. 1155a5f0fb15SPaul Saab A list of files, or an expression which matches more than one file, 1156a5f0fb15SPaul Saab may be examined; all of them are added to the command line list. 1157a5f0fb15SPaul Saab 1158a5f0fb15SPaul Saab* Environment variables LESSCHARSET and LESSCHARDEF can define 1159a5f0fb15SPaul Saab a non-ASCII character set. 1160a5f0fb15SPaul Saab 1161a5f0fb15SPaul Saab* Partial support for MSDOS, including options -R for repainting screen 1162a5f0fb15SPaul Saab on quit, -v/-V to select video mode, and -W to change window size. 1163a5f0fb15SPaul Saab 1164a5f0fb15SPaul Saab 1165a5f0fb15SPaul Saab====================================================================== 1166a5f0fb15SPaul Saab 1167a5f0fb15SPaul Saab 1168a5f0fb15SPaul Saab Major changes between "less" versions 97 and 123 1169a5f0fb15SPaul Saab 1170a5f0fb15SPaul Saab* New option (-N) causes line numbers to be displayed in the 1171a5f0fb15SPaul Saab text of the file (like vi "set nu"). 1172a5f0fb15SPaul Saab 1173a5f0fb15SPaul Saab* New option (-?) prints help message immediately. 1174a5f0fb15SPaul Saab 1175a5f0fb15SPaul Saab* New option (-r) displays "raw" control characters, without 1176a5f0fb15SPaul Saab mapping them to ^X notation. 1177a5f0fb15SPaul Saab 1178a5f0fb15SPaul Saab* New option (-f) forces less to open non-regular files 1179a5f0fb15SPaul Saab (directories, etc). 1180a5f0fb15SPaul Saab 1181a5f0fb15SPaul Saab* New option (-k) can be used to specify lesskey files by name. 1182a5f0fb15SPaul Saab 1183a5f0fb15SPaul Saab* New option (-y) can be used to set a forward scroll limit 1184a5f0fb15SPaul Saab (like -h sets a backward scroll limit). 1185a5f0fb15SPaul Saab 1186a5f0fb15SPaul Saab* File marks (set by the m command) are now preserved when a new 1187a5f0fb15SPaul Saab file is edited. The ' command can thus be used to switch files. 1188a5f0fb15SPaul Saab 1189a5f0fb15SPaul Saab* New command ESC-/ searches all files (on the command line) 1190a5f0fb15SPaul Saab for a pattern. 1191a5f0fb15SPaul Saab 1192a5f0fb15SPaul Saab* New command ESC-n repeats previous search, spanning files. 1193a5f0fb15SPaul Saab 1194a5f0fb15SPaul Saab* The N command has been changed to repeat the previous search 1195a5f0fb15SPaul Saab in the reverse direction. The old N command is still available 1196a5f0fb15SPaul Saab via :n. 1197a5f0fb15SPaul Saab 1198a5f0fb15SPaul Saab* New command ESC-N repeats previous search in the reverse 1199a5f0fb15SPaul Saab direction and spanning files. 1200a5f0fb15SPaul Saab 1201a5f0fb15SPaul Saab* 8 bit characters are now supported. A new option (-g) can be 1202a5f0fb15SPaul Saab used to strip off the eighth bit (the previous behavior). 1203a5f0fb15SPaul Saab 1204a5f0fb15SPaul Saab* Options which take a following string (like -t) may now 1205a5f0fb15SPaul Saab optionally have a space between the option letter and the string. 1206a5f0fb15SPaul Saab 1207a5f0fb15SPaul Saab* Six new commands { } ( ) [ and ] can be used to match 1208a5f0fb15SPaul Saab brackets of specific types, similar to vi % command. 1209a5f0fb15SPaul Saab 1210a5f0fb15SPaul Saab* New commands z and w move forward/backward one window and 1211a5f0fb15SPaul Saab simultaneously set the window size. 1212a5f0fb15SPaul Saab 1213a5f0fb15SPaul Saab* Prompt string expansion now has %L for line number of the last 1214a5f0fb15SPaul Saab line in the file, and %E for the name of the editor. 1215a5f0fb15SPaul Saab Also, % escapes which refer to a line (b=bottom, t=top, etc.) 1216a5f0fb15SPaul Saab can use j for the jump target line. 1217a5f0fb15SPaul Saab 1218a5f0fb15SPaul Saab* New environment variable LESSEDIT can be used to tailor the 1219a5f0fb15SPaul Saab command string passed to the editor by the v command. 1220a5f0fb15SPaul Saab 1221a5f0fb15SPaul Saab* Examining a file which was previously examined will return 1222a5f0fb15SPaul Saab to the same position in the file. 1223a5f0fb15SPaul Saab 1224a5f0fb15SPaul Saab* A "%" is expanded to the current filename and a "#" to the 1225a5f0fb15SPaul Saab previous filename, in both shell commands and the E command. 1226a5f0fb15SPaul Saab (Previously % worked only in shell commands and # worked 1227a5f0fb15SPaul Saab only in the E command.) 1228a5f0fb15SPaul Saab 1229a5f0fb15SPaul Saab* New command ":ta" is equivalent to "-t". 1230a5f0fb15SPaul Saab 1231a5f0fb15SPaul Saab* New command "s" is equivalent to "-l". 1232a5f0fb15SPaul Saab 1233a5f0fb15SPaul Saab* The - command may be followed by "+X" to revert to the default 1234a5f0fb15SPaul Saab for option X, or "-X" to get the opposite of the default. 1235a5f0fb15SPaul Saab 1236a5f0fb15SPaul Saab* Lesskey files may now include characters after the action as 1237a5f0fb15SPaul Saab extra input to be parsed after the action; for example: 1238a5f0fb15SPaul Saab "toggle-option X" to toggle a specific option X. 12397f074f9cSXin LI 12407f074f9cSXin LI 12417f074f9cSXin LI 1242f78327b5SXin LI 1243464501a8SXin LI 1244