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*95270f73SXin LI Major changes between "less" versions 590 and 608 15*95270f73SXin LI 16*95270f73SXin LI* Add the --header option (github #43). 17*95270f73SXin LI 18*95270f73SXin LI* Add the --no-number-headers option (github #178). 19*95270f73SXin LI 20*95270f73SXin LI* Add the --status-line option. 21*95270f73SXin LI 22*95270f73SXin LI* Add the --redraw-on-quit option (github #36). 23*95270f73SXin LI 24*95270f73SXin LI* Add the --search-options option (github #213). 25*95270f73SXin LI 26*95270f73SXin LI* Add the --exit-follow-on-close option (github #244). 27*95270f73SXin LI 28*95270f73SXin LI* Add 'H' color type to set color of header lines. 29*95270f73SXin LI 30*95270f73SXin LI* Add #version conditional to lesskey. 31*95270f73SXin LI 32*95270f73SXin LI* Add += syntax to variable section in lesskey files. 33*95270f73SXin LI 34*95270f73SXin LI* Allow option name in -- command to end with '=' in addition to '\n'. 35*95270f73SXin LI 36*95270f73SXin LI* Add $HOME/.config to possible locations of lesskey file (github #153). 37*95270f73SXin LI 38*95270f73SXin LI* Add $XDG_STATE_HOME and $HOME/.local/state to possible locations 39*95270f73SXin LI of history file (github #223). 40*95270f73SXin LI 41*95270f73SXin LI* Don't read or write history file in secure mode (github #201). 42*95270f73SXin LI 43*95270f73SXin LI* Fix display of multibyte and double-width chars in prompt. 44*95270f73SXin LI 45*95270f73SXin LI* Fix ESC-BACKSPACE command when BACKSPACE key does not send 0x08 46*95270f73SXin LI (github #188). 47*95270f73SXin LI 48*95270f73SXin LI* Add more \k codes to lesskey format. 49*95270f73SXin LI 50*95270f73SXin LI* Fix bug when empty file is modified while viewing it. 51*95270f73SXin LI 52*95270f73SXin LI* Fix bug when parsing a malformed lesskey file (githb #234). 53*95270f73SXin LI 54*95270f73SXin LI* Fix bug scrolling history when --incsearch is set (github #214). 55*95270f73SXin LI 56*95270f73SXin LI* Fix buffer overflow when invoking lessecho with more than 63 -m/-n 57*95270f73SXin LI options (github #198). 58*95270f73SXin LI 59*95270f73SXin LI* Fix buffer overflow in bin_file (github #271). 60*95270f73SXin LI 61*95270f73SXin LI* Fix bug restoring color at end of highlighted text. 62*95270f73SXin LI 63*95270f73SXin LI* Fix bug in parsing lesskey file. 64*95270f73SXin LI 65*95270f73SXin LI* Defer moving cursor to lower left in some more cases. 66*95270f73SXin LI 67*95270f73SXin LI* Suppress TAB filename expansion in some cases where it doesn't make sense. 68*95270f73SXin LI 69*95270f73SXin LI* Fix termlib detection when compiler doesn't accept 70*95270f73SXin LI calls to undeclared functions. 71*95270f73SXin LI 72*95270f73SXin LI* Fix bug in input of non-ASCII characters on Windows (github #247) 73*95270f73SXin LI 74*95270f73SXin LI* Escape filenames when invoking LESSCLOSE. 75*95270f73SXin LI 76*95270f73SXin LI* Fix bug using multibyte UTF-8 char in search string 77*95270f73SXin LI with --incsearch (github #273). 78*95270f73SXin LI 79*95270f73SXin LI====================================================================== 80*95270f73SXin LI 8130a1828cSXin LI Major changes between "less" versions 581 and 590 8230a1828cSXin LI 8330a1828cSXin LI* Make less able to read lesskey source files (deprecating lesskey). 8430a1828cSXin LI 8530a1828cSXin LI* If XDG_CONFIG_HOME is set, find lesskey source file 8630a1828cSXin LI in $XDG_CONFIG_HOME/lesskey rather than $HOME/.lesskey. 8730a1828cSXin LI 8830a1828cSXin LI* If XDG_DATA_HOME is set, find and store history file 8930a1828cSXin LI in $XDG_DATA_HOME/lesshst rather than $HOME/.lesshst. 9030a1828cSXin LI 9130a1828cSXin LI* Add the --lesskey-src option. 9230a1828cSXin LI 9330a1828cSXin LI* Add the --file-size option. 9430a1828cSXin LI 9530a1828cSXin LI* With -F, if screen is resized to make file fit on one screen, don't exit. 9630a1828cSXin LI 9730a1828cSXin LI* Fix bug which could leave terminal in mouse-reporting mode 9830a1828cSXin LI after exiting less. 9930a1828cSXin LI 10030a1828cSXin LI* Fix bug which caused failure to respond to window resize. 10130a1828cSXin LI 10230a1828cSXin LI* Fix backslash bug searching in tag file. 10330a1828cSXin LI 10430a1828cSXin LI====================================================================== 10530a1828cSXin LI 10630a1828cSXin LI Major changes between "less" versions 563 and 581 1072235c7feSXin LI 1082235c7feSXin LI* Change ESC-u command to toggle, not disable, highlighting per man page. 1092235c7feSXin LI 1102235c7feSXin LI* Add ESC-U command. 1112235c7feSXin LI 1122235c7feSXin LI* Add ctrl-W search modifier for wrapping search. 1132235c7feSXin LI 1142235c7feSXin LI* F command can be interrupted by ^X. 1152235c7feSXin LI 1162235c7feSXin LI* Support OSC 8 hyperlinks when -R is in effect. 1172235c7feSXin LI 1182235c7feSXin LI* g command with no number will ignore -j and put first line at top of screen. 1192235c7feSXin LI 1202235c7feSXin LI* Multiple + or -p command line options are handled better. 1212235c7feSXin LI 1222235c7feSXin LI* Add the --incsearch option. 1232235c7feSXin LI 1242235c7feSXin LI* Add the --line-num-width option. 1252235c7feSXin LI 1262235c7feSXin LI* Add the --status-col-width option. 1272235c7feSXin LI 1282235c7feSXin LI* Add the --use-color and --color options. 1292235c7feSXin LI 1302235c7feSXin LI* Display -w highlight even if highlighted line is empty. 1312235c7feSXin LI 1322235c7feSXin LI* If search result is in a long line, scroll to ensure it is visible. 1332235c7feSXin LI 1342235c7feSXin LI* Editing the same file under different names now creates only 1352235c7feSXin LI one entry in the file list. 1362235c7feSXin LI 1372235c7feSXin LI* Make visual bell more visible on some terminals. 1382235c7feSXin LI 1392235c7feSXin LI* Ring end-of-file bell no more than once per second. 1402235c7feSXin LI 1412235c7feSXin LI* Build can use either Python or Perl for Makefile.aut operations. 1422235c7feSXin LI 1432235c7feSXin LI* Fix crash when using the @ search modifier. 1442235c7feSXin LI 1452235c7feSXin LI* Fix crash in the 's' command due to duplicate free. 1462235c7feSXin LI 1472235c7feSXin LI* Fix realpath crash on Darwin. 148a15691bfSXin LI 149a15691bfSXin LI====================================================================== 150a15691bfSXin LI 1516f26c71dSXin LI Major changes between "less" versions 551 and 563 1526f26c71dSXin LI 1536f26c71dSXin LI* Update Unicode tables. 1546f26c71dSXin LI 1556f26c71dSXin LI* Treat Hangul Jamo medial vowels and final consonants as zero width. 1566f26c71dSXin LI 1576f26c71dSXin LI* Display error message immediately when -o is toggled and 1586f26c71dSXin LI input is not a pipe. 1596f26c71dSXin LI 1606f26c71dSXin LI* Fix regression: make screen repaint when "squished" and 1616f26c71dSXin LI a no-movement command is given. 1626f26c71dSXin LI 1636f26c71dSXin LI* Fix erroneous EOF calculation when F command is interrupted. 1646f26c71dSXin LI 1656f26c71dSXin LI* Make WIN32C version include this fix from 551: 1666f26c71dSXin LI Don't count lines in initial screen if using -X with -F. 1676f26c71dSXin LI 1686f26c71dSXin LI* Fix display bug in WIN32C version. 1696f26c71dSXin LI 1706f26c71dSXin LI* Fix memory corruption when built with libtermcap. 1716f26c71dSXin LI 1726f26c71dSXin LI* Support libtinfow. 1736f26c71dSXin LI 1746f26c71dSXin LI====================================================================== 1756f26c71dSXin LI 176b7780dbeSXin LI Major changes between "less" versions 530 and 551 177b7780dbeSXin LI 178b7780dbeSXin LI* Add --mouse option. 179b7780dbeSXin LI 180b7780dbeSXin LI* Add --wheel-lines option. 181b7780dbeSXin LI 182b7780dbeSXin LI* Add --no-histdups option. 183b7780dbeSXin LI 184b7780dbeSXin LI* Add --save-marks option. 185b7780dbeSXin LI 186b7780dbeSXin LI* Support PCRE2 regular expression library. 187b7780dbeSXin LI 188b7780dbeSXin LI* Redraw screen on SIGWINCH even if screen size doesn't change. 189b7780dbeSXin LI 190b7780dbeSXin LI* Shell-escape filenames in history so they can be used again. 191b7780dbeSXin LI 192b7780dbeSXin LI* Ring bell if user enters invalid long option name. 193b7780dbeSXin LI 194b7780dbeSXin LI* Use PCRE_UTF8 flag for pcre regular expressions when in UTF-8 mode. 195b7780dbeSXin LI 196b7780dbeSXin LI* Windows: use wide-char string to set console title. 197b7780dbeSXin LI 198b7780dbeSXin LI* Don't count lines in initial screen if using -X with -F. 199b7780dbeSXin LI 200b7780dbeSXin LI* Support mingw build system. 201b7780dbeSXin LI 202b7780dbeSXin LI* Fix bug in v command on empty file. 203b7780dbeSXin LI 204b7780dbeSXin LI* Fix bug in v command when filename contains shell metacharacters. 205b7780dbeSXin LI 206b7780dbeSXin LI====================================================================== 207b7780dbeSXin LI 20874709ed0SXin LI Major changes between "less" versions 487 and 530 209f6b74a7dSXin LI 210f6b74a7dSXin LI* Don't output terminal init sequence if using -F and file fits on one screen. 211f6b74a7dSXin LI 212b2ea2440SXin LI* When using -S, mark truncated lines with a special character. 213b2ea2440SXin LI The character can be changed or disabled via the new --rscroll option. 214f6b74a7dSXin LI 215b2ea2440SXin LI* New command M marks the last line displayed on the screen. 216f6b74a7dSXin LI 217b2ea2440SXin LI* New command ESC-m removes a line mark. 218b2ea2440SXin LI 219b2ea2440SXin LI* Status column (enabled via -J) now shows mark letters. 220b2ea2440SXin LI 221b2ea2440SXin LI* Status column shows search matches even if highlighting is disabled via -G. 222b2ea2440SXin LI 223b2ea2440SXin LI* A second ESC-u command will clear search match markers in the status column. 224b2ea2440SXin LI 225b2ea2440SXin LI* Do same ANSI escape code filtering for tag matching that we do for 226b2ea2440SXin LI searching, to help when viewing syntax-highlighted code. 227b2ea2440SXin LI 228b2ea2440SXin LI* Catch SIGTERM and clean up before exiting. 229b2ea2440SXin LI 230b2ea2440SXin LI* Fix bug initializing default charset on Windows. 231b2ea2440SXin LI 232b2ea2440SXin LI* Handle keypad ENTER key correctly if it sends something other than newline. 233b2ea2440SXin LI 234b2ea2440SXin LI* Fix buffering bug when using stdin with a LESSOPEN pipe. 235b2ea2440SXin LI 236b2ea2440SXin LI* On Windows, allow 'u' in -D option to enable underlining. 237b2ea2440SXin LI 238b2ea2440SXin LI* On Windows, use underline in sgr mode. 239b2ea2440SXin LI 240b2ea2440SXin LI* On Windows, convert UTF-8 to multibyte if console is not UTF-8. 241b2ea2440SXin LI 242b2ea2440SXin LI* Update Unicode tables to 2017-03-08. 243b2ea2440SXin LI 244b2ea2440SXin LI* Pass-thru Unicode formating chars (Cf type) instead of treating them 245b2ea2440SXin LI as binary chars. But treat them as binary if -U is set. 246b2ea2440SXin LI 247b2ea2440SXin LI* Fix erroneous binary file warning when UTF-8 file contains ANSI SGR sequences. 248b2ea2440SXin LI 249b2ea2440SXin LI* Fix bugs when using LESSOPEN and switching between stdin and other files. 250b2ea2440SXin LI 251b2ea2440SXin LI* Fix some bugs handling filenames containing shell metacharacters. 252f6b74a7dSXin LI 253f6b74a7dSXin LI* Fix some memory leaks. 254f6b74a7dSXin LI 255b2ea2440SXin LI* Allow some debugging environment variables to be set in lesskey file. 256b2ea2440SXin LI 257b2ea2440SXin LI* Code improvements: 258b2ea2440SXin LI . Use ANSI prototypes in funcs.h declarations. 259b2ea2440SXin LI . Fix some const mismatches. 260b2ea2440SXin LI . Remove archaic "register" in variable declarations. 261b2ea2440SXin LI 262f6b74a7dSXin LI====================================================================== 263f6b74a7dSXin LI 264f6b74a7dSXin LI Major changes between "less" versions 481 and 487 265f6b74a7dSXin LI 266f6b74a7dSXin LI* New commands ESC-{ and ESC-} to shift to start/end of displayed lines. 267f6b74a7dSXin LI 268f6b74a7dSXin LI* Make search highlights work correctly when changing caselessness with -i. 269f6b74a7dSXin LI 270f6b74a7dSXin LI* New option -Da in Windows version to enable SGR mode. 271f6b74a7dSXin LI 272f6b74a7dSXin LI* Fix "nothing to search" error when top or bottom line on screen is empty. 273f6b74a7dSXin LI 274f6b74a7dSXin LI* Fix bug when terminal has no "cm" termcap entry. 275f6b74a7dSXin LI 276f6b74a7dSXin LI* Fix incorrect display when entering double-width chars in search string. 277f6b74a7dSXin LI 278f6b74a7dSXin LI* Fix bug in Unicode handling that missed some double width characters. 279f6b74a7dSXin LI 280f6b74a7dSXin LI* Update Unicode database to 9.0.0. 281f6b74a7dSXin LI 282f6b74a7dSXin LI====================================================================== 283f6b74a7dSXin LI 284a15691bfSXin LI Major changes between "less" versions 458 and 481 285a15691bfSXin LI 286a15691bfSXin LI* Don't overwrite history file; just append to it. 287a15691bfSXin LI 288a15691bfSXin LI* New command ESC-G goes to end of currently buffered data in a pipe. 289a15691bfSXin LI 290a15691bfSXin LI* Disable history feature when compiled with LESSHISTFILE set to "-". 291a15691bfSXin LI 292a15691bfSXin LI* In more-compatible mode, make the -p option apply to every file opened, 293a15691bfSXin LI not just the first one. 294a15691bfSXin LI 295a15691bfSXin LI* In more-compatible mode, change the -e option to work like -E, not -EF. 296a15691bfSXin LI 297a15691bfSXin LI* Treat multiple CRs before LF are like one CR (all the CRs are hidden). 298a15691bfSXin LI 299a15691bfSXin LI* Allow "extra" string in lesskey file to append to a multi-char command 300a15691bfSXin LI (like a search pattern), without executing the command. 301a15691bfSXin LI 302a15691bfSXin LI* Ignore -u/-U setting while viewing help file, so that 303a15691bfSXin LI underline and bold chars are displayed correctly. 304a15691bfSXin LI 305a15691bfSXin LI* Improve detection of "binary" files in UTF-8 mode. 306a15691bfSXin LI 307a15691bfSXin LI* Fix bug with ++ commands. 308a15691bfSXin LI 309a15691bfSXin LI* Fix bug where prompt was sometimes not displayed with +G. 310a15691bfSXin LI 311a15691bfSXin LI* Fix possible memory corruption 312a15691bfSXin LI 313a15691bfSXin LI* Fix bugs and improve performance in ampersand filtering. 314a15691bfSXin LI 315a15691bfSXin LI* Automate construction of Unicode tables from Unicode database. 316a15691bfSXin LI 317a15691bfSXin LI* Allow %% escape sequence in LESSOPEN variable. 31896e55cc7SXin LI 31996e55cc7SXin LI====================================================================== 32096e55cc7SXin LI 3217bd2567cSXin LI Major changes between "less" versions 451 and 458 3224cc5fc9aSXin LI 3237bd2567cSXin LI* Allow backslash escaping of metacharacters in LESS environment variable 3247bd2567cSXin LI after the --use-backslash option. 3254cc5fc9aSXin LI 3264cc5fc9aSXin LI* Don't quit if syntax errors are found in command line options. 3274cc5fc9aSXin LI 3284cc5fc9aSXin LI* Increase sizes of some internal buffers. 3294cc5fc9aSXin LI 3304cc5fc9aSXin LI* Fix configure bug with --with-regex=none. 3314cc5fc9aSXin LI 3324cc5fc9aSXin LI* Fix crash with "stty rows 0". 3334cc5fc9aSXin LI 3344cc5fc9aSXin LI* Fix Win32 attribute display bug. 3354cc5fc9aSXin LI 3367bd2567cSXin LI* Fix display bug when using up/down arrow on the command line. 3377bd2567cSXin LI 3384cc5fc9aSXin LI====================================================================== 3394cc5fc9aSXin LI 340e2449719SXin LI Major changes between "less" versions 444 and 451 34196e55cc7SXin LI 34296e55cc7SXin LI* Add ESC-F command to keep reading data until a pattern is found. 34396e55cc7SXin LI 34496e55cc7SXin LI* Use exit code of LESSOPEN script if LESSOPEN starts with "||". 34596e55cc7SXin LI 34696e55cc7SXin LI* When up/down arrow is used on the command line immediately after 34796e55cc7SXin LI typing text, the next command starting with that text is found. 34896e55cc7SXin LI 34996e55cc7SXin LI* Add support for GNU regex. 35096e55cc7SXin LI 35196e55cc7SXin LI* Add configure option --with-regex=none and fix compile errors 35296e55cc7SXin LI when compiling with no regex library. 35396e55cc7SXin LI 35496e55cc7SXin LI* Fix bugs handling SGR sequences in Win32. 35596e55cc7SXin LI 35696e55cc7SXin LI* Fix possible crashes caused by malformed LESSOPEN or 35796e55cc7SXin LI LESSCLOSE variables. 35896e55cc7SXin LI 35996e55cc7SXin LI* Fix bug highlighting text which is discontiguous in the file 36096e55cc7SXin LI due to backspace processing. 36196e55cc7SXin LI 36296e55cc7SXin LI* Fix bug in displaying status column when scrolling backwards 36396e55cc7SXin LI with -J and -S in effect. 364a5f0fb15SPaul Saab 365a5f0fb15SPaul Saab====================================================================== 366a5f0fb15SPaul Saab 367b24bfc5aSXin LI Major changes between "less" versions 443 and 444 368b24bfc5aSXin LI 369b24bfc5aSXin LI* Fix bug in unget handling that can cause strange effects on the 370b24bfc5aSXin LI command line. 371b24bfc5aSXin LI 372b24bfc5aSXin LI* Remove vestiges of obsolete -l option that can cause a crash. 373b24bfc5aSXin LI 374b24bfc5aSXin LI====================================================================== 375b24bfc5aSXin LI 37633096f16SXin LI Major changes between "less" versions 436 and 443 37733096f16SXin LI 37833096f16SXin LI* Change search behavior such that when a search is given an explicit 37933096f16SXin LI pattern, the entire displayed screen is included in the search and 38033096f16SXin LI not just the portion after the target line. 38133096f16SXin LI 38233096f16SXin LI* Add -A option to change search behavior to the old way: only 38333096f16SXin LI the portion of the screen after the target line is searched. 38433096f16SXin LI 38533096f16SXin LI* Add %F formatting to prompt strings, replaced by the last component 38633096f16SXin LI of the input file. 38733096f16SXin LI 38833096f16SXin LI* Control-G while editing a command exits the command. 38933096f16SXin LI 39033096f16SXin LI* Less now exits with status 2 if control-C is pressed and -K is in effect. 39133096f16SXin LI 39233096f16SXin LI* Fix "ungetc overflow" when passing long commands via the -p option. 39333096f16SXin LI 39433096f16SXin LI* Fix bug in using line filtering via the & command 39533096f16SXin LI in combination with -i and -I. 39633096f16SXin LI 39733096f16SXin LI* Fix bug in handling negative arguments to the -j option. 39833096f16SXin LI 39933096f16SXin LI* Fix bug in handling %t in prompt strings. 40033096f16SXin LI 40133096f16SXin LI* Improve handling of long option names. 40233096f16SXin LI 40333096f16SXin LI* Improve percentage calculation for very large files. 40433096f16SXin LI 40533096f16SXin LI====================================================================== 40633096f16SXin LI 407f0be0a1fSXin LI Major changes between "less" versions 429 and 436 408f0be0a1fSXin LI 409f0be0a1fSXin LI* Don't pass "-" to non-pipe LESSOPEN unless it starts with "-". 410f0be0a1fSXin LI 411f0be0a1fSXin LI* Allow a fraction as the argument to the -# (--shift) option. 412f0be0a1fSXin LI 413f0be0a1fSXin LI* Fix highlight bug when underlined/overstruck text matches at end of line. 414f0be0a1fSXin LI 415f0be0a1fSXin LI* Fix non-regex searches with ctrl-R. 416f0be0a1fSXin LI 417f0be0a1fSXin LI====================================================================== 418f0be0a1fSXin LI 4197374caaaSXin LI Major changes between "less" versions 424 and 429 4207374caaaSXin LI 4217374caaaSXin LI* LESSOPEN pipe will now be used on standard input, if the LESSOPEN 4227374caaaSXin LI environment variable begins with "|-". 4237374caaaSXin LI 4247374caaaSXin LI* The -D option with one number now means use the normal background color. 4257374caaaSXin LI 4267374caaaSXin LI* Don't change permissions on history file if it is not a regular file. 4277374caaaSXin LI 4287374caaaSXin LI* Fix non-ANSI-compliant code that caused problems with some compilers. 4297374caaaSXin LI 4307374caaaSXin LI* Fix binary file detection in UTF-8 mode. 4317374caaaSXin LI 4327374caaaSXin LI* Fix display problems with long lines on "ignaw" terminals. 4337374caaaSXin LI 4347374caaaSXin LI* Fix problem interrupting the line number calculation for initial prompt. 4357374caaaSXin LI 4367374caaaSXin LI* Fix SGR emulation when dealing with multiple attributes (eg. bold+underline). 4377374caaaSXin LI 4387374caaaSXin LI* Fix highlight bug when searching for underlined/overstruck text. 4397374caaaSXin LI 4407374caaaSXin LI====================================================================== 4417374caaaSXin LI 4427374caaaSXin LI Major changes between "less" versions 418 and 424 4437374caaaSXin LI 4447374caaaSXin LI* New "&" command allows filtering of lines based on a pattern. 4457374caaaSXin LI 4467374caaaSXin LI* Status column now displays a search match, even if the matched 4477374caaaSXin LI string is scrolled off screen because -S is in effect. 4487374caaaSXin LI 4497374caaaSXin LI* Improve behavior of -F option. 4507374caaaSXin LI 4517374caaaSXin LI* Allow CSI character (0x9B) to work in UTF-8 mode. 4527374caaaSXin LI 4537374caaaSXin LI* Output carriage return at startup in case terminal doesn't default 4547374caaaSXin LI to column 1. 4557374caaaSXin LI 4567374caaaSXin LI* Fix bug in '' (quote, quote) command after G command. 4577374caaaSXin LI 4587374caaaSXin LI====================================================================== 4597374caaaSXin LI 4607374caaaSXin LI Major changes between "less" versions 416 and 418 4617374caaaSXin LI 4627374caaaSXin LI* Color escape sequences are now supported in WIN32 build. 4637374caaaSXin LI 4647374caaaSXin LI* Makefile now uses EXEEXT feature of autoconf. 4657374caaaSXin LI 4667374caaaSXin LI* Fix search bug when using -R and text contains ANSI color escape sequences. 4677374caaaSXin LI 4687374caaaSXin LI* Fix crash when using -r with UTF-8 text containing 0x9B bytes. 4697374caaaSXin LI 4707374caaaSXin LI* Fix display bug when using ' command to move less than one page forward. 4717374caaaSXin LI 4727374caaaSXin LI* Update GPL to version 3. 4737374caaaSXin LI 4747374caaaSXin LI====================================================================== 475a5f0fb15SPaul Saab 47633a9f6abSXin LI Major changes between "less" versions 409 and 416 477464501a8SXin LI 478464501a8SXin LI* New --follow-name option makes F command follow the name of a file 479464501a8SXin LI rather than the file descriptor if an open file is renamed. 480464501a8SXin LI 481464501a8SXin LI* Make searching with -i/-I work correctly with non-ASCII text. 482464501a8SXin LI 483464501a8SXin LI* Fix DJGPP build. 484464501a8SXin LI 485464501a8SXin LI====================================================================== 486464501a8SXin LI 487f78327b5SXin LI Major changes between "less" versions 406 and 409 4881c6a5c10SXin LI 4891c6a5c10SXin LI* Support CSI escape sequences, like SGR escape sequences. 4901c6a5c10SXin LI 4911c6a5c10SXin LI* Fix bug which caused screen to fail to repaint when window is resized. 4921c6a5c10SXin LI 4931c6a5c10SXin LI* Fix bug in using -i and -I flags with non-ASCII text. 4941c6a5c10SXin LI 4951c6a5c10SXin LI* Fix configure bug on systems which don't support langinfo.h. 4961c6a5c10SXin LI 497f78327b5SXin LI* Fix crash when searching text containing certain invalid UTF-8 sequences. 498f78327b5SXin LI 4991c6a5c10SXin LI====================================================================== 5001c6a5c10SXin LI 501efd72c2eSXin LI Major changes between "less" versions 394 and 406 5027f074f9cSXin LI 5037f074f9cSXin LI* Allow decimal point in number for % (percent) command. 5047f074f9cSXin LI 5057f074f9cSXin LI* Allow decimal point in number for -j option (fraction of screen height). 5067f074f9cSXin LI 5077f074f9cSXin LI* Make n command fetch previous pattern from history file on first search. 5087f074f9cSXin LI 5097f074f9cSXin LI* Don't rewrite history file if it has not changed. 5107f074f9cSXin LI 5117f074f9cSXin LI* Don't move to bottom of screen on first page. 5127f074f9cSXin LI 5137f074f9cSXin LI* Don't output extraneous newlines, so copy & pasting lines from the 5147f074f9cSXin LI output works better. 5157f074f9cSXin LI 5167f074f9cSXin LI* The -c option has been made identical with the -C option. 5177f074f9cSXin LI 5187f074f9cSXin LI* Allow "/dev/null" as synomym for "-" in LESSHISTFILE to indicate 5197f074f9cSXin LI that no history file should be used. 5207f074f9cSXin LI 5217f074f9cSXin LI* Search can now find text which follows a null byte, if the PCRE 5227f074f9cSXin LI library is used, or if no-regex searching (ctrl-R) is used. 5237f074f9cSXin LI 5247f074f9cSXin LI* Better compatibility with POSIX more specification. 5257f074f9cSXin LI 5267f074f9cSXin LI* Make -f work for directories. 5277f074f9cSXin LI 5287f074f9cSXin LI* Make "t" cmd traverse tags in the correct order. 5297f074f9cSXin LI 5307f074f9cSXin LI* Allow a few binary characters in the input file before warning 5317f074f9cSXin LI that the file is binary. 5327f074f9cSXin LI 5337f074f9cSXin LI* Don't warn that file is binary if it merely contains ANSI color sequences 5347f074f9cSXin LI and -R is in effect. 5357f074f9cSXin LI 5367f074f9cSXin LI* Update Unicode character tables. 5377f074f9cSXin LI 5387f074f9cSXin LI* Support DESTDIR in Makefile. 5397f074f9cSXin LI 5407f074f9cSXin LI* Fix bug when filename contains certain shell metacharacters such as "$". 5417f074f9cSXin LI 5427f074f9cSXin LI* Fix bug when resizing the window while waiting for input from a pipe. 5437f074f9cSXin LI 5447f074f9cSXin LI* Fix configure bugs. 5457f074f9cSXin LI 5467f074f9cSXin LI====================================================================== 5477f074f9cSXin LI 5486dcb072bSXin LI Major changes between "less" versions 382 and 394 5496dcb072bSXin LI 5506dcb072bSXin LI* Add history file to save search and shell command history between 5516dcb072bSXin LI invocations of less. 5526dcb072bSXin LI 5536dcb072bSXin LI* Improve behavior of history list for search and shell commands. 5546dcb072bSXin LI 5556dcb072bSXin LI* Add -K (or --quit-on-intr) option to make less exit immediately on ctrl-C. 5566dcb072bSXin LI 5576dcb072bSXin LI* Improve handling of UTF-8 files and commands, including better 5586dcb072bSXin LI line wrapping and handling double-width chars. 5596dcb072bSXin LI 5606dcb072bSXin LI* Added LESSUTFBINFMT environment variable to control display of 5616dcb072bSXin LI non-printable characters in a UTF-8 file. 5626dcb072bSXin LI 5636dcb072bSXin LI* Add --with-secure option to configure, to make it easier to 5646dcb072bSXin LI build a secure version of less. 5656dcb072bSXin LI 5666dcb072bSXin LI* Show search matches in the status column even if search highlights 5676dcb072bSXin LI are disabled via the -G option or the ESC-u command. 5686dcb072bSXin LI 5696dcb072bSXin LI* Improve performance when the file contains very long lines. 5706dcb072bSXin LI 5716dcb072bSXin LI* Add "windows" charset. 5726dcb072bSXin LI 5736dcb072bSXin LI* Add man page for lessecho. 5746dcb072bSXin LI 5756dcb072bSXin LI* Add support for erase2 character, treated same as erase. 5766dcb072bSXin LI 5776dcb072bSXin LI* Use ASCII lowercase/uppercase logic when operating on the command line. 5786dcb072bSXin LI 5796dcb072bSXin LI* Update makefile for Borland C++ 5.5.1. 5806dcb072bSXin LI 5816dcb072bSXin LI* Fix bug in calculating number of pages for %D prompt. 5826dcb072bSXin LI 5836dcb072bSXin LI* Fix bug in handling tag file error. 5846dcb072bSXin LI 5856dcb072bSXin LI* Fix obscure bug if input file is deleted while viewing help. 5866dcb072bSXin LI 5876dcb072bSXin LI* Fix bug handling filenames which include square brackets. 5886dcb072bSXin LI 5896dcb072bSXin LI* Fix possible buffer overflow in "global" tag search. 5906dcb072bSXin LI 5916dcb072bSXin LI* Fix possible buffer overflow in usage of LESSOPEN and LESSCLOSE. 5926dcb072bSXin LI 5936dcb072bSXin LI* Fix buffer overflow in reverse search. 5946dcb072bSXin LI 5956dcb072bSXin LI====================================================================== 5966dcb072bSXin LI 5976dcb072bSXin LI Major changes between "less" versions 381 and 382 5986dcb072bSXin LI 5996dcb072bSXin LI* Removed some old copyrighted code. 6006dcb072bSXin LI This probably breaks OS/9 support. 6016dcb072bSXin LI 6026dcb072bSXin LI====================================================================== 6036dcb072bSXin LI 604000ba3e8STim J. Robbins Major changes between "less" versions 378 and 381 605000ba3e8STim J. Robbins 606000ba3e8STim J. Robbins* New -L option to disable LESSOPEN processing. 607000ba3e8STim J. Robbins 608000ba3e8STim J. Robbins* Further support for large (64 bit) file addressing. 609000ba3e8STim J. Robbins Large file support is now set up by the configure script. 610000ba3e8STim J. Robbins 611000ba3e8STim J. Robbins* Use autoconf 2.54. 612000ba3e8STim J. Robbins Replace configure.in, acconfig.h, defines.h.top with configure.ac. 613000ba3e8STim J. Robbins 614000ba3e8STim J. Robbins* Overstriking underscore with underscore is now bold or underlined 615000ba3e8STim J. Robbins depending on context. 616000ba3e8STim J. Robbins 617000ba3e8STim J. Robbins* Use only 7 spaces for line numbers in -N mode, if possible. 618000ba3e8STim J. Robbins 619000ba3e8STim J. Robbins* Fix some bugs in handling overstriking in UTF-8 files. 620000ba3e8STim J. Robbins 621000ba3e8STim J. Robbins* Fix some nroff issues in the man page. 622000ba3e8STim J. Robbins 623000ba3e8STim J. Robbins====================================================================== 624000ba3e8STim J. Robbins 625000ba3e8STim J. Robbins Major changes between "less" versions 376 and 378 626000ba3e8STim J. Robbins 627000ba3e8STim J. Robbins* Bug fixes: 628000ba3e8STim J. Robbins Default buffer space is now 64K as documented. 629000ba3e8STim J. Robbins Search highlighting works properly when used with -R. 630000ba3e8STim J. Robbins Windows version works properly when input file contains carriage returns. 631000ba3e8STim J. Robbins Clean up some compiler warnings. 632000ba3e8STim J. Robbins 633000ba3e8STim J. Robbins====================================================================== 634000ba3e8STim J. Robbins 635000ba3e8STim J. Robbins Major changes between "less" versions 358 and 376 636c9346414SPaul Saab 637c9346414SPaul Saab* -x option can now specify multiple variable-width tab stops. 638c9346414SPaul Saab 639c9346414SPaul Saab* -X option no longer disables keypad initialization. 640c9346414SPaul Saab New option --no-keypad disables keypad initialization. 641c9346414SPaul Saab 642c9346414SPaul Saab* New commands t and T step through multiple tag matches. 643c9346414SPaul Saab Added support for "global(1)" tags 644c9346414SPaul Saab (see http://www.gnu.org/software/global/global.html). 645c9346414SPaul Saab 646c9346414SPaul Saab* New prompt style set by option -Pw defines the message printed 647c9346414SPaul Saab while waiting for data in the F command. 648c9346414SPaul Saab 649c9346414SPaul Saab* System-wide lesskey file now defaults to sysless in etc directory 650c9346414SPaul Saab instead of .sysless in bin directory. 651c9346414SPaul Saab Use "configure --sysconfdir=..." to change it. 652c9346414SPaul Saab (For backwards compatibility, .sysless in bin is still recognized.) 653c9346414SPaul Saab 654c9346414SPaul Saab* Pressing RightArrow or LeftArrow while entering a number now shifts 655c9346414SPaul Saab the display N columns rather than editing the number itself. 656c9346414SPaul Saab 657c9346414SPaul Saab* Status column (enabled with -J) now shows search results. 658c9346414SPaul Saab 659c9346414SPaul Saab* Windows version sets window title. 660c9346414SPaul Saab 661c9346414SPaul Saab* Default LESSCHARSET for MS-DOS versions is now "dos". 662c9346414SPaul Saab 663000ba3e8STim J. Robbins* Searching works better with ANSI (SGR) escape sequences. 664000ba3e8STim J. Robbins ANSI color escape sequences are now supported in the MS-DOS (DJGPP) version. 665000ba3e8STim J. Robbins 666000ba3e8STim J. Robbins* Improved performance in reading very large pipes. 667c9346414SPaul Saab 668c9346414SPaul Saab* Eliminated some dependencies on file offets being 32 bits. 669c9346414SPaul Saab 670c9346414SPaul Saab* Fixed problems when viewing files with very long lines. 671c9346414SPaul Saab 672c9346414SPaul Saab* Fixed overstriking in UTF-8 mode, and overstriking tabs. 673c9346414SPaul Saab 674c9346414SPaul Saab* Improved horizontal shifting of text using -R option with ANSI color. 675c9346414SPaul Saab 676000ba3e8STim J. Robbins* Improved handling of filenames containing shell metacharacters. 677000ba3e8STim J. Robbins 678c9346414SPaul Saab* Some fixes for EBCDIC systems. 679c9346414SPaul Saab 680c9346414SPaul Saab* Some fixes for OS/2 systems. 681c9346414SPaul Saab 682c9346414SPaul Saab====================================================================== 683c9346414SPaul Saab 6848ed69c6fSPaul Saab Major changes between "less" versions 354 and 358 6858ed69c6fSPaul Saab 6868ed69c6fSPaul Saab* Add -J (--status-column) option to display a status column. 6878ed69c6fSPaul Saab 6888ed69c6fSPaul Saab* Add -# (--shift) option to set default horizontal shift distance. 6898ed69c6fSPaul Saab Default horizontal shift distance is now one-half screen width. 6908ed69c6fSPaul Saab 6918ed69c6fSPaul Saab* Horizontal shifting does not shift line numbers if -N is in effect. 6928ed69c6fSPaul Saab 6938ed69c6fSPaul Saab* Horizontal shifting acts as though -S were set, to avoid confusion. 6948ed69c6fSPaul Saab 6958ed69c6fSPaul Saab====================================================================== 6968ed69c6fSPaul Saab 6978ed69c6fSPaul Saab 698a5f0fb15SPaul Saab Major changes between "less" versions 352 and 354 699a5f0fb15SPaul Saab 700a5f0fb15SPaul Saab* Allow space after numeric-valued command line options. 701a5f0fb15SPaul Saab 702a5f0fb15SPaul Saab* Fix problem with configuring terminal libraries on some systems. 703a5f0fb15SPaul Saab 704a5f0fb15SPaul Saab* Add support for PCRE regular expression library. 705a5f0fb15SPaul Saab 706a5f0fb15SPaul Saab* Add --with-regex option to configure to allow manually selecting 707a5f0fb15SPaul Saab a regular expression library. 708a5f0fb15SPaul Saab 709a5f0fb15SPaul Saab* Fix bug compiling with SECURE = 1. 710a5f0fb15SPaul Saab 711a5f0fb15SPaul Saab====================================================================== 712a5f0fb15SPaul Saab 713a5f0fb15SPaul Saab 714a5f0fb15SPaul Saab Major changes between "less" versions 346 and 352 715a5f0fb15SPaul Saab 716a5f0fb15SPaul Saab* Enable UTF-8 if "UTF-8" appears in locale-related environment variables. 717a5f0fb15SPaul Saab 718a5f0fb15SPaul Saab* Add --with-editor option to configure script. 719a5f0fb15SPaul Saab 720a5f0fb15SPaul Saab* The -M prompt and = message now show the top and bottom line number. 721a5f0fb15SPaul Saab 722a5f0fb15SPaul Saab* Fix bug in running the editor on a file whose name contains quotes, etc. 723a5f0fb15SPaul Saab 724a5f0fb15SPaul Saab* Fix bug in horizontal scrolling of long lines. 725a5f0fb15SPaul Saab 726a5f0fb15SPaul Saab* Fix bug in doing :d on a file which contains marks. 727a5f0fb15SPaul Saab 728a5f0fb15SPaul Saab* Fix bug causing cleared lines to sometimes be filled with standout, 729a5f0fb15SPaul Saab bold, underline, etc. on certain terminals. 730a5f0fb15SPaul Saab 731a5f0fb15SPaul Saab* Fixes for MS-DOS (DJGPP) version. 732a5f0fb15SPaul Saab 733a5f0fb15SPaul Saab====================================================================== 734a5f0fb15SPaul Saab 735a5f0fb15SPaul Saab 736a5f0fb15SPaul Saab Major changes between "less" versions 340 and 346 737a5f0fb15SPaul Saab 738a5f0fb15SPaul Saab* The UTF-8 character set is now supported. 739a5f0fb15SPaul Saab 740a5f0fb15SPaul Saab* The default character set is now latin1 rather than ascii. 741a5f0fb15SPaul Saab 742a5f0fb15SPaul Saab* New option -R (--RAW-CONTROL-CHARS) is like -r but handles 743a5f0fb15SPaul Saab long (wrapped) lines correctly, as long as the input contains only 744a5f0fb15SPaul Saab normal text and ANSI color escape sequences. 745a5f0fb15SPaul Saab 746a5f0fb15SPaul Saab* New option -F (--quit-if-one-screen) quits if the text fits on 747a5f0fb15SPaul Saab the first screen. 748a5f0fb15SPaul Saab 749a5f0fb15SPaul Saab* The -w option now highlights the target line of a g or p command. 750a5f0fb15SPaul Saab 751a5f0fb15SPaul Saab* A system-wide lesskey file is supported (LESSKEY_SYSTEM). 752a5f0fb15SPaul Saab 753a5f0fb15SPaul Saab* New escape for prompt strings: %c is replaced by column number. 754a5f0fb15SPaul Saab 755a5f0fb15SPaul Saab* New escape for prompt strings: %P is replaced by percentage into 756a5f0fb15SPaul Saab file, based on line number rather than byte offset. 757a5f0fb15SPaul Saab 758a5f0fb15SPaul Saab* HOME and END keys now jump to beginning of file or end of file. 759a5f0fb15SPaul Saab 760a5f0fb15SPaul Saab====================================================================== 761a5f0fb15SPaul Saab 762a5f0fb15SPaul Saab 763a5f0fb15SPaul Saab Major changes between "less" versions 337 and 340 764a5f0fb15SPaul Saab 765a5f0fb15SPaul Saab* Command line options for less may now be given in either the old 766a5f0fb15SPaul Saab single-letter form, or a new long name form (--option-name). 767a5f0fb15SPaul Saab See the less man page or "less --help" for the list of long option names. 768a5f0fb15SPaul Saab 769a5f0fb15SPaul Saab* Command line options for lesskey may now be given in a new long name 770a5f0fb15SPaul Saab form. See the lesskey man page for the list of long option names. 771a5f0fb15SPaul Saab 772a5f0fb15SPaul Saab* New command -- toggles an option using the long option name. 773a5f0fb15SPaul Saab 774a5f0fb15SPaul Saab* New command __ queries an option using the long option name. 775a5f0fb15SPaul Saab 776a5f0fb15SPaul Saab* The old -- command is renamed as -!. 777a5f0fb15SPaul Saab 778a5f0fb15SPaul Saab* If a ^P is entered between the dash and the option letter of the - 779a5f0fb15SPaul Saab command, the message describing the new setting is suppressed. 780a5f0fb15SPaul Saab 781a5f0fb15SPaul Saab* Lesskey files may now contain \k escape sequences to represent the 782a5f0fb15SPaul Saab "special" keys (arrows, PAGE-UP/PAGE-DOWN, HOME, END, INSERT, DELETE). 783a5f0fb15SPaul Saab 784a5f0fb15SPaul Saab* New command :d removes the current file from the list of files. 785a5f0fb15SPaul Saab 786a5f0fb15SPaul Saab* New option -~ (like -w before version 335) 787a5f0fb15SPaul Saab suppresses tildes after end-of-file. 788a5f0fb15SPaul Saab 789a5f0fb15SPaul Saab* Less is now released under the GNU General Public License. 790a5f0fb15SPaul Saab 791a5f0fb15SPaul Saab====================================================================== 792a5f0fb15SPaul Saab 793a5f0fb15SPaul Saab 794a5f0fb15SPaul Saab Major changes between "less" versions 335 and 337 795a5f0fb15SPaul Saab 796a5f0fb15SPaul Saab* Fixed bugs in "make install". 797a5f0fb15SPaul Saab 798a5f0fb15SPaul Saab====================================================================== 799a5f0fb15SPaul Saab 800a5f0fb15SPaul Saab 801a5f0fb15SPaul Saab Major changes between "less" versions 332 and 335 802a5f0fb15SPaul Saab 803a5f0fb15SPaul Saab* The old -w flag (suppress tildes after end-of-file) has been removed. 804a5f0fb15SPaul Saab 805a5f0fb15SPaul Saab* New -w flag highlights the first new line after a forward-screen. 806a5f0fb15SPaul Saab 807a5f0fb15SPaul Saab* New -W flag highlights the first new line after any forward movement. 808a5f0fb15SPaul Saab 809a5f0fb15SPaul Saab* Window resize works even if LINES and/or COLUMNS environment 810a5f0fb15SPaul Saab variables are incorrect. 811a5f0fb15SPaul Saab 812a5f0fb15SPaul Saab* New percent escapes for prompt strings: 813a5f0fb15SPaul Saab %d is replaced by the page number, and 814a5f0fb15SPaul Saab %D is replaced by the number of pages in the file. 815a5f0fb15SPaul Saab 816a5f0fb15SPaul Saab* Added charsets "iso8859" and "ebcdic". 817a5f0fb15SPaul Saab 818a5f0fb15SPaul Saab* In Windows version, uses HOMEDRIVE and HOMEPATH if HOME is not defined. 819a5f0fb15SPaul Saab 820a5f0fb15SPaul Saab* Fixed some bugs causing incorrect display on DOS/Windows. 821a5f0fb15SPaul Saab 822a5f0fb15SPaul Saab====================================================================== 823a5f0fb15SPaul Saab 824a5f0fb15SPaul Saab 825a5f0fb15SPaul Saab Major changes between "less" versions 330 and 332 826a5f0fb15SPaul Saab 827a5f0fb15SPaul Saab* Filenames from the command line are entered into the command history, 828a5f0fb15SPaul Saab so UPARROW/DOWNARROW can be used to retrieve them from the :e command. 829a5f0fb15SPaul Saab 830a5f0fb15SPaul Saab* Now works correctly on Windows when using a scrolling terminal 831a5f0fb15SPaul Saab window (buffer larger than display window). 832a5f0fb15SPaul Saab 833a5f0fb15SPaul Saab* On Windows, now restores the console screen on exit. 834a5f0fb15SPaul Saab Use -X to get the old behavior. 835a5f0fb15SPaul Saab 836a5f0fb15SPaul Saab* Fixed bug on Windows when CAPS-LOCK or NUM-LOCK is pressed. 837a5f0fb15SPaul Saab 838a5f0fb15SPaul Saab* Fixed bug on Windows when piping output of an interactive program. 839a5f0fb15SPaul Saab 840a5f0fb15SPaul Saab* Fixed bug in tags file processing when tags file has DOS-style 841a5f0fb15SPaul Saab line terminators (CR/LF). 842a5f0fb15SPaul Saab 843a5f0fb15SPaul Saab* Fixed compilation problem on OS/2. 844a5f0fb15SPaul Saab 845a5f0fb15SPaul Saab====================================================================== 846a5f0fb15SPaul Saab 847a5f0fb15SPaul Saab 848a5f0fb15SPaul Saab Major changes between "less" versions 321 and 330 849a5f0fb15SPaul Saab 850a5f0fb15SPaul Saab* Now supports filenames containing spaces (in double quotes). 851a5f0fb15SPaul Saab New option -" can be used to change the quoting characters. 852a5f0fb15SPaul Saab 853a5f0fb15SPaul Saab* In filename completion, a slash is appended to a directory name. 854a5f0fb15SPaul Saab If the environment variable LESSSEPARATOR is set, the value of 855a5f0fb15SPaul Saab that variable, rather than a slash, is appended. 856a5f0fb15SPaul Saab 857a5f0fb15SPaul Saab* LeftArrow and RightArrow are same as ESC-[ and ESC-]. 858a5f0fb15SPaul Saab 859a5f0fb15SPaul Saab* Added commands ESC-( and ESC-), same as ESC-[ and ESC-]. 860a5f0fb15SPaul Saab 861a5f0fb15SPaul Saab* A "quit" command defined in a lesskey file may now have an "extra" 862a5f0fb15SPaul Saab string, which is used to return an exit code from less when it quits. 863a5f0fb15SPaul Saab 864a5f0fb15SPaul Saab* New environment variables LESSMETACHARS and LESSMETAESCAPE provide 865a5f0fb15SPaul Saab more control over how less interfaces to the shell. 866a5f0fb15SPaul Saab 867a5f0fb15SPaul Saab* Ported to Microsoft Visual C compiler for Windows. 868a5f0fb15SPaul Saab 869a5f0fb15SPaul Saab* Ported to DJGPP compiler for MS-DOS. 870a5f0fb15SPaul Saab 871a5f0fb15SPaul Saab* Bug fixes. 872a5f0fb15SPaul Saab 873a5f0fb15SPaul Saab====================================================================== 874a5f0fb15SPaul Saab 875a5f0fb15SPaul Saab 876a5f0fb15SPaul Saab Major changes between "less" versions 291 and 321 877a5f0fb15SPaul Saab 878a5f0fb15SPaul Saab* Command line at bottom of screen now scrolls, so it can be longer 879a5f0fb15SPaul Saab than the screen width. 880a5f0fb15SPaul Saab 881a5f0fb15SPaul Saab* New commands ESC-] and ESC-[ scroll the display horizontally. 882a5f0fb15SPaul Saab 883a5f0fb15SPaul Saab* New command ESC-SPACE scrolls forward a full screen, even if it 884a5f0fb15SPaul Saab hits end-of-file. 885a5f0fb15SPaul Saab 886a5f0fb15SPaul Saab* Alternate modifiers for search commands: ^N is same as !, 887a5f0fb15SPaul Saab ^F is same as @, and ^E is same as *. 888a5f0fb15SPaul Saab 889a5f0fb15SPaul Saab* New modifier for search commands: ^K means highlight the matches 890a5f0fb15SPaul Saab currently on-screen, but don't move to the first match. 891a5f0fb15SPaul Saab 892a5f0fb15SPaul Saab* New modifier for search commands: ^R means don't use regular 893a5f0fb15SPaul Saab expressions in the search. 894a5f0fb15SPaul Saab 895a5f0fb15SPaul Saab* Environment variable LESSKEY gives name of default lesskey file. 896a5f0fb15SPaul Saab 897a5f0fb15SPaul Saab* Environment variable LESSSECURE will force less to run in 898a5f0fb15SPaul Saab "secure" mode. 899a5f0fb15SPaul Saab 900a5f0fb15SPaul Saab* Command line argument "--" signals that the rest of the arguments 901a5f0fb15SPaul Saab are files (not option flags). 902a5f0fb15SPaul Saab 903a5f0fb15SPaul Saab* Help file (less.hlp) is no longer installed. Help text is now 904a5f0fb15SPaul Saab embedded in the less executable itself. 905a5f0fb15SPaul Saab 906a5f0fb15SPaul Saab* Added -Ph to change the prompt for the help text. 907a5f0fb15SPaul Saab Added -Ps to change the default short prompt (same as plain -P). 908a5f0fb15SPaul Saab 909a5f0fb15SPaul Saab* Ported to the Borland C compiler for MS-DOS. 910a5f0fb15SPaul Saab 911a5f0fb15SPaul Saab* Ported to Windows 95 & Windows NT. 912a5f0fb15SPaul Saab 913a5f0fb15SPaul Saab* Ported to OS-9. 914a5f0fb15SPaul Saab 915a5f0fb15SPaul Saab* Ported to GNU Hurd. 916a5f0fb15SPaul Saab 917a5f0fb15SPaul Saab====================================================================== 918a5f0fb15SPaul Saab 919a5f0fb15SPaul Saab 920a5f0fb15SPaul Saab Major changes between "less" versions 290 and 291 921a5f0fb15SPaul Saab 922a5f0fb15SPaul Saab* Less environment variables can be specified in lesskey files. 923a5f0fb15SPaul Saab 924a5f0fb15SPaul Saab* Fixed MS-DOS build. 925a5f0fb15SPaul Saab 926a5f0fb15SPaul Saab====================================================================== 927a5f0fb15SPaul Saab 928a5f0fb15SPaul Saab 929a5f0fb15SPaul Saab Major changes between "less" versions 278 and 290 930a5f0fb15SPaul Saab 931a5f0fb15SPaul Saab* Accepts GNU-style options "--help" and "--version". 932a5f0fb15SPaul Saab 933a5f0fb15SPaul Saab* OS/2 version looks for less.ini in $HOME before $INIT and $PATH. 934a5f0fb15SPaul Saab 935a5f0fb15SPaul Saab* Bug fixes 936a5f0fb15SPaul Saab 937a5f0fb15SPaul Saab====================================================================== 938a5f0fb15SPaul Saab 939a5f0fb15SPaul Saab 940a5f0fb15SPaul Saab Major changes between "less" versions 252 and 278 941a5f0fb15SPaul Saab 942a5f0fb15SPaul Saab* A LESSOPEN preprocessor may now pipe the converted file data to less, 943a5f0fb15SPaul Saab rather than writing it to a temporary file. 944a5f0fb15SPaul Saab 945a5f0fb15SPaul Saab* Search pattern highlighting has been fixed. It now highlights 946a5f0fb15SPaul Saab reliably, even if a string is split across two screen lines, 947a5f0fb15SPaul Saab contains TABs, etc. 948a5f0fb15SPaul Saab 949a5f0fb15SPaul Saab* The -F flag (which suppress search highlighting) has been changed 950a5f0fb15SPaul Saab to -G. A new flag, -g, changes search highlighting to highlight 951a5f0fb15SPaul Saab only the string found by the last search command, instead of all 952a5f0fb15SPaul Saab strings which match the last search command. 953a5f0fb15SPaul Saab 954a5f0fb15SPaul Saab* New flag -I acts like -i, but ignores case even if the search 955a5f0fb15SPaul Saab pattern contains uppercase letters. 956a5f0fb15SPaul Saab 957a5f0fb15SPaul Saab* Less now checks for the environment variable VISUAL before EDITOR. 958a5f0fb15SPaul Saab 959a5f0fb15SPaul Saab* Ported to OS/2. 960a5f0fb15SPaul Saab 961a5f0fb15SPaul Saab====================================================================== 962a5f0fb15SPaul Saab 963a5f0fb15SPaul Saab 964a5f0fb15SPaul Saab Major changes between "less" versions 237 and 252 965a5f0fb15SPaul Saab 966a5f0fb15SPaul Saab* Changes in line-editing keys: 967a5f0fb15SPaul Saab The literal key is now ^V or ^A rather than \ (backslash). 968a5f0fb15SPaul Saab Filename completion commands (TAB and ^L) are disabled 969a5f0fb15SPaul Saab when typing a search pattern. 970a5f0fb15SPaul Saab 971a5f0fb15SPaul Saab* Line-editing command keys can be redefined using lesskey. 972a5f0fb15SPaul Saab 973a5f0fb15SPaul Saab* Lesskey with no input file defaults to $HOME/.lesskey 974a5f0fb15SPaul Saab rather than standard input. 975a5f0fb15SPaul Saab 976a5f0fb15SPaul Saab* New option -V displays version number of less. 977a5f0fb15SPaul Saab 978a5f0fb15SPaul Saab* New option -V displays version number of lesskey. 979a5f0fb15SPaul Saab 980a5f0fb15SPaul Saab* Help file less.hlp is now installed by default in /usr/local/share 981a5f0fb15SPaul Saab rather than /usr/local/lib. 982a5f0fb15SPaul Saab 983a5f0fb15SPaul Saab 984a5f0fb15SPaul Saab====================================================================== 985a5f0fb15SPaul Saab 986a5f0fb15SPaul Saab 987a5f0fb15SPaul Saab Major changes between "less" versions 170 and 237 988a5f0fb15SPaul Saab 989a5f0fb15SPaul Saab* By popular demand, text which matches the current search pattern 990a5f0fb15SPaul Saab is highlighted. New -F flag disables this feature. 991a5f0fb15SPaul Saab 992a5f0fb15SPaul Saab* Henry Spencer's regexp.c is now included, for systems which do not 993a5f0fb15SPaul Saab have a regular expression library. 994a5f0fb15SPaul Saab regexp.c is Copyright (c) 1986 by University of Toronto. 995a5f0fb15SPaul Saab 996a5f0fb15SPaul Saab* New line-editing keys, including command history (arrow keys) and 997a5f0fb15SPaul Saab filename completion (TAB). 998a5f0fb15SPaul Saab 999a5f0fb15SPaul Saab* Input preprocessor allows modification of input files (e.g. uncompress) 1000a5f0fb15SPaul Saab via LESSOPEN/LESSCLOSE environment variables. 1001a5f0fb15SPaul Saab 1002a5f0fb15SPaul Saab* New -X flag disables sending termcap "ti" and "te" (initialize and 1003a5f0fb15SPaul Saab deinitialize) strings to the terminal. 1004a5f0fb15SPaul Saab 1005a5f0fb15SPaul Saab* Changing -i from within less now correctly affects a subsequent 1006a5f0fb15SPaul Saab repeated search. 1007a5f0fb15SPaul Saab 1008a5f0fb15SPaul Saab* Searching for underlined or overstruck text now works when the -u 1009a5f0fb15SPaul Saab flag is in effect, rather than the -i flag. 1010a5f0fb15SPaul Saab 1011a5f0fb15SPaul Saab* Use setlocale (LANG and LC_CTYPE environment variables) to determine 1012a5f0fb15SPaul Saab the character set if LESSCHARSET/LESSCHARDEF are not set. 1013a5f0fb15SPaul Saab 1014a5f0fb15SPaul Saab* The default format for displaying binary characters is now standout 1015a5f0fb15SPaul Saab (reverse video) rather than blinking. This can still be changed by 1016a5f0fb15SPaul Saab setting the LESSBINFMT environment variable. 1017a5f0fb15SPaul Saab 1018a5f0fb15SPaul Saab* Use autoconf installation technology. 1019a5f0fb15SPaul Saab 1020a5f0fb15SPaul Saab* Ported to MS-DOS. 1021a5f0fb15SPaul Saab 1022a5f0fb15SPaul Saab ******************************** 1023a5f0fb15SPaul Saab Things that may surprise you 1024a5f0fb15SPaul Saab ******************************** 1025a5f0fb15SPaul Saab 1026a5f0fb15SPaul Saab* When you enter text at the bottom of the screen (search string, 1027a5f0fb15SPaul Saab filename, etc.), some keys act different than previously. 1028a5f0fb15SPaul Saab Specifically, \ (backslash), ESC, TAB, BACKTAB, and control-L 1029a5f0fb15SPaul Saab now have line editing functions. 1030a5f0fb15SPaul Saab 1031a5f0fb15SPaul Saab* Some previous unofficial versions of less were able to display 1032a5f0fb15SPaul Saab compressed files. The new LESSOPEN/LESSCLOSE feature now provides 1033a5f0fb15SPaul Saab this functionality in a different way. 1034a5f0fb15SPaul Saab 1035a5f0fb15SPaul Saab* Some previous unofficial versions of less provided a -Z flag to 1036a5f0fb15SPaul Saab set the number of lines of text to retain between full screen scrolls. 1037a5f0fb15SPaul Saab The -z-n flag (that is, -z with a negative number) provides this 1038a5f0fb15SPaul Saab functionality. 1039a5f0fb15SPaul Saab 1040a5f0fb15SPaul Saab 1041a5f0fb15SPaul Saab====================================================================== 1042a5f0fb15SPaul Saab 1043a5f0fb15SPaul Saab 1044a5f0fb15SPaul Saab Major changes between "less" versions 123 and 170 1045a5f0fb15SPaul Saab 1046a5f0fb15SPaul Saab* New option -j allows target lines to be positioned anywhere on screen. 1047a5f0fb15SPaul Saab 1048a5f0fb15SPaul Saab* New option -S truncates displayed line at the screen width, 1049a5f0fb15SPaul Saab rather than wrapping onto the next line. 1050a5f0fb15SPaul Saab 1051a5f0fb15SPaul Saab* New option -y limits amount of forward scroll. 1052a5f0fb15SPaul Saab 1053a5f0fb15SPaul Saab* New option -T specifies a "tags" file. 1054a5f0fb15SPaul Saab 1055a5f0fb15SPaul Saab* Non-printable, non-control characters are displayed in octal. 1056a5f0fb15SPaul Saab Such characters, as well as control characters, are displayed 1057a5f0fb15SPaul Saab in blinking mode. 1058a5f0fb15SPaul Saab 1059a5f0fb15SPaul Saab* New command -+ sets an option to its default. 1060a5f0fb15SPaul Saab* New command -- sets an option to the opposite of its default. 1061a5f0fb15SPaul Saab 1062a5f0fb15SPaul Saab* Lesskey file may have a string appended to a key's action, 1063a5f0fb15SPaul Saab which acts as though typed in after the command. 1064a5f0fb15SPaul Saab 1065a5f0fb15SPaul Saab* New commands ESC-^F and ESC-^B match arbitrary types of brackets. 1066a5f0fb15SPaul Saab 1067a5f0fb15SPaul Saab* New command F monitors a growing file (like "tail -f"). 1068a5f0fb15SPaul Saab 1069a5f0fb15SPaul Saab* New command | pipes a section of the input file into a shell command. 1070a5f0fb15SPaul Saab 1071a5f0fb15SPaul Saab* New command :x directly jumps to a file in the command line list. 1072a5f0fb15SPaul Saab 1073a5f0fb15SPaul Saab* Search commands have been enhanced and reorganized: 1074a5f0fb15SPaul Saab n Repeat search, same direction. 1075a5f0fb15SPaul Saab N Repeat search, opposite direction. 1076a5f0fb15SPaul Saab ESC-/ Search forward thru file boundaries 1077a5f0fb15SPaul Saab ESC-? Search backward thru file boundaries 1078a5f0fb15SPaul Saab ESC-n Repeat search thru file boundaries, same direction. 1079a5f0fb15SPaul Saab ESC-N Repeat search thru file boundaries, opposite direction. 1080a5f0fb15SPaul Saab Special character * causes search to search thru file boundaries. 1081a5f0fb15SPaul Saab Special character @ causes search to begin at start/end of file list. 1082a5f0fb15SPaul Saab 1083a5f0fb15SPaul Saab* Examining a new file adds it to the command line list. 1084a5f0fb15SPaul Saab A list of files, or an expression which matches more than one file, 1085a5f0fb15SPaul Saab may be examined; all of them are added to the command line list. 1086a5f0fb15SPaul Saab 1087a5f0fb15SPaul Saab* Environment variables LESSCHARSET and LESSCHARDEF can define 1088a5f0fb15SPaul Saab a non-ASCII character set. 1089a5f0fb15SPaul Saab 1090a5f0fb15SPaul Saab* Partial support for MSDOS, including options -R for repainting screen 1091a5f0fb15SPaul Saab on quit, -v/-V to select video mode, and -W to change window size. 1092a5f0fb15SPaul Saab 1093a5f0fb15SPaul Saab 1094a5f0fb15SPaul Saab====================================================================== 1095a5f0fb15SPaul Saab 1096a5f0fb15SPaul Saab 1097a5f0fb15SPaul Saab Major changes between "less" versions 97 and 123 1098a5f0fb15SPaul Saab 1099a5f0fb15SPaul Saab* New option (-N) causes line numbers to be displayed in the 1100a5f0fb15SPaul Saab text of the file (like vi "set nu"). 1101a5f0fb15SPaul Saab 1102a5f0fb15SPaul Saab* New option (-?) prints help message immediately. 1103a5f0fb15SPaul Saab 1104a5f0fb15SPaul Saab* New option (-r) displays "raw" control characters, without 1105a5f0fb15SPaul Saab mapping them to ^X notation. 1106a5f0fb15SPaul Saab 1107a5f0fb15SPaul Saab* New option (-f) forces less to open non-regular files 1108a5f0fb15SPaul Saab (directories, etc). 1109a5f0fb15SPaul Saab 1110a5f0fb15SPaul Saab* New option (-k) can be used to specify lesskey files by name. 1111a5f0fb15SPaul Saab 1112a5f0fb15SPaul Saab* New option (-y) can be used to set a forward scroll limit 1113a5f0fb15SPaul Saab (like -h sets a backward scroll limit). 1114a5f0fb15SPaul Saab 1115a5f0fb15SPaul Saab* File marks (set by the m command) are now preserved when a new 1116a5f0fb15SPaul Saab file is edited. The ' command can thus be used to switch files. 1117a5f0fb15SPaul Saab 1118a5f0fb15SPaul Saab* New command ESC-/ searches all files (on the command line) 1119a5f0fb15SPaul Saab for a pattern. 1120a5f0fb15SPaul Saab 1121a5f0fb15SPaul Saab* New command ESC-n repeats previous search, spanning files. 1122a5f0fb15SPaul Saab 1123a5f0fb15SPaul Saab* The N command has been changed to repeat the previous search 1124a5f0fb15SPaul Saab in the reverse direction. The old N command is still available 1125a5f0fb15SPaul Saab via :n. 1126a5f0fb15SPaul Saab 1127a5f0fb15SPaul Saab* New command ESC-N repeats previous search in the reverse 1128a5f0fb15SPaul Saab direction and spanning files. 1129a5f0fb15SPaul Saab 1130a5f0fb15SPaul Saab* 8 bit characters are now supported. A new option (-g) can be 1131a5f0fb15SPaul Saab used to strip off the eighth bit (the previous behavior). 1132a5f0fb15SPaul Saab 1133a5f0fb15SPaul Saab* Options which take a following string (like -t) may now 1134a5f0fb15SPaul Saab optionally have a space between the option letter and the string. 1135a5f0fb15SPaul Saab 1136a5f0fb15SPaul Saab* Six new commands { } ( ) [ and ] can be used to match 1137a5f0fb15SPaul Saab brackets of specific types, similar to vi % command. 1138a5f0fb15SPaul Saab 1139a5f0fb15SPaul Saab* New commands z and w move forward/backward one window and 1140a5f0fb15SPaul Saab simultaneously set the window size. 1141a5f0fb15SPaul Saab 1142a5f0fb15SPaul Saab* Prompt string expansion now has %L for line number of the last 1143a5f0fb15SPaul Saab line in the file, and %E for the name of the editor. 1144a5f0fb15SPaul Saab Also, % escapes which refer to a line (b=bottom, t=top, etc.) 1145a5f0fb15SPaul Saab can use j for the jump target line. 1146a5f0fb15SPaul Saab 1147a5f0fb15SPaul Saab* New environment variable LESSEDIT can be used to tailor the 1148a5f0fb15SPaul Saab command string passed to the editor by the v command. 1149a5f0fb15SPaul Saab 1150a5f0fb15SPaul Saab* Examining a file which was previously examined will return 1151a5f0fb15SPaul Saab to the same position in the file. 1152a5f0fb15SPaul Saab 1153a5f0fb15SPaul Saab* A "%" is expanded to the current filename and a "#" to the 1154a5f0fb15SPaul Saab previous filename, in both shell commands and the E command. 1155a5f0fb15SPaul Saab (Previously % worked only in shell commands and # worked 1156a5f0fb15SPaul Saab only in the E command.) 1157a5f0fb15SPaul Saab 1158a5f0fb15SPaul Saab* New command ":ta" is equivalent to "-t". 1159a5f0fb15SPaul Saab 1160a5f0fb15SPaul Saab* New command "s" is equivalent to "-l". 1161a5f0fb15SPaul Saab 1162a5f0fb15SPaul Saab* The - command may be followed by "+X" to revert to the default 1163a5f0fb15SPaul Saab for option X, or "-X" to get the opposite of the default. 1164a5f0fb15SPaul Saab 1165a5f0fb15SPaul Saab* Lesskey files may now include characters after the action as 1166a5f0fb15SPaul Saab extra input to be parsed after the action; for example: 1167a5f0fb15SPaul Saab "toggle-option X" to toggle a specific option X. 11687f074f9cSXin LI 11697f074f9cSXin LI 11707f074f9cSXin LI 1171f78327b5SXin LI 1172464501a8SXin LI 1173