11133e27eSPeter Avalos 21133e27eSPeter Avalos NEWS about less 31133e27eSPeter Avalos 41133e27eSPeter Avalos====================================================================== 51133e27eSPeter Avalos 60c7ad07eSAntonio Huete Jimenez For the latest news about less, see https://greenwoodsoftware.com/less 71133e27eSPeter Avalos You can also download the latest version of less from there. 81133e27eSPeter Avalos 90c7ad07eSAntonio Huete Jimenez Report bugs, suggestions or comments at 100c7ad07eSAntonio Huete Jimenez https://github.com/gwsw/less/issues. 110c7ad07eSAntonio Huete Jimenez 120c7ad07eSAntonio Huete Jimenez====================================================================== 130c7ad07eSAntonio Huete Jimenez 14*e433da38SAaron LI Major changes between "less" versions 643 and 661 15*e433da38SAaron LI 16*e433da38SAaron LI* Add ^O^N, ^O^P, ^O^L and ^O^O commands and mouse clicks (with --mouse) 17*e433da38SAaron LI to find and open OSC8 hyperlinks (github #251). 18*e433da38SAaron LI 19*e433da38SAaron LI* Add --match-shift option. 20*e433da38SAaron LI 21*e433da38SAaron LI* Add --lesskey-content option (github #447). 22*e433da38SAaron LI 23*e433da38SAaron LI* Add LESSKEY_CONTENT environment variable (github #447). 24*e433da38SAaron LI 25*e433da38SAaron LI* Add --no-search-header-lines and --no-search-header-columns options 26*e433da38SAaron LI (github #397). 27*e433da38SAaron LI 28*e433da38SAaron LI* Add ctrl-L search modifier (github #367). 29*e433da38SAaron LI 30*e433da38SAaron LI* A ctrl-P at the start of a shell command suppresses the "done" 31*e433da38SAaron LI message (github #462). 32*e433da38SAaron LI 33*e433da38SAaron LI* Add attribute characters ('*', '~', '_', '&') to --color 34*e433da38SAaron LI parameter (github #471). 35*e433da38SAaron LI 36*e433da38SAaron LI* Allow expansion of environment variables in lesskey files. 37*e433da38SAaron LI 38*e433da38SAaron LI* Add LESSSECURE_ALLOW environment variable (github #449). 39*e433da38SAaron LI 40*e433da38SAaron LI* Add LESS_UNSUPPORT environment variable. 41*e433da38SAaron LI 42*e433da38SAaron LI* Add line number parameter to --header option (github #436). 43*e433da38SAaron LI 44*e433da38SAaron LI* Mouse right-click jumps to position marked by left-click (github #390). 45*e433da38SAaron LI 46*e433da38SAaron LI* Ensure that the target line is not obscured by a header line 47*e433da38SAaron LI set by --header (github #444). 48*e433da38SAaron LI 49*e433da38SAaron LI* Change default character set to "utf-8", except remains "dos" on MS-DOS. 50*e433da38SAaron LI 51*e433da38SAaron LI* Add message when search with ^W wraps (github #459). 52*e433da38SAaron LI 53*e433da38SAaron LI* UCRT builds on Windows 10 and later now support Unicode file names 54*e433da38SAaron LI (github #438). 55*e433da38SAaron LI 56*e433da38SAaron LI* Improve behavior of interrupt while reading non-terminated pipe 57*e433da38SAaron LI (github #414). 58*e433da38SAaron LI 59*e433da38SAaron LI* Improve parsing of -j, -x and -# options (github #393). 60*e433da38SAaron LI 61*e433da38SAaron LI* Support files larger than 4GB on Windows (github #417). 62*e433da38SAaron LI 63*e433da38SAaron LI* Support entry of Unicode chars larger than U+FFFF on Windows (github #391). 64*e433da38SAaron LI 65*e433da38SAaron LI* Improve colors of bold, underline and standout text on Windows. 66*e433da38SAaron LI 67*e433da38SAaron LI* Allow --rscroll to accept non-ASCII characters (github #483). 68*e433da38SAaron LI 69*e433da38SAaron LI* Allow the parameter to certain options to be terminated with a 70*e433da38SAaron LI space (--color, --quotes, --rscroll, --search-options 71*e433da38SAaron LI and --intr) (github #495). 72*e433da38SAaron LI 73*e433da38SAaron LI* Fix bug where # substitution failed after viewing help (github #420). 74*e433da38SAaron LI 75*e433da38SAaron LI* Fix crash if files are deleted while less is viewing them (github #404). 76*e433da38SAaron LI 77*e433da38SAaron LI* Workaround unreliable ReadConsoleInputW behavior on Windows 78*e433da38SAaron LI with non-ASCII input. 79*e433da38SAaron LI 80*e433da38SAaron LI* Fix -J display when searching for non-ASCII characters (github #422). 81*e433da38SAaron LI 82*e433da38SAaron LI* Don't filter header lines via the & command (github #423). 83*e433da38SAaron LI 84*e433da38SAaron LI* Fix bug when horizontally shifting long lines (github #425). 85*e433da38SAaron LI 86*e433da38SAaron LI* Add -x and -D options to lesstest, to make it easier to diagnose 87*e433da38SAaron LI a failed lesstest run. 88*e433da38SAaron LI 89*e433da38SAaron LI* Fix bug searching long lines with --incsearch and -S (github #428). 90*e433da38SAaron LI 91*e433da38SAaron LI* Fix bug that made ESC-} fail if top line on screen was empty (github #429). 92*e433da38SAaron LI 93*e433da38SAaron LI* Fix bug with --mouse on Windows when used with pipes (github #440). 94*e433da38SAaron LI 95*e433da38SAaron LI* Fix bug in --+OPTION command line syntax. 96*e433da38SAaron LI 97*e433da38SAaron LI* Fix display bug when using -w with an empty line with a CR/LF 98*e433da38SAaron LI line ending (github #474). 99*e433da38SAaron LI 100*e433da38SAaron LI* When substituting '#' or '%' with a filename, quote the filename 101*e433da38SAaron LI if it contains a space (github #480). 102*e433da38SAaron LI 103*e433da38SAaron LI* Fix wrong sleep time when system has usleep but not nanosleep (github #489). 104*e433da38SAaron LI 105*e433da38SAaron LI* Fix bug when file name contains a newline. 106*e433da38SAaron LI 107*e433da38SAaron LI* Fix bug when file name contains nonprintable characters (github #503). 108*e433da38SAaron LI 109*e433da38SAaron LI* Fix DJGPP build (github #497). 110*e433da38SAaron LI 111*e433da38SAaron LI* Update Unicode tables. 112*e433da38SAaron LI 113*e433da38SAaron LI====================================================================== 114*e433da38SAaron LI 115320d7c8aSAaron LI Major changes between "less" versions 633 and 643 116320d7c8aSAaron LI 117320d7c8aSAaron LI* Fix problem when a program piping into less reads from the tty, 118320d7c8aSAaron LI like sudo asking for password (github #368). 119320d7c8aSAaron LI 120320d7c8aSAaron LI* Fix search modifier ^E after ^W. 121320d7c8aSAaron LI 122320d7c8aSAaron LI* Fix bug using negated (^N) search (github #374). 123320d7c8aSAaron LI 124320d7c8aSAaron LI* Fix bug setting colors with -D on Windows build (github #386). 125320d7c8aSAaron LI 126320d7c8aSAaron LI* Fix reading special chars like PageDown on Windows (github #378). 127320d7c8aSAaron LI 128320d7c8aSAaron LI* Fix mouse wheel scrolling on Windows (github #379). 129320d7c8aSAaron LI 130320d7c8aSAaron LI* Fix erroneous EOF when terminal window size changes (github #372). 131320d7c8aSAaron LI 132320d7c8aSAaron LI* Fix compile error with some definitions of ECHONL (github #395). 133320d7c8aSAaron LI 134320d7c8aSAaron LI* Fix crash on Windows when writing logfile (github #405). 135320d7c8aSAaron LI 136320d7c8aSAaron LI* Fix regression in exit code when stdin is /dev/null and 137320d7c8aSAaron LI output is a file (github #373). 138320d7c8aSAaron LI 139320d7c8aSAaron LI* Add lesstest test suite to production release (github #344). 140320d7c8aSAaron LI 141320d7c8aSAaron LI* Change lesstest output to conform with 142320d7c8aSAaron LI automake Simple Test Format (github #399). 143320d7c8aSAaron LI 144320d7c8aSAaron LI====================================================================== 145320d7c8aSAaron LI 146320d7c8aSAaron LI Major changes between "less" versions 632 and 633 147320d7c8aSAaron LI 148320d7c8aSAaron LI* Fix build on systems which have ncurses/termcap.h or 149320d7c8aSAaron LI ncursesw/termcap.h but not termcap.h. 150320d7c8aSAaron LI 151320d7c8aSAaron LI====================================================================== 152320d7c8aSAaron LI 153320d7c8aSAaron LI Major changes between "less" versions 608 and 632 154320d7c8aSAaron LI 155320d7c8aSAaron LI* Add LESSUTFCHARDEF environment variable (github #275). 156320d7c8aSAaron LI 157320d7c8aSAaron LI* Add # command (github #330). 158320d7c8aSAaron LI 159320d7c8aSAaron LI* Add ^S search modifier (github #196). 160320d7c8aSAaron LI 161320d7c8aSAaron LI* Add --wordwrap option (github #113). 162320d7c8aSAaron LI 163320d7c8aSAaron LI* Add --no-vbell option (github #304). 164320d7c8aSAaron LI 165320d7c8aSAaron LI* Add --no-search-headers option (github #44). 166320d7c8aSAaron LI 167320d7c8aSAaron LI* Add --modelines option (github #89). 168320d7c8aSAaron LI 169320d7c8aSAaron LI* Add --intr option (github #224). 170320d7c8aSAaron LI 171320d7c8aSAaron LI* Add --proc-backspace, --proc-tab and --proc-return options (github #335). 172320d7c8aSAaron LI 173320d7c8aSAaron LI* Add --show-preproc-errors option (github #258). 174320d7c8aSAaron LI 175320d7c8aSAaron LI* Add LESS_LINES and LESS_COLUMNS environment variables (github #84). 176320d7c8aSAaron LI 177320d7c8aSAaron LI* Add LESS_DATA_DELAY environment variable (github #337). 178320d7c8aSAaron LI 179320d7c8aSAaron LI* Allow empty "lines" field in --header option. 180320d7c8aSAaron LI 181320d7c8aSAaron LI* Update Unicode tables. 182320d7c8aSAaron LI 183320d7c8aSAaron LI* Improve ability of ^X to interrupt F command (github #49). 184320d7c8aSAaron LI 185320d7c8aSAaron LI* Status column (-J) shows off-screen matches. 186320d7c8aSAaron LI 187320d7c8aSAaron LI* Parenthesized sub-patterns in searches are colored with unique colors, 188320d7c8aSAaron LI if supported by the regular expression library (github #196). 189320d7c8aSAaron LI 190320d7c8aSAaron LI* Don't allow opening a tty as file input unless -f is set (github #309). 191320d7c8aSAaron LI 192320d7c8aSAaron LI* Don't require newline input after +&... option (github #339). 193320d7c8aSAaron LI 194320d7c8aSAaron LI* Fix incorrect handling of some Private Use Unicode characters. 195320d7c8aSAaron LI 196320d7c8aSAaron LI* Fix ANSI color bug when overstriking with colored chars (github #276). 197320d7c8aSAaron LI 198320d7c8aSAaron LI* Fix compiler const warning (github #279). 199320d7c8aSAaron LI 200320d7c8aSAaron LI* Fix signal race in iread (github #280). 201320d7c8aSAaron LI 202320d7c8aSAaron LI* Fix reading procfs files on Linux (github #282). 203320d7c8aSAaron LI 204320d7c8aSAaron LI* Fix --ignore-case with ctrl-R (no regex) search (github #300). 205320d7c8aSAaron LI 206320d7c8aSAaron LI* Fix bug doing repeat search after setting & filter (github #299). 207320d7c8aSAaron LI 208320d7c8aSAaron LI* Fix bug doing repeat search before non-repeat search. 209320d7c8aSAaron LI 210320d7c8aSAaron LI* Fix crash with -R and certain line lengths (github #338). 211320d7c8aSAaron LI 212320d7c8aSAaron LI* Fix input of Windows dead keys (github #352). 213320d7c8aSAaron LI 214320d7c8aSAaron LI* Don't retain search options from a cancelled search (github #302). 215320d7c8aSAaron LI 216320d7c8aSAaron LI* Don't call realpath on fake filenames like "-" (github #289). 217320d7c8aSAaron LI 218320d7c8aSAaron LI* Implement lesstest test suite. 219320d7c8aSAaron LI 220320d7c8aSAaron LI* Convert function parameter definitions from K&R to C89 (github #316). 221320d7c8aSAaron LI 222320d7c8aSAaron LI====================================================================== 223320d7c8aSAaron LI 2240c7ad07eSAntonio Huete Jimenez Major changes between "less" versions 590 and 608 2250c7ad07eSAntonio Huete Jimenez 2260c7ad07eSAntonio Huete Jimenez* Add the --header option (github #43). 2270c7ad07eSAntonio Huete Jimenez 2280c7ad07eSAntonio Huete Jimenez* Add the --no-number-headers option (github #178). 2290c7ad07eSAntonio Huete Jimenez 2300c7ad07eSAntonio Huete Jimenez* Add the --status-line option. 2310c7ad07eSAntonio Huete Jimenez 2320c7ad07eSAntonio Huete Jimenez* Add the --redraw-on-quit option (github #36). 2330c7ad07eSAntonio Huete Jimenez 2340c7ad07eSAntonio Huete Jimenez* Add the --search-options option (github #213). 2350c7ad07eSAntonio Huete Jimenez 2360c7ad07eSAntonio Huete Jimenez* Add the --exit-follow-on-close option (github #244). 2370c7ad07eSAntonio Huete Jimenez 2380c7ad07eSAntonio Huete Jimenez* Add 'H' color type to set color of header lines. 2390c7ad07eSAntonio Huete Jimenez 2400c7ad07eSAntonio Huete Jimenez* Add #version conditional to lesskey. 2410c7ad07eSAntonio Huete Jimenez 2420c7ad07eSAntonio Huete Jimenez* Add += syntax to variable section in lesskey files. 2430c7ad07eSAntonio Huete Jimenez 2440c7ad07eSAntonio Huete Jimenez* Allow option name in -- command to end with '=' in addition to '\n'. 2450c7ad07eSAntonio Huete Jimenez 2460c7ad07eSAntonio Huete Jimenez* Add $HOME/.config to possible locations of lesskey file (github #153). 2470c7ad07eSAntonio Huete Jimenez 2480c7ad07eSAntonio Huete Jimenez* Add $XDG_STATE_HOME and $HOME/.local/state to possible locations 2490c7ad07eSAntonio Huete Jimenez of history file (github #223). 2500c7ad07eSAntonio Huete Jimenez 2510c7ad07eSAntonio Huete Jimenez* Don't read or write history file in secure mode (github #201). 2520c7ad07eSAntonio Huete Jimenez 2530c7ad07eSAntonio Huete Jimenez* Fix display of multibyte and double-width chars in prompt. 2540c7ad07eSAntonio Huete Jimenez 2550c7ad07eSAntonio Huete Jimenez* Fix ESC-BACKSPACE command when BACKSPACE key does not send 0x08 2560c7ad07eSAntonio Huete Jimenez (github #188). 2570c7ad07eSAntonio Huete Jimenez 2580c7ad07eSAntonio Huete Jimenez* Add more \k codes to lesskey format. 2590c7ad07eSAntonio Huete Jimenez 2600c7ad07eSAntonio Huete Jimenez* Fix bug when empty file is modified while viewing it. 2610c7ad07eSAntonio Huete Jimenez 2620c7ad07eSAntonio Huete Jimenez* Fix bug when parsing a malformed lesskey file (githb #234). 2630c7ad07eSAntonio Huete Jimenez 2640c7ad07eSAntonio Huete Jimenez* Fix bug scrolling history when --incsearch is set (github #214). 2650c7ad07eSAntonio Huete Jimenez 2660c7ad07eSAntonio Huete Jimenez* Fix buffer overflow when invoking lessecho with more than 63 -m/-n 2670c7ad07eSAntonio Huete Jimenez options (github #198). 2680c7ad07eSAntonio Huete Jimenez 2690c7ad07eSAntonio Huete Jimenez* Fix buffer overflow in bin_file (github #271). 2700c7ad07eSAntonio Huete Jimenez 2710c7ad07eSAntonio Huete Jimenez* Fix bug restoring color at end of highlighted text. 2720c7ad07eSAntonio Huete Jimenez 2730c7ad07eSAntonio Huete Jimenez* Fix bug in parsing lesskey file. 2740c7ad07eSAntonio Huete Jimenez 2750c7ad07eSAntonio Huete Jimenez* Defer moving cursor to lower left in some more cases. 2760c7ad07eSAntonio Huete Jimenez 2770c7ad07eSAntonio Huete Jimenez* Suppress TAB filename expansion in some cases where it doesn't make sense. 2780c7ad07eSAntonio Huete Jimenez 2790c7ad07eSAntonio Huete Jimenez* Fix termlib detection when compiler doesn't accept 2800c7ad07eSAntonio Huete Jimenez calls to undeclared functions. 2810c7ad07eSAntonio Huete Jimenez 2820c7ad07eSAntonio Huete Jimenez* Fix bug in input of non-ASCII characters on Windows (github #247) 2830c7ad07eSAntonio Huete Jimenez 2840c7ad07eSAntonio Huete Jimenez* Escape filenames when invoking LESSCLOSE. 2850c7ad07eSAntonio Huete Jimenez 2860c7ad07eSAntonio Huete Jimenez* Fix bug using multibyte UTF-8 char in search string 2870c7ad07eSAntonio Huete Jimenez with --incsearch (github #273). 2880c7ad07eSAntonio Huete Jimenez 2890c7ad07eSAntonio Huete Jimenez====================================================================== 2900c7ad07eSAntonio Huete Jimenez 2910c7ad07eSAntonio Huete Jimenez Major changes between "less" versions 581 and 590 2920c7ad07eSAntonio Huete Jimenez 2930c7ad07eSAntonio Huete Jimenez* Make less able to read lesskey source files (deprecating lesskey). 2940c7ad07eSAntonio Huete Jimenez 2950c7ad07eSAntonio Huete Jimenez* If XDG_CONFIG_HOME is set, find lesskey source file 2960c7ad07eSAntonio Huete Jimenez in $XDG_CONFIG_HOME/lesskey rather than $HOME/.lesskey. 2970c7ad07eSAntonio Huete Jimenez 2980c7ad07eSAntonio Huete Jimenez* If XDG_DATA_HOME is set, find and store history file 2990c7ad07eSAntonio Huete Jimenez in $XDG_DATA_HOME/lesshst rather than $HOME/.lesshst. 3000c7ad07eSAntonio Huete Jimenez 3010c7ad07eSAntonio Huete Jimenez* Add the --lesskey-src option. 3020c7ad07eSAntonio Huete Jimenez 3030c7ad07eSAntonio Huete Jimenez* Add the --file-size option. 3040c7ad07eSAntonio Huete Jimenez 3050c7ad07eSAntonio Huete Jimenez* With -F, if screen is resized to make file fit on one screen, don't exit. 3060c7ad07eSAntonio Huete Jimenez 3070c7ad07eSAntonio Huete Jimenez* Fix bug which could leave terminal in mouse-reporting mode 3080c7ad07eSAntonio Huete Jimenez after exiting less. 3090c7ad07eSAntonio Huete Jimenez 3100c7ad07eSAntonio Huete Jimenez* Fix bug which caused failure to respond to window resize. 3110c7ad07eSAntonio Huete Jimenez 3120c7ad07eSAntonio Huete Jimenez* Fix backslash bug searching in tag file. 3130c7ad07eSAntonio Huete Jimenez 3140c7ad07eSAntonio Huete Jimenez====================================================================== 3150c7ad07eSAntonio Huete Jimenez 3160c7ad07eSAntonio Huete Jimenez Major changes between "less" versions 563 and 581 3170c7ad07eSAntonio Huete Jimenez 3180c7ad07eSAntonio Huete Jimenez* Change ESC-u command to toggle, not disable, highlighting per man page. 3190c7ad07eSAntonio Huete Jimenez 3200c7ad07eSAntonio Huete Jimenez* Add ESC-U command. 3210c7ad07eSAntonio Huete Jimenez 3220c7ad07eSAntonio Huete Jimenez* Add ctrl-W search modifier for wrapping search. 3230c7ad07eSAntonio Huete Jimenez 3240c7ad07eSAntonio Huete Jimenez* F command can be interrupted by ^X. 3250c7ad07eSAntonio Huete Jimenez 3260c7ad07eSAntonio Huete Jimenez* Support OSC 8 hyperlinks when -R is in effect. 3270c7ad07eSAntonio Huete Jimenez 3280c7ad07eSAntonio Huete Jimenez* g command with no number will ignore -j and put first line at top of screen. 3290c7ad07eSAntonio Huete Jimenez 3300c7ad07eSAntonio Huete Jimenez* Multiple + or -p command line options are handled better. 3310c7ad07eSAntonio Huete Jimenez 3320c7ad07eSAntonio Huete Jimenez* Add the --incsearch option. 3330c7ad07eSAntonio Huete Jimenez 3340c7ad07eSAntonio Huete Jimenez* Add the --line-num-width option. 3350c7ad07eSAntonio Huete Jimenez 3360c7ad07eSAntonio Huete Jimenez* Add the --status-col-width option. 3370c7ad07eSAntonio Huete Jimenez 3380c7ad07eSAntonio Huete Jimenez* Add the --use-color and --color options. 3390c7ad07eSAntonio Huete Jimenez 3400c7ad07eSAntonio Huete Jimenez* Display -w highlight even if highlighted line is empty. 3410c7ad07eSAntonio Huete Jimenez 3420c7ad07eSAntonio Huete Jimenez* If search result is in a long line, scroll to ensure it is visible. 3430c7ad07eSAntonio Huete Jimenez 3440c7ad07eSAntonio Huete Jimenez* Editing the same file under different names now creates only 3450c7ad07eSAntonio Huete Jimenez one entry in the file list. 3460c7ad07eSAntonio Huete Jimenez 3470c7ad07eSAntonio Huete Jimenez* Make visual bell more visible on some terminals. 3480c7ad07eSAntonio Huete Jimenez 3490c7ad07eSAntonio Huete Jimenez* Ring end-of-file bell no more than once per second. 3500c7ad07eSAntonio Huete Jimenez 3510c7ad07eSAntonio Huete Jimenez* Build can use either Python or Perl for Makefile.aut operations. 3520c7ad07eSAntonio Huete Jimenez 3530c7ad07eSAntonio Huete Jimenez* Fix crash when using the @ search modifier. 3540c7ad07eSAntonio Huete Jimenez 3550c7ad07eSAntonio Huete Jimenez* Fix crash in the 's' command due to duplicate free. 3560c7ad07eSAntonio Huete Jimenez 3570c7ad07eSAntonio Huete Jimenez* Fix realpath crash on Darwin. 3580c7ad07eSAntonio Huete Jimenez 3590c7ad07eSAntonio Huete Jimenez====================================================================== 3600c7ad07eSAntonio Huete Jimenez 3610c7ad07eSAntonio Huete Jimenez Major changes between "less" versions 551 and 563 3620c7ad07eSAntonio Huete Jimenez 3630c7ad07eSAntonio Huete Jimenez* Update Unicode tables. 3640c7ad07eSAntonio Huete Jimenez 3650c7ad07eSAntonio Huete Jimenez* Treat Hangul Jamo medial vowels and final consonants as zero width. 3660c7ad07eSAntonio Huete Jimenez 3670c7ad07eSAntonio Huete Jimenez* Display error message immediately when -o is toggled and 3680c7ad07eSAntonio Huete Jimenez input is not a pipe. 3690c7ad07eSAntonio Huete Jimenez 3700c7ad07eSAntonio Huete Jimenez* Fix regression: make screen repaint when "squished" and 3710c7ad07eSAntonio Huete Jimenez a no-movement command is given. 3720c7ad07eSAntonio Huete Jimenez 3730c7ad07eSAntonio Huete Jimenez* Fix erroneous EOF calculation when F command is interrupted. 3740c7ad07eSAntonio Huete Jimenez 3750c7ad07eSAntonio Huete Jimenez* Make WIN32C version include this fix from 551: 3760c7ad07eSAntonio Huete Jimenez Don't count lines in initial screen if using -X with -F. 3770c7ad07eSAntonio Huete Jimenez 3780c7ad07eSAntonio Huete Jimenez* Fix display bug in WIN32C version. 3790c7ad07eSAntonio Huete Jimenez 3800c7ad07eSAntonio Huete Jimenez* Fix memory corruption when built with libtermcap. 3810c7ad07eSAntonio Huete Jimenez 3820c7ad07eSAntonio Huete Jimenez* Support libtinfow. 383fa0be7c5SJohn Marino 384fa0be7c5SJohn Marino====================================================================== 385fa0be7c5SJohn Marino 38602d62a0fSDaniel Fojt Major changes between "less" versions 530 and 551 38702d62a0fSDaniel Fojt 38802d62a0fSDaniel Fojt* Add --mouse option. 38902d62a0fSDaniel Fojt 39002d62a0fSDaniel Fojt* Add --wheel-lines option. 39102d62a0fSDaniel Fojt 39202d62a0fSDaniel Fojt* Add --no-histdups option. 39302d62a0fSDaniel Fojt 39402d62a0fSDaniel Fojt* Add --save-marks option. 39502d62a0fSDaniel Fojt 39602d62a0fSDaniel Fojt* Support PCRE2 regular expression library. 39702d62a0fSDaniel Fojt 39802d62a0fSDaniel Fojt* Redraw screen on SIGWINCH even if screen size doesn't change. 39902d62a0fSDaniel Fojt 40002d62a0fSDaniel Fojt* Shell-escape filenames in history so they can be used again. 40102d62a0fSDaniel Fojt 40202d62a0fSDaniel Fojt* Ring bell if user enters invalid long option name. 40302d62a0fSDaniel Fojt 40402d62a0fSDaniel Fojt* Use PCRE_UTF8 flag for pcre regular expressions when in UTF-8 mode. 40502d62a0fSDaniel Fojt 40602d62a0fSDaniel Fojt* Windows: use wide-char string to set console title. 40702d62a0fSDaniel Fojt 40802d62a0fSDaniel Fojt* Don't count lines in initial screen if using -X with -F. 40902d62a0fSDaniel Fojt 41002d62a0fSDaniel Fojt* Support mingw build system. 41102d62a0fSDaniel Fojt 41202d62a0fSDaniel Fojt* Fix bug in v command on empty file. 41302d62a0fSDaniel Fojt 41402d62a0fSDaniel Fojt* Fix bug in v command when filename contains shell metacharacters. 41502d62a0fSDaniel Fojt 41602d62a0fSDaniel Fojt====================================================================== 41702d62a0fSDaniel Fojt 41802d62a0fSDaniel Fojt Major changes between "less" versions 487 and 530 41902d62a0fSDaniel Fojt 42002d62a0fSDaniel Fojt* Don't output terminal init sequence if using -F and file fits on one screen. 42102d62a0fSDaniel Fojt 42202d62a0fSDaniel Fojt* When using -S, mark truncated lines with a special character. 42302d62a0fSDaniel Fojt The character can be changed or disabled via the new --rscroll option. 42402d62a0fSDaniel Fojt 42502d62a0fSDaniel Fojt* New command M marks the last line displayed on the screen. 42602d62a0fSDaniel Fojt 42702d62a0fSDaniel Fojt* New command ESC-m removes a line mark. 42802d62a0fSDaniel Fojt 42902d62a0fSDaniel Fojt* Status column (enabled via -J) now shows mark letters. 43002d62a0fSDaniel Fojt 43102d62a0fSDaniel Fojt* Status column shows search matches even if highlighting is disabled via -G. 43202d62a0fSDaniel Fojt 43302d62a0fSDaniel Fojt* A second ESC-u command will clear search match markers in the status column. 43402d62a0fSDaniel Fojt 43502d62a0fSDaniel Fojt* Do same ANSI escape code filtering for tag matching that we do for 43602d62a0fSDaniel Fojt searching, to help when viewing syntax-highlighted code. 43702d62a0fSDaniel Fojt 43802d62a0fSDaniel Fojt* Catch SIGTERM and clean up before exiting. 43902d62a0fSDaniel Fojt 44002d62a0fSDaniel Fojt* Fix bug initializing default charset on Windows. 44102d62a0fSDaniel Fojt 44202d62a0fSDaniel Fojt* Handle keypad ENTER key correctly if it sends something other than newline. 44302d62a0fSDaniel Fojt 44402d62a0fSDaniel Fojt* Fix buffering bug when using stdin with a LESSOPEN pipe. 44502d62a0fSDaniel Fojt 44602d62a0fSDaniel Fojt* On Windows, allow 'u' in -D option to enable underlining. 44702d62a0fSDaniel Fojt 44802d62a0fSDaniel Fojt* On Windows, use underline in sgr mode. 44902d62a0fSDaniel Fojt 45002d62a0fSDaniel Fojt* On Windows, convert UTF-8 to multibyte if console is not UTF-8. 45102d62a0fSDaniel Fojt 45202d62a0fSDaniel Fojt* Update Unicode tables to 2017-03-08. 45302d62a0fSDaniel Fojt 454320d7c8aSAaron LI* Pass-thru Unicode formatting chars (Cf type) instead of treating them 45502d62a0fSDaniel Fojt as binary chars. But treat them as binary if -U is set. 45602d62a0fSDaniel Fojt 45702d62a0fSDaniel Fojt* Fix erroneous binary file warning when UTF-8 file contains ANSI SGR sequences. 45802d62a0fSDaniel Fojt 45902d62a0fSDaniel Fojt* Fix bugs when using LESSOPEN and switching between stdin and other files. 46002d62a0fSDaniel Fojt 46102d62a0fSDaniel Fojt* Fix some bugs handling filenames containing shell metacharacters. 46202d62a0fSDaniel Fojt 46302d62a0fSDaniel Fojt* Fix some memory leaks. 46402d62a0fSDaniel Fojt 46502d62a0fSDaniel Fojt* Allow some debugging environment variables to be set in lesskey file. 46602d62a0fSDaniel Fojt 46702d62a0fSDaniel Fojt* Code improvements: 46802d62a0fSDaniel Fojt . Use ANSI prototypes in funcs.h declarations. 46902d62a0fSDaniel Fojt . Fix some const mismatches. 47002d62a0fSDaniel Fojt . Remove archaic "register" in variable declarations. 47102d62a0fSDaniel Fojt 47202d62a0fSDaniel Fojt====================================================================== 47302d62a0fSDaniel Fojt 47402d62a0fSDaniel Fojt Major changes between "less" versions 481 and 487 47502d62a0fSDaniel Fojt 47602d62a0fSDaniel Fojt* New commands ESC-{ and ESC-} to shift to start/end of displayed lines. 47702d62a0fSDaniel Fojt 47802d62a0fSDaniel Fojt* Make search highlights work correctly when changing caselessness with -i. 47902d62a0fSDaniel Fojt 48002d62a0fSDaniel Fojt* New option -Da in Windows version to enable SGR mode. 48102d62a0fSDaniel Fojt 48202d62a0fSDaniel Fojt* Fix "nothing to search" error when top or bottom line on screen is empty. 48302d62a0fSDaniel Fojt 48402d62a0fSDaniel Fojt* Fix bug when terminal has no "cm" termcap entry. 48502d62a0fSDaniel Fojt 48602d62a0fSDaniel Fojt* Fix incorrect display when entering double-width chars in search string. 48702d62a0fSDaniel Fojt 48802d62a0fSDaniel Fojt* Fix bug in Unicode handling that missed some double width characters. 48902d62a0fSDaniel Fojt 49002d62a0fSDaniel Fojt* Update Unicode database to 9.0.0. 49102d62a0fSDaniel Fojt 49202d62a0fSDaniel Fojt====================================================================== 49302d62a0fSDaniel Fojt 4949b760066SJohn Marino Major changes between "less" versions 458 and 481 495fa0be7c5SJohn Marino 496fa0be7c5SJohn Marino* Don't overwrite history file; just append to it. 497fa0be7c5SJohn Marino 498fa0be7c5SJohn Marino* New command ESC-G goes to end of currently buffered data in a pipe. 499fa0be7c5SJohn Marino 5009b760066SJohn Marino* Disable history feature when compiled with LESSHISTFILE set to "-". 5019b760066SJohn Marino 502fa0be7c5SJohn Marino* In more-compatible mode, make the -p option apply to every file opened, 503fa0be7c5SJohn Marino not just the first one. 504fa0be7c5SJohn Marino 505fa0be7c5SJohn Marino* In more-compatible mode, change the -e option to work like -E, not -EF. 506fa0be7c5SJohn Marino 507fa0be7c5SJohn Marino* Treat multiple CRs before LF are like one CR (all the CRs are hidden). 508fa0be7c5SJohn Marino 509fa0be7c5SJohn Marino* Allow "extra" string in lesskey file to append to a multi-char command 510fa0be7c5SJohn Marino (like a search pattern), without executing the command. 511fa0be7c5SJohn Marino 512fa0be7c5SJohn Marino* Ignore -u/-U setting while viewing help file, so that 513fa0be7c5SJohn Marino underline and bold chars are displayed correctly. 514fa0be7c5SJohn Marino 515fa0be7c5SJohn Marino* Improve detection of "binary" files in UTF-8 mode. 516fa0be7c5SJohn Marino 517fa0be7c5SJohn Marino* Fix bug with ++ commands. 518fa0be7c5SJohn Marino 5199b760066SJohn Marino* Fix bug where prompt was sometimes not displayed with +G. 5209b760066SJohn Marino 5219b760066SJohn Marino* Fix possible memory corruption 5229b760066SJohn Marino 523fa0be7c5SJohn Marino* Fix bugs and improve performance in ampersand filtering. 524fa0be7c5SJohn Marino 525fa0be7c5SJohn Marino* Automate construction of Unicode tables from Unicode database. 526e639dc31SJohn Marino 5279b760066SJohn Marino* Allow %% escape sequence in LESSOPEN variable. 5289b760066SJohn Marino 529e639dc31SJohn Marino====================================================================== 530e639dc31SJohn Marino 531e639dc31SJohn Marino Major changes between "less" versions 451 and 458 532e639dc31SJohn Marino 533e639dc31SJohn Marino* Allow backslash escaping of metacharacters in LESS environment variable 534e639dc31SJohn Marino after the --use-backslash option. 535e639dc31SJohn Marino 536e639dc31SJohn Marino* Don't quit if syntax errors are found in command line options. 537e639dc31SJohn Marino 538e639dc31SJohn Marino* Increase sizes of some internal buffers. 539e639dc31SJohn Marino 540e639dc31SJohn Marino* Fix configure bug with --with-regex=none. 541e639dc31SJohn Marino 542e639dc31SJohn Marino* Fix crash with "stty rows 0". 543e639dc31SJohn Marino 544e639dc31SJohn Marino* Fix Win32 attribute display bug. 545e639dc31SJohn Marino 546e639dc31SJohn Marino* Fix display bug when using up/down arrow on the command line. 547e639dc31SJohn Marino 548e639dc31SJohn Marino====================================================================== 549e639dc31SJohn Marino 550e639dc31SJohn Marino Major changes between "less" versions 444 and 451 551e639dc31SJohn Marino 552e639dc31SJohn Marino* Add ESC-F command to keep reading data until a pattern is found. 553e639dc31SJohn Marino 554e639dc31SJohn Marino* Use exit code of LESSOPEN script if LESSOPEN starts with "||". 555e639dc31SJohn Marino 556e639dc31SJohn Marino* When up/down arrow is used on the command line immediately after 557e639dc31SJohn Marino typing text, the next command starting with that text is found. 558e639dc31SJohn Marino 559e639dc31SJohn Marino* Add support for GNU regex. 560e639dc31SJohn Marino 561e639dc31SJohn Marino* Add configure option --with-regex=none and fix compile errors 562e639dc31SJohn Marino when compiling with no regex library. 563e639dc31SJohn Marino 564e639dc31SJohn Marino* Fix bugs handling SGR sequences in Win32. 565e639dc31SJohn Marino 566e639dc31SJohn Marino* Fix possible crashes caused by malformed LESSOPEN or 567e639dc31SJohn Marino LESSCLOSE variables. 568e639dc31SJohn Marino 569e639dc31SJohn Marino* Fix bug highlighting text which is discontiguous in the file 570e639dc31SJohn Marino due to backspace processing. 571e639dc31SJohn Marino 572e639dc31SJohn Marino* Fix bug in displaying status column when scrolling backwards 573e639dc31SJohn Marino with -J and -S in effect. 5741133e27eSPeter Avalos 5751133e27eSPeter Avalos====================================================================== 5761133e27eSPeter Avalos 577b099ac32SPeter Avalos Major changes between "less" versions 443 and 444 578b099ac32SPeter Avalos 579b099ac32SPeter Avalos* Fix bug in unget handling that can cause strange effects on the 580b099ac32SPeter Avalos command line. 581b099ac32SPeter Avalos 582b099ac32SPeter Avalos* Remove vestiges of obsolete -l option that can cause a crash. 583b099ac32SPeter Avalos 584b099ac32SPeter Avalos====================================================================== 585b099ac32SPeter Avalos 58625ce721eSPeter Avalos Major changes between "less" versions 436 and 443 58725ce721eSPeter Avalos 58825ce721eSPeter Avalos* Change search behavior such that when a search is given an explicit 58925ce721eSPeter Avalos pattern, the entire displayed screen is included in the search and 59025ce721eSPeter Avalos not just the portion after the target line. 59125ce721eSPeter Avalos 59225ce721eSPeter Avalos* Add -A option to change search behavior to the old way: only 59325ce721eSPeter Avalos the portion of the screen after the target line is searched. 59425ce721eSPeter Avalos 59525ce721eSPeter Avalos* Add %F formatting to prompt strings, replaced by the last component 59625ce721eSPeter Avalos of the input file. 59725ce721eSPeter Avalos 59825ce721eSPeter Avalos* Control-G while editing a command exits the command. 59925ce721eSPeter Avalos 60025ce721eSPeter Avalos* Less now exits with status 2 if control-C is pressed and -K is in effect. 60125ce721eSPeter Avalos 60225ce721eSPeter Avalos* Fix "ungetc overflow" when passing long commands via the -p option. 60325ce721eSPeter Avalos 60425ce721eSPeter Avalos* Fix bug in using line filtering via the & command 60525ce721eSPeter Avalos in combination with -i and -I. 60625ce721eSPeter Avalos 60725ce721eSPeter Avalos* Fix bug in handling negative arguments to the -j option. 60825ce721eSPeter Avalos 60925ce721eSPeter Avalos* Fix bug in handling %t in prompt strings. 61025ce721eSPeter Avalos 61125ce721eSPeter Avalos* Improve handling of long option names. 61225ce721eSPeter Avalos 61325ce721eSPeter Avalos* Improve percentage calculation for very large files. 61425ce721eSPeter Avalos 61525ce721eSPeter Avalos====================================================================== 61625ce721eSPeter Avalos 617a9adbba3SJan Lentfer Major changes between "less" versions 429 and 436 618a9adbba3SJan Lentfer 619a9adbba3SJan Lentfer* Don't pass "-" to non-pipe LESSOPEN unless it starts with "-". 620a9adbba3SJan Lentfer 621a9adbba3SJan Lentfer* Allow a fraction as the argument to the -# (--shift) option. 622a9adbba3SJan Lentfer 623a9adbba3SJan Lentfer* Fix highlight bug when underlined/overstruck text matches at end of line. 624a9adbba3SJan Lentfer 625a9adbba3SJan Lentfer* Fix non-regex searches with ctrl-R. 626a9adbba3SJan Lentfer 627a9adbba3SJan Lentfer====================================================================== 628a9adbba3SJan Lentfer 6298be36e5bSPeter Avalos Major changes between "less" versions 424 and 429 6308be36e5bSPeter Avalos 6318be36e5bSPeter Avalos* LESSOPEN pipe will now be used on standard input, if the LESSOPEN 6328be36e5bSPeter Avalos environment variable begins with "|-". 6338be36e5bSPeter Avalos 6348be36e5bSPeter Avalos* The -D option with one number now means use the normal background color. 6358be36e5bSPeter Avalos 6368be36e5bSPeter Avalos* Don't change permissions on history file if it is not a regular file. 6378be36e5bSPeter Avalos 6388be36e5bSPeter Avalos* Fix non-ANSI-compliant code that caused problems with some compilers. 6398be36e5bSPeter Avalos 6408be36e5bSPeter Avalos* Fix binary file detection in UTF-8 mode. 6418be36e5bSPeter Avalos 6428be36e5bSPeter Avalos* Fix display problems with long lines on "ignaw" terminals. 6438be36e5bSPeter Avalos 6448be36e5bSPeter Avalos* Fix problem interrupting the line number calculation for initial prompt. 6458be36e5bSPeter Avalos 646320d7c8aSAaron LI* Fix SGR emulation when dealing with multiple attributes (e.g. bold+underline). 6478be36e5bSPeter Avalos 6488be36e5bSPeter Avalos* Fix highlight bug when searching for underlined/overstruck text. 6498be36e5bSPeter Avalos 6508be36e5bSPeter Avalos====================================================================== 6518be36e5bSPeter Avalos 6528be36e5bSPeter Avalos Major changes between "less" versions 418 and 424 6538be36e5bSPeter Avalos 6548be36e5bSPeter Avalos* New "&" command allows filtering of lines based on a pattern. 6558be36e5bSPeter Avalos 6568be36e5bSPeter Avalos* Status column now displays a search match, even if the matched 6578be36e5bSPeter Avalos string is scrolled off screen because -S is in effect. 6588be36e5bSPeter Avalos 6598be36e5bSPeter Avalos* Improve behavior of -F option. 6608be36e5bSPeter Avalos 6618be36e5bSPeter Avalos* Allow CSI character (0x9B) to work in UTF-8 mode. 6628be36e5bSPeter Avalos 6638be36e5bSPeter Avalos* Output carriage return at startup in case terminal doesn't default 6648be36e5bSPeter Avalos to column 1. 6658be36e5bSPeter Avalos 6668be36e5bSPeter Avalos* Fix bug in '' (quote, quote) command after G command. 6678be36e5bSPeter Avalos 6688be36e5bSPeter Avalos====================================================================== 6691133e27eSPeter Avalos 6701133e27eSPeter Avalos Major changes between "less" versions 416 and 418 6711133e27eSPeter Avalos 6721133e27eSPeter Avalos* Color escape sequences are now supported in WIN32 build. 6731133e27eSPeter Avalos 6741133e27eSPeter Avalos* Makefile now uses EXEEXT feature of autoconf. 6751133e27eSPeter Avalos 6761133e27eSPeter Avalos* Fix search bug when using -R and text contains ANSI color escape sequences. 6771133e27eSPeter Avalos 6781133e27eSPeter Avalos* Fix crash when using -r with UTF-8 text containing 0x9B bytes. 6791133e27eSPeter Avalos 6801133e27eSPeter Avalos* Fix display bug when using ' command to move less than one page forward. 6811133e27eSPeter Avalos 6821133e27eSPeter Avalos* Update GPL to version 3. 6831133e27eSPeter Avalos 6841133e27eSPeter Avalos====================================================================== 6851133e27eSPeter Avalos 6861133e27eSPeter Avalos Major changes between "less" versions 409 and 416 6871133e27eSPeter Avalos 6881133e27eSPeter Avalos* New --follow-name option makes F command follow the name of a file 6891133e27eSPeter Avalos rather than the file descriptor if an open file is renamed. 6901133e27eSPeter Avalos 6911133e27eSPeter Avalos* Make searching with -i/-I work correctly with non-ASCII text. 6921133e27eSPeter Avalos 6931133e27eSPeter Avalos* Fix DJGPP build. 6941133e27eSPeter Avalos 6951133e27eSPeter Avalos====================================================================== 6961133e27eSPeter Avalos 6971133e27eSPeter Avalos Major changes between "less" versions 406 and 409 6981133e27eSPeter Avalos 6991133e27eSPeter Avalos* Support CSI escape sequences, like SGR escape sequences. 7001133e27eSPeter Avalos 7011133e27eSPeter Avalos* Fix bug which caused screen to fail to repaint when window is resized. 7021133e27eSPeter Avalos 7031133e27eSPeter Avalos* Fix bug in using -i and -I flags with non-ASCII text. 7041133e27eSPeter Avalos 7051133e27eSPeter Avalos* Fix configure bug on systems which don't support langinfo.h. 7061133e27eSPeter Avalos 7071133e27eSPeter Avalos* Fix crash when searching text containing certain invalid UTF-8 sequences. 7081133e27eSPeter Avalos 7091133e27eSPeter Avalos====================================================================== 7101133e27eSPeter Avalos 7111133e27eSPeter Avalos Major changes between "less" versions 394 and 406 7121133e27eSPeter Avalos 7131133e27eSPeter Avalos* Allow decimal point in number for % (percent) command. 7141133e27eSPeter Avalos 7151133e27eSPeter Avalos* Allow decimal point in number for -j option (fraction of screen height). 7161133e27eSPeter Avalos 7171133e27eSPeter Avalos* Make n command fetch previous pattern from history file on first search. 7181133e27eSPeter Avalos 7191133e27eSPeter Avalos* Don't rewrite history file if it has not changed. 7201133e27eSPeter Avalos 7211133e27eSPeter Avalos* Don't move to bottom of screen on first page. 7221133e27eSPeter Avalos 7231133e27eSPeter Avalos* Don't output extraneous newlines, so copy & pasting lines from the 7241133e27eSPeter Avalos output works better. 7251133e27eSPeter Avalos 7261133e27eSPeter Avalos* The -c option has been made identical with the -C option. 7271133e27eSPeter Avalos 728320d7c8aSAaron LI* Allow "/dev/null" as synonym for "-" in LESSHISTFILE to indicate 7291133e27eSPeter Avalos that no history file should be used. 7301133e27eSPeter Avalos 7311133e27eSPeter Avalos* Search can now find text which follows a null byte, if the PCRE 7321133e27eSPeter Avalos library is used, or if no-regex searching (ctrl-R) is used. 7331133e27eSPeter Avalos 7341133e27eSPeter Avalos* Better compatibility with POSIX more specification. 7351133e27eSPeter Avalos 7361133e27eSPeter Avalos* Make -f work for directories. 7371133e27eSPeter Avalos 7381133e27eSPeter Avalos* Make "t" cmd traverse tags in the correct order. 7391133e27eSPeter Avalos 7401133e27eSPeter Avalos* Allow a few binary characters in the input file before warning 7411133e27eSPeter Avalos that the file is binary. 7421133e27eSPeter Avalos 7431133e27eSPeter Avalos* Don't warn that file is binary if it merely contains ANSI color sequences 7441133e27eSPeter Avalos and -R is in effect. 7451133e27eSPeter Avalos 7461133e27eSPeter Avalos* Update Unicode character tables. 7471133e27eSPeter Avalos 7481133e27eSPeter Avalos* Support DESTDIR in Makefile. 7491133e27eSPeter Avalos 7501133e27eSPeter Avalos* Fix bug when filename contains certain shell metacharacters such as "$". 7511133e27eSPeter Avalos 7521133e27eSPeter Avalos* Fix bug when resizing the window while waiting for input from a pipe. 7531133e27eSPeter Avalos 7541133e27eSPeter Avalos* Fix configure bugs. 7551133e27eSPeter Avalos 7561133e27eSPeter Avalos====================================================================== 7571133e27eSPeter Avalos 7581133e27eSPeter Avalos Major changes between "less" versions 382 and 394 7591133e27eSPeter Avalos 7601133e27eSPeter Avalos* Add history file to save search and shell command history between 7611133e27eSPeter Avalos invocations of less. 7621133e27eSPeter Avalos 7631133e27eSPeter Avalos* Improve behavior of history list for search and shell commands. 7641133e27eSPeter Avalos 7651133e27eSPeter Avalos* Add -K (or --quit-on-intr) option to make less exit immediately on ctrl-C. 7661133e27eSPeter Avalos 7671133e27eSPeter Avalos* Improve handling of UTF-8 files and commands, including better 7681133e27eSPeter Avalos line wrapping and handling double-width chars. 7691133e27eSPeter Avalos 7701133e27eSPeter Avalos* Added LESSUTFBINFMT environment variable to control display of 7711133e27eSPeter Avalos non-printable characters in a UTF-8 file. 7721133e27eSPeter Avalos 7731133e27eSPeter Avalos* Add --with-secure option to configure, to make it easier to 7741133e27eSPeter Avalos build a secure version of less. 7751133e27eSPeter Avalos 7761133e27eSPeter Avalos* Show search matches in the status column even if search highlights 7771133e27eSPeter Avalos are disabled via the -G option or the ESC-u command. 7781133e27eSPeter Avalos 7791133e27eSPeter Avalos* Improve performance when the file contains very long lines. 7801133e27eSPeter Avalos 7811133e27eSPeter Avalos* Add "windows" charset. 7821133e27eSPeter Avalos 7831133e27eSPeter Avalos* Add man page for lessecho. 7841133e27eSPeter Avalos 7851133e27eSPeter Avalos* Add support for erase2 character, treated same as erase. 7861133e27eSPeter Avalos 7871133e27eSPeter Avalos* Use ASCII lowercase/uppercase logic when operating on the command line. 7881133e27eSPeter Avalos 7891133e27eSPeter Avalos* Update makefile for Borland C++ 5.5.1. 7901133e27eSPeter Avalos 7911133e27eSPeter Avalos* Fix bug in calculating number of pages for %D prompt. 7921133e27eSPeter Avalos 7931133e27eSPeter Avalos* Fix bug in handling tag file error. 7941133e27eSPeter Avalos 7951133e27eSPeter Avalos* Fix obscure bug if input file is deleted while viewing help. 7961133e27eSPeter Avalos 7971133e27eSPeter Avalos* Fix bug handling filenames which include square brackets. 7981133e27eSPeter Avalos 7991133e27eSPeter Avalos* Fix possible buffer overflow in "global" tag search. 8001133e27eSPeter Avalos 8011133e27eSPeter Avalos* Fix possible buffer overflow in usage of LESSOPEN and LESSCLOSE. 8021133e27eSPeter Avalos 8031133e27eSPeter Avalos* Fix buffer overflow in reverse search. 8041133e27eSPeter Avalos 8051133e27eSPeter Avalos====================================================================== 8061133e27eSPeter Avalos 8071133e27eSPeter Avalos Major changes between "less" versions 381 and 382 8081133e27eSPeter Avalos 8091133e27eSPeter Avalos* Removed some old copyrighted code. 8101133e27eSPeter Avalos This probably breaks OS/9 support. 8111133e27eSPeter Avalos 8121133e27eSPeter Avalos====================================================================== 8131133e27eSPeter Avalos 8141133e27eSPeter Avalos Major changes between "less" versions 378 and 381 8151133e27eSPeter Avalos 8161133e27eSPeter Avalos* New -L option to disable LESSOPEN processing. 8171133e27eSPeter Avalos 8181133e27eSPeter Avalos* Further support for large (64 bit) file addressing. 8191133e27eSPeter Avalos Large file support is now set up by the configure script. 8201133e27eSPeter Avalos 8211133e27eSPeter Avalos* Use autoconf 2.54. 8221133e27eSPeter Avalos Replace configure.in, acconfig.h, defines.h.top with configure.ac. 8231133e27eSPeter Avalos 8241133e27eSPeter Avalos* Overstriking underscore with underscore is now bold or underlined 8251133e27eSPeter Avalos depending on context. 8261133e27eSPeter Avalos 8271133e27eSPeter Avalos* Use only 7 spaces for line numbers in -N mode, if possible. 8281133e27eSPeter Avalos 8291133e27eSPeter Avalos* Fix some bugs in handling overstriking in UTF-8 files. 8301133e27eSPeter Avalos 8311133e27eSPeter Avalos* Fix some nroff issues in the man page. 8321133e27eSPeter Avalos 8331133e27eSPeter Avalos====================================================================== 8341133e27eSPeter Avalos 8351133e27eSPeter Avalos Major changes between "less" versions 376 and 378 8361133e27eSPeter Avalos 8371133e27eSPeter Avalos* Bug fixes: 8381133e27eSPeter Avalos Default buffer space is now 64K as documented. 8391133e27eSPeter Avalos Search highlighting works properly when used with -R. 8401133e27eSPeter Avalos Windows version works properly when input file contains carriage returns. 8411133e27eSPeter Avalos Clean up some compiler warnings. 8421133e27eSPeter Avalos 8431133e27eSPeter Avalos====================================================================== 8441133e27eSPeter Avalos 8451133e27eSPeter Avalos Major changes between "less" versions 358 and 376 8461133e27eSPeter Avalos 8471133e27eSPeter Avalos* -x option can now specify multiple variable-width tab stops. 8481133e27eSPeter Avalos 8491133e27eSPeter Avalos* -X option no longer disables keypad initialization. 8501133e27eSPeter Avalos New option --no-keypad disables keypad initialization. 8511133e27eSPeter Avalos 8521133e27eSPeter Avalos* New commands t and T step through multiple tag matches. 8531133e27eSPeter Avalos Added support for "global(1)" tags 8541133e27eSPeter Avalos (see http://www.gnu.org/software/global/global.html). 8551133e27eSPeter Avalos 8561133e27eSPeter Avalos* New prompt style set by option -Pw defines the message printed 8571133e27eSPeter Avalos while waiting for data in the F command. 8581133e27eSPeter Avalos 8591133e27eSPeter Avalos* System-wide lesskey file now defaults to sysless in etc directory 8601133e27eSPeter Avalos instead of .sysless in bin directory. 8611133e27eSPeter Avalos Use "configure --sysconfdir=..." to change it. 8621133e27eSPeter Avalos (For backwards compatibility, .sysless in bin is still recognized.) 8631133e27eSPeter Avalos 8641133e27eSPeter Avalos* Pressing RightArrow or LeftArrow while entering a number now shifts 8651133e27eSPeter Avalos the display N columns rather than editing the number itself. 8661133e27eSPeter Avalos 8671133e27eSPeter Avalos* Status column (enabled with -J) now shows search results. 8681133e27eSPeter Avalos 8691133e27eSPeter Avalos* Windows version sets window title. 8701133e27eSPeter Avalos 8711133e27eSPeter Avalos* Default LESSCHARSET for MS-DOS versions is now "dos". 8721133e27eSPeter Avalos 8731133e27eSPeter Avalos* Searching works better with ANSI (SGR) escape sequences. 8741133e27eSPeter Avalos ANSI color escape sequences are now supported in the MS-DOS (DJGPP) version. 8751133e27eSPeter Avalos 8761133e27eSPeter Avalos* Improved performance in reading very large pipes. 8771133e27eSPeter Avalos 878320d7c8aSAaron LI* Eliminated some dependencies on file offsets being 32 bits. 8791133e27eSPeter Avalos 8801133e27eSPeter Avalos* Fixed problems when viewing files with very long lines. 8811133e27eSPeter Avalos 8821133e27eSPeter Avalos* Fixed overstriking in UTF-8 mode, and overstriking tabs. 8831133e27eSPeter Avalos 8841133e27eSPeter Avalos* Improved horizontal shifting of text using -R option with ANSI color. 8851133e27eSPeter Avalos 8861133e27eSPeter Avalos* Improved handling of filenames containing shell metacharacters. 8871133e27eSPeter Avalos 8881133e27eSPeter Avalos* Some fixes for EBCDIC systems. 8891133e27eSPeter Avalos 8901133e27eSPeter Avalos* Some fixes for OS/2 systems. 8911133e27eSPeter Avalos 8921133e27eSPeter Avalos====================================================================== 8931133e27eSPeter Avalos 8941133e27eSPeter Avalos Major changes between "less" versions 354 and 358 8951133e27eSPeter Avalos 8961133e27eSPeter Avalos* Add -J (--status-column) option to display a status column. 8971133e27eSPeter Avalos 8981133e27eSPeter Avalos* Add -# (--shift) option to set default horizontal shift distance. 8991133e27eSPeter Avalos Default horizontal shift distance is now one-half screen width. 9001133e27eSPeter Avalos 9011133e27eSPeter Avalos* Horizontal shifting does not shift line numbers if -N is in effect. 9021133e27eSPeter Avalos 9031133e27eSPeter Avalos* Horizontal shifting acts as though -S were set, to avoid confusion. 9041133e27eSPeter Avalos 9051133e27eSPeter Avalos====================================================================== 9061133e27eSPeter Avalos 9071133e27eSPeter Avalos 9081133e27eSPeter Avalos Major changes between "less" versions 352 and 354 9091133e27eSPeter Avalos 9101133e27eSPeter Avalos* Allow space after numeric-valued command line options. 9111133e27eSPeter Avalos 9121133e27eSPeter Avalos* Fix problem with configuring terminal libraries on some systems. 9131133e27eSPeter Avalos 9141133e27eSPeter Avalos* Add support for PCRE regular expression library. 9151133e27eSPeter Avalos 9161133e27eSPeter Avalos* Add --with-regex option to configure to allow manually selecting 9171133e27eSPeter Avalos a regular expression library. 9181133e27eSPeter Avalos 9191133e27eSPeter Avalos* Fix bug compiling with SECURE = 1. 9201133e27eSPeter Avalos 9211133e27eSPeter Avalos====================================================================== 9221133e27eSPeter Avalos 9231133e27eSPeter Avalos 9241133e27eSPeter Avalos Major changes between "less" versions 346 and 352 9251133e27eSPeter Avalos 9261133e27eSPeter Avalos* Enable UTF-8 if "UTF-8" appears in locale-related environment variables. 9271133e27eSPeter Avalos 9281133e27eSPeter Avalos* Add --with-editor option to configure script. 9291133e27eSPeter Avalos 9301133e27eSPeter Avalos* The -M prompt and = message now show the top and bottom line number. 9311133e27eSPeter Avalos 9321133e27eSPeter Avalos* Fix bug in running the editor on a file whose name contains quotes, etc. 9331133e27eSPeter Avalos 9341133e27eSPeter Avalos* Fix bug in horizontal scrolling of long lines. 9351133e27eSPeter Avalos 9361133e27eSPeter Avalos* Fix bug in doing :d on a file which contains marks. 9371133e27eSPeter Avalos 9381133e27eSPeter Avalos* Fix bug causing cleared lines to sometimes be filled with standout, 9391133e27eSPeter Avalos bold, underline, etc. on certain terminals. 9401133e27eSPeter Avalos 9411133e27eSPeter Avalos* Fixes for MS-DOS (DJGPP) version. 9421133e27eSPeter Avalos 9431133e27eSPeter Avalos====================================================================== 9441133e27eSPeter Avalos 9451133e27eSPeter Avalos 9461133e27eSPeter Avalos Major changes between "less" versions 340 and 346 9471133e27eSPeter Avalos 9481133e27eSPeter Avalos* The UTF-8 character set is now supported. 9491133e27eSPeter Avalos 9501133e27eSPeter Avalos* The default character set is now latin1 rather than ascii. 9511133e27eSPeter Avalos 9521133e27eSPeter Avalos* New option -R (--RAW-CONTROL-CHARS) is like -r but handles 9531133e27eSPeter Avalos long (wrapped) lines correctly, as long as the input contains only 9541133e27eSPeter Avalos normal text and ANSI color escape sequences. 9551133e27eSPeter Avalos 9561133e27eSPeter Avalos* New option -F (--quit-if-one-screen) quits if the text fits on 9571133e27eSPeter Avalos the first screen. 9581133e27eSPeter Avalos 9591133e27eSPeter Avalos* The -w option now highlights the target line of a g or p command. 9601133e27eSPeter Avalos 9611133e27eSPeter Avalos* A system-wide lesskey file is supported (LESSKEY_SYSTEM). 9621133e27eSPeter Avalos 9631133e27eSPeter Avalos* New escape for prompt strings: %c is replaced by column number. 9641133e27eSPeter Avalos 9651133e27eSPeter Avalos* New escape for prompt strings: %P is replaced by percentage into 9661133e27eSPeter Avalos file, based on line number rather than byte offset. 9671133e27eSPeter Avalos 9681133e27eSPeter Avalos* HOME and END keys now jump to beginning of file or end of file. 9691133e27eSPeter Avalos 9701133e27eSPeter Avalos====================================================================== 9711133e27eSPeter Avalos 9721133e27eSPeter Avalos 9731133e27eSPeter Avalos Major changes between "less" versions 337 and 340 9741133e27eSPeter Avalos 9751133e27eSPeter Avalos* Command line options for less may now be given in either the old 9761133e27eSPeter Avalos single-letter form, or a new long name form (--option-name). 9771133e27eSPeter Avalos See the less man page or "less --help" for the list of long option names. 9781133e27eSPeter Avalos 9791133e27eSPeter Avalos* Command line options for lesskey may now be given in a new long name 9801133e27eSPeter Avalos form. See the lesskey man page for the list of long option names. 9811133e27eSPeter Avalos 9821133e27eSPeter Avalos* New command -- toggles an option using the long option name. 9831133e27eSPeter Avalos 9841133e27eSPeter Avalos* New command __ queries an option using the long option name. 9851133e27eSPeter Avalos 9861133e27eSPeter Avalos* The old -- command is renamed as -!. 9871133e27eSPeter Avalos 9881133e27eSPeter Avalos* If a ^P is entered between the dash and the option letter of the - 9891133e27eSPeter Avalos command, the message describing the new setting is suppressed. 9901133e27eSPeter Avalos 9911133e27eSPeter Avalos* Lesskey files may now contain \k escape sequences to represent the 9921133e27eSPeter Avalos "special" keys (arrows, PAGE-UP/PAGE-DOWN, HOME, END, INSERT, DELETE). 9931133e27eSPeter Avalos 9941133e27eSPeter Avalos* New command :d removes the current file from the list of files. 9951133e27eSPeter Avalos 9961133e27eSPeter Avalos* New option -~ (like -w before version 335) 9971133e27eSPeter Avalos suppresses tildes after end-of-file. 9981133e27eSPeter Avalos 9991133e27eSPeter Avalos* Less is now released under the GNU General Public License. 10001133e27eSPeter Avalos 10011133e27eSPeter Avalos====================================================================== 10021133e27eSPeter Avalos 10031133e27eSPeter Avalos 10041133e27eSPeter Avalos Major changes between "less" versions 335 and 337 10051133e27eSPeter Avalos 10061133e27eSPeter Avalos* Fixed bugs in "make install". 10071133e27eSPeter Avalos 10081133e27eSPeter Avalos====================================================================== 10091133e27eSPeter Avalos 10101133e27eSPeter Avalos 10111133e27eSPeter Avalos Major changes between "less" versions 332 and 335 10121133e27eSPeter Avalos 10131133e27eSPeter Avalos* The old -w flag (suppress tildes after end-of-file) has been removed. 10141133e27eSPeter Avalos 10151133e27eSPeter Avalos* New -w flag highlights the first new line after a forward-screen. 10161133e27eSPeter Avalos 10171133e27eSPeter Avalos* New -W flag highlights the first new line after any forward movement. 10181133e27eSPeter Avalos 10191133e27eSPeter Avalos* Window resize works even if LINES and/or COLUMNS environment 10201133e27eSPeter Avalos variables are incorrect. 10211133e27eSPeter Avalos 10221133e27eSPeter Avalos* New percent escapes for prompt strings: 10231133e27eSPeter Avalos %d is replaced by the page number, and 10241133e27eSPeter Avalos %D is replaced by the number of pages in the file. 10251133e27eSPeter Avalos 10261133e27eSPeter Avalos* Added charsets "iso8859" and "ebcdic". 10271133e27eSPeter Avalos 10281133e27eSPeter Avalos* In Windows version, uses HOMEDRIVE and HOMEPATH if HOME is not defined. 10291133e27eSPeter Avalos 10301133e27eSPeter Avalos* Fixed some bugs causing incorrect display on DOS/Windows. 10311133e27eSPeter Avalos 10321133e27eSPeter Avalos====================================================================== 10331133e27eSPeter Avalos 10341133e27eSPeter Avalos 10351133e27eSPeter Avalos Major changes between "less" versions 330 and 332 10361133e27eSPeter Avalos 10371133e27eSPeter Avalos* Filenames from the command line are entered into the command history, 10381133e27eSPeter Avalos so UPARROW/DOWNARROW can be used to retrieve them from the :e command. 10391133e27eSPeter Avalos 10401133e27eSPeter Avalos* Now works correctly on Windows when using a scrolling terminal 10411133e27eSPeter Avalos window (buffer larger than display window). 10421133e27eSPeter Avalos 10431133e27eSPeter Avalos* On Windows, now restores the console screen on exit. 10441133e27eSPeter Avalos Use -X to get the old behavior. 10451133e27eSPeter Avalos 10461133e27eSPeter Avalos* Fixed bug on Windows when CAPS-LOCK or NUM-LOCK is pressed. 10471133e27eSPeter Avalos 10481133e27eSPeter Avalos* Fixed bug on Windows when piping output of an interactive program. 10491133e27eSPeter Avalos 10501133e27eSPeter Avalos* Fixed bug in tags file processing when tags file has DOS-style 10511133e27eSPeter Avalos line terminators (CR/LF). 10521133e27eSPeter Avalos 10531133e27eSPeter Avalos* Fixed compilation problem on OS/2. 10541133e27eSPeter Avalos 10551133e27eSPeter Avalos====================================================================== 10561133e27eSPeter Avalos 10571133e27eSPeter Avalos 10581133e27eSPeter Avalos Major changes between "less" versions 321 and 330 10591133e27eSPeter Avalos 10601133e27eSPeter Avalos* Now supports filenames containing spaces (in double quotes). 10611133e27eSPeter Avalos New option -" can be used to change the quoting characters. 10621133e27eSPeter Avalos 10631133e27eSPeter Avalos* In filename completion, a slash is appended to a directory name. 10641133e27eSPeter Avalos If the environment variable LESSSEPARATOR is set, the value of 10651133e27eSPeter Avalos that variable, rather than a slash, is appended. 10661133e27eSPeter Avalos 10671133e27eSPeter Avalos* LeftArrow and RightArrow are same as ESC-[ and ESC-]. 10681133e27eSPeter Avalos 10691133e27eSPeter Avalos* Added commands ESC-( and ESC-), same as ESC-[ and ESC-]. 10701133e27eSPeter Avalos 10711133e27eSPeter Avalos* A "quit" command defined in a lesskey file may now have an "extra" 10721133e27eSPeter Avalos string, which is used to return an exit code from less when it quits. 10731133e27eSPeter Avalos 10741133e27eSPeter Avalos* New environment variables LESSMETACHARS and LESSMETAESCAPE provide 10751133e27eSPeter Avalos more control over how less interfaces to the shell. 10761133e27eSPeter Avalos 10771133e27eSPeter Avalos* Ported to Microsoft Visual C compiler for Windows. 10781133e27eSPeter Avalos 10791133e27eSPeter Avalos* Ported to DJGPP compiler for MS-DOS. 10801133e27eSPeter Avalos 10811133e27eSPeter Avalos* Bug fixes. 10821133e27eSPeter Avalos 10831133e27eSPeter Avalos====================================================================== 10841133e27eSPeter Avalos 10851133e27eSPeter Avalos 10861133e27eSPeter Avalos Major changes between "less" versions 291 and 321 10871133e27eSPeter Avalos 10881133e27eSPeter Avalos* Command line at bottom of screen now scrolls, so it can be longer 10891133e27eSPeter Avalos than the screen width. 10901133e27eSPeter Avalos 10911133e27eSPeter Avalos* New commands ESC-] and ESC-[ scroll the display horizontally. 10921133e27eSPeter Avalos 10931133e27eSPeter Avalos* New command ESC-SPACE scrolls forward a full screen, even if it 10941133e27eSPeter Avalos hits end-of-file. 10951133e27eSPeter Avalos 10961133e27eSPeter Avalos* Alternate modifiers for search commands: ^N is same as !, 10971133e27eSPeter Avalos ^F is same as @, and ^E is same as *. 10981133e27eSPeter Avalos 10991133e27eSPeter Avalos* New modifier for search commands: ^K means highlight the matches 11001133e27eSPeter Avalos currently on-screen, but don't move to the first match. 11011133e27eSPeter Avalos 11021133e27eSPeter Avalos* New modifier for search commands: ^R means don't use regular 11031133e27eSPeter Avalos expressions in the search. 11041133e27eSPeter Avalos 11051133e27eSPeter Avalos* Environment variable LESSKEY gives name of default lesskey file. 11061133e27eSPeter Avalos 11071133e27eSPeter Avalos* Environment variable LESSSECURE will force less to run in 11081133e27eSPeter Avalos "secure" mode. 11091133e27eSPeter Avalos 11101133e27eSPeter Avalos* Command line argument "--" signals that the rest of the arguments 11111133e27eSPeter Avalos are files (not option flags). 11121133e27eSPeter Avalos 11131133e27eSPeter Avalos* Help file (less.hlp) is no longer installed. Help text is now 11141133e27eSPeter Avalos embedded in the less executable itself. 11151133e27eSPeter Avalos 11161133e27eSPeter Avalos* Added -Ph to change the prompt for the help text. 11171133e27eSPeter Avalos Added -Ps to change the default short prompt (same as plain -P). 11181133e27eSPeter Avalos 11191133e27eSPeter Avalos* Ported to the Borland C compiler for MS-DOS. 11201133e27eSPeter Avalos 11211133e27eSPeter Avalos* Ported to Windows 95 & Windows NT. 11221133e27eSPeter Avalos 11231133e27eSPeter Avalos* Ported to OS-9. 11241133e27eSPeter Avalos 11251133e27eSPeter Avalos* Ported to GNU Hurd. 11261133e27eSPeter Avalos 11271133e27eSPeter Avalos====================================================================== 11281133e27eSPeter Avalos 11291133e27eSPeter Avalos 11301133e27eSPeter Avalos Major changes between "less" versions 290 and 291 11311133e27eSPeter Avalos 11321133e27eSPeter Avalos* Less environment variables can be specified in lesskey files. 11331133e27eSPeter Avalos 11341133e27eSPeter Avalos* Fixed MS-DOS build. 11351133e27eSPeter Avalos 11361133e27eSPeter Avalos====================================================================== 11371133e27eSPeter Avalos 11381133e27eSPeter Avalos 11391133e27eSPeter Avalos Major changes between "less" versions 278 and 290 11401133e27eSPeter Avalos 11411133e27eSPeter Avalos* Accepts GNU-style options "--help" and "--version". 11421133e27eSPeter Avalos 11431133e27eSPeter Avalos* OS/2 version looks for less.ini in $HOME before $INIT and $PATH. 11441133e27eSPeter Avalos 11451133e27eSPeter Avalos* Bug fixes 11461133e27eSPeter Avalos 11471133e27eSPeter Avalos====================================================================== 11481133e27eSPeter Avalos 11491133e27eSPeter Avalos 11501133e27eSPeter Avalos Major changes between "less" versions 252 and 278 11511133e27eSPeter Avalos 11521133e27eSPeter Avalos* A LESSOPEN preprocessor may now pipe the converted file data to less, 11531133e27eSPeter Avalos rather than writing it to a temporary file. 11541133e27eSPeter Avalos 11551133e27eSPeter Avalos* Search pattern highlighting has been fixed. It now highlights 11561133e27eSPeter Avalos reliably, even if a string is split across two screen lines, 11571133e27eSPeter Avalos contains TABs, etc. 11581133e27eSPeter Avalos 11591133e27eSPeter Avalos* The -F flag (which suppress search highlighting) has been changed 11601133e27eSPeter Avalos to -G. A new flag, -g, changes search highlighting to highlight 11611133e27eSPeter Avalos only the string found by the last search command, instead of all 11621133e27eSPeter Avalos strings which match the last search command. 11631133e27eSPeter Avalos 11641133e27eSPeter Avalos* New flag -I acts like -i, but ignores case even if the search 11651133e27eSPeter Avalos pattern contains uppercase letters. 11661133e27eSPeter Avalos 11671133e27eSPeter Avalos* Less now checks for the environment variable VISUAL before EDITOR. 11681133e27eSPeter Avalos 11691133e27eSPeter Avalos* Ported to OS/2. 11701133e27eSPeter Avalos 11711133e27eSPeter Avalos====================================================================== 11721133e27eSPeter Avalos 11731133e27eSPeter Avalos 11741133e27eSPeter Avalos Major changes between "less" versions 237 and 252 11751133e27eSPeter Avalos 11761133e27eSPeter Avalos* Changes in line-editing keys: 11771133e27eSPeter Avalos The literal key is now ^V or ^A rather than \ (backslash). 11781133e27eSPeter Avalos Filename completion commands (TAB and ^L) are disabled 11791133e27eSPeter Avalos when typing a search pattern. 11801133e27eSPeter Avalos 11811133e27eSPeter Avalos* Line-editing command keys can be redefined using lesskey. 11821133e27eSPeter Avalos 11831133e27eSPeter Avalos* Lesskey with no input file defaults to $HOME/.lesskey 11841133e27eSPeter Avalos rather than standard input. 11851133e27eSPeter Avalos 11861133e27eSPeter Avalos* New option -V displays version number of less. 11871133e27eSPeter Avalos 11881133e27eSPeter Avalos* New option -V displays version number of lesskey. 11891133e27eSPeter Avalos 11901133e27eSPeter Avalos* Help file less.hlp is now installed by default in /usr/local/share 11911133e27eSPeter Avalos rather than /usr/local/lib. 11921133e27eSPeter Avalos 11931133e27eSPeter Avalos 11941133e27eSPeter Avalos====================================================================== 11951133e27eSPeter Avalos 11961133e27eSPeter Avalos 11971133e27eSPeter Avalos Major changes between "less" versions 170 and 237 11981133e27eSPeter Avalos 11991133e27eSPeter Avalos* By popular demand, text which matches the current search pattern 12001133e27eSPeter Avalos is highlighted. New -F flag disables this feature. 12011133e27eSPeter Avalos 12021133e27eSPeter Avalos* Henry Spencer's regexp.c is now included, for systems which do not 12031133e27eSPeter Avalos have a regular expression library. 12041133e27eSPeter Avalos regexp.c is Copyright (c) 1986 by University of Toronto. 12051133e27eSPeter Avalos 12061133e27eSPeter Avalos* New line-editing keys, including command history (arrow keys) and 12071133e27eSPeter Avalos filename completion (TAB). 12081133e27eSPeter Avalos 12091133e27eSPeter Avalos* Input preprocessor allows modification of input files (e.g. uncompress) 12101133e27eSPeter Avalos via LESSOPEN/LESSCLOSE environment variables. 12111133e27eSPeter Avalos 12121133e27eSPeter Avalos* New -X flag disables sending termcap "ti" and "te" (initialize and 12131133e27eSPeter Avalos deinitialize) strings to the terminal. 12141133e27eSPeter Avalos 12151133e27eSPeter Avalos* Changing -i from within less now correctly affects a subsequent 12161133e27eSPeter Avalos repeated search. 12171133e27eSPeter Avalos 12181133e27eSPeter Avalos* Searching for underlined or overstruck text now works when the -u 12191133e27eSPeter Avalos flag is in effect, rather than the -i flag. 12201133e27eSPeter Avalos 12211133e27eSPeter Avalos* Use setlocale (LANG and LC_CTYPE environment variables) to determine 12221133e27eSPeter Avalos the character set if LESSCHARSET/LESSCHARDEF are not set. 12231133e27eSPeter Avalos 12241133e27eSPeter Avalos* The default format for displaying binary characters is now standout 12251133e27eSPeter Avalos (reverse video) rather than blinking. This can still be changed by 12261133e27eSPeter Avalos setting the LESSBINFMT environment variable. 12271133e27eSPeter Avalos 12281133e27eSPeter Avalos* Use autoconf installation technology. 12291133e27eSPeter Avalos 12301133e27eSPeter Avalos* Ported to MS-DOS. 12311133e27eSPeter Avalos 12321133e27eSPeter Avalos ******************************** 12331133e27eSPeter Avalos Things that may surprise you 12341133e27eSPeter Avalos ******************************** 12351133e27eSPeter Avalos 12361133e27eSPeter Avalos* When you enter text at the bottom of the screen (search string, 12371133e27eSPeter Avalos filename, etc.), some keys act different than previously. 12381133e27eSPeter Avalos Specifically, \ (backslash), ESC, TAB, BACKTAB, and control-L 12391133e27eSPeter Avalos now have line editing functions. 12401133e27eSPeter Avalos 12411133e27eSPeter Avalos* Some previous unofficial versions of less were able to display 12421133e27eSPeter Avalos compressed files. The new LESSOPEN/LESSCLOSE feature now provides 12431133e27eSPeter Avalos this functionality in a different way. 12441133e27eSPeter Avalos 12451133e27eSPeter Avalos* Some previous unofficial versions of less provided a -Z flag to 12461133e27eSPeter Avalos set the number of lines of text to retain between full screen scrolls. 12471133e27eSPeter Avalos The -z-n flag (that is, -z with a negative number) provides this 12481133e27eSPeter Avalos functionality. 12491133e27eSPeter Avalos 12501133e27eSPeter Avalos 12511133e27eSPeter Avalos====================================================================== 12521133e27eSPeter Avalos 12531133e27eSPeter Avalos 12541133e27eSPeter Avalos Major changes between "less" versions 123 and 170 12551133e27eSPeter Avalos 12561133e27eSPeter Avalos* New option -j allows target lines to be positioned anywhere on screen. 12571133e27eSPeter Avalos 12581133e27eSPeter Avalos* New option -S truncates displayed line at the screen width, 12591133e27eSPeter Avalos rather than wrapping onto the next line. 12601133e27eSPeter Avalos 12611133e27eSPeter Avalos* New option -y limits amount of forward scroll. 12621133e27eSPeter Avalos 12631133e27eSPeter Avalos* New option -T specifies a "tags" file. 12641133e27eSPeter Avalos 12651133e27eSPeter Avalos* Non-printable, non-control characters are displayed in octal. 12661133e27eSPeter Avalos Such characters, as well as control characters, are displayed 12671133e27eSPeter Avalos in blinking mode. 12681133e27eSPeter Avalos 12691133e27eSPeter Avalos* New command -+ sets an option to its default. 12701133e27eSPeter Avalos* New command -- sets an option to the opposite of its default. 12711133e27eSPeter Avalos 12721133e27eSPeter Avalos* Lesskey file may have a string appended to a key's action, 12731133e27eSPeter Avalos which acts as though typed in after the command. 12741133e27eSPeter Avalos 12751133e27eSPeter Avalos* New commands ESC-^F and ESC-^B match arbitrary types of brackets. 12761133e27eSPeter Avalos 12771133e27eSPeter Avalos* New command F monitors a growing file (like "tail -f"). 12781133e27eSPeter Avalos 12791133e27eSPeter Avalos* New command | pipes a section of the input file into a shell command. 12801133e27eSPeter Avalos 12811133e27eSPeter Avalos* New command :x directly jumps to a file in the command line list. 12821133e27eSPeter Avalos 12831133e27eSPeter Avalos* Search commands have been enhanced and reorganized: 12841133e27eSPeter Avalos n Repeat search, same direction. 12851133e27eSPeter Avalos N Repeat search, opposite direction. 12861133e27eSPeter Avalos ESC-/ Search forward thru file boundaries 12871133e27eSPeter Avalos ESC-? Search backward thru file boundaries 12881133e27eSPeter Avalos ESC-n Repeat search thru file boundaries, same direction. 12891133e27eSPeter Avalos ESC-N Repeat search thru file boundaries, opposite direction. 12901133e27eSPeter Avalos Special character * causes search to search thru file boundaries. 12911133e27eSPeter Avalos Special character @ causes search to begin at start/end of file list. 12921133e27eSPeter Avalos 12931133e27eSPeter Avalos* Examining a new file adds it to the command line list. 12941133e27eSPeter Avalos A list of files, or an expression which matches more than one file, 12951133e27eSPeter Avalos may be examined; all of them are added to the command line list. 12961133e27eSPeter Avalos 12971133e27eSPeter Avalos* Environment variables LESSCHARSET and LESSCHARDEF can define 12981133e27eSPeter Avalos a non-ASCII character set. 12991133e27eSPeter Avalos 13001133e27eSPeter Avalos* Partial support for MSDOS, including options -R for repainting screen 13011133e27eSPeter Avalos on quit, -v/-V to select video mode, and -W to change window size. 13021133e27eSPeter Avalos 13031133e27eSPeter Avalos 13041133e27eSPeter Avalos====================================================================== 13051133e27eSPeter Avalos 13061133e27eSPeter Avalos 13071133e27eSPeter Avalos Major changes between "less" versions 97 and 123 13081133e27eSPeter Avalos 13091133e27eSPeter Avalos* New option (-N) causes line numbers to be displayed in the 13101133e27eSPeter Avalos text of the file (like vi "set nu"). 13111133e27eSPeter Avalos 13121133e27eSPeter Avalos* New option (-?) prints help message immediately. 13131133e27eSPeter Avalos 13141133e27eSPeter Avalos* New option (-r) displays "raw" control characters, without 13151133e27eSPeter Avalos mapping them to ^X notation. 13161133e27eSPeter Avalos 13171133e27eSPeter Avalos* New option (-f) forces less to open non-regular files 13181133e27eSPeter Avalos (directories, etc). 13191133e27eSPeter Avalos 13201133e27eSPeter Avalos* New option (-k) can be used to specify lesskey files by name. 13211133e27eSPeter Avalos 13221133e27eSPeter Avalos* New option (-y) can be used to set a forward scroll limit 13231133e27eSPeter Avalos (like -h sets a backward scroll limit). 13241133e27eSPeter Avalos 13251133e27eSPeter Avalos* File marks (set by the m command) are now preserved when a new 13261133e27eSPeter Avalos file is edited. The ' command can thus be used to switch files. 13271133e27eSPeter Avalos 13281133e27eSPeter Avalos* New command ESC-/ searches all files (on the command line) 13291133e27eSPeter Avalos for a pattern. 13301133e27eSPeter Avalos 13311133e27eSPeter Avalos* New command ESC-n repeats previous search, spanning files. 13321133e27eSPeter Avalos 13331133e27eSPeter Avalos* The N command has been changed to repeat the previous search 13341133e27eSPeter Avalos in the reverse direction. The old N command is still available 13351133e27eSPeter Avalos via :n. 13361133e27eSPeter Avalos 13371133e27eSPeter Avalos* New command ESC-N repeats previous search in the reverse 13381133e27eSPeter Avalos direction and spanning files. 13391133e27eSPeter Avalos 13401133e27eSPeter Avalos* 8 bit characters are now supported. A new option (-g) can be 13411133e27eSPeter Avalos used to strip off the eighth bit (the previous behavior). 13421133e27eSPeter Avalos 13431133e27eSPeter Avalos* Options which take a following string (like -t) may now 13441133e27eSPeter Avalos optionally have a space between the option letter and the string. 13451133e27eSPeter Avalos 13461133e27eSPeter Avalos* Six new commands { } ( ) [ and ] can be used to match 13471133e27eSPeter Avalos brackets of specific types, similar to vi % command. 13481133e27eSPeter Avalos 13491133e27eSPeter Avalos* New commands z and w move forward/backward one window and 13501133e27eSPeter Avalos simultaneously set the window size. 13511133e27eSPeter Avalos 13521133e27eSPeter Avalos* Prompt string expansion now has %L for line number of the last 13531133e27eSPeter Avalos line in the file, and %E for the name of the editor. 13541133e27eSPeter Avalos Also, % escapes which refer to a line (b=bottom, t=top, etc.) 13551133e27eSPeter Avalos can use j for the jump target line. 13561133e27eSPeter Avalos 13571133e27eSPeter Avalos* New environment variable LESSEDIT can be used to tailor the 13581133e27eSPeter Avalos command string passed to the editor by the v command. 13591133e27eSPeter Avalos 13601133e27eSPeter Avalos* Examining a file which was previously examined will return 13611133e27eSPeter Avalos to the same position in the file. 13621133e27eSPeter Avalos 13631133e27eSPeter Avalos* A "%" is expanded to the current filename and a "#" to the 13641133e27eSPeter Avalos previous filename, in both shell commands and the E command. 13651133e27eSPeter Avalos (Previously % worked only in shell commands and # worked 13661133e27eSPeter Avalos only in the E command.) 13671133e27eSPeter Avalos 13681133e27eSPeter Avalos* New command ":ta" is equivalent to "-t". 13691133e27eSPeter Avalos 13701133e27eSPeter Avalos* New command "s" is equivalent to "-l". 13711133e27eSPeter Avalos 13721133e27eSPeter Avalos* The - command may be followed by "+X" to revert to the default 13731133e27eSPeter Avalos for option X, or "-X" to get the opposite of the default. 13741133e27eSPeter Avalos 13751133e27eSPeter Avalos* Lesskey files may now include characters after the action as 13761133e27eSPeter Avalos extra input to be parsed after the action; for example: 13771133e27eSPeter Avalos "toggle-option X" to toggle a specific option X. 13781133e27eSPeter Avalos 13791133e27eSPeter Avalos 13801133e27eSPeter Avalos 13811133e27eSPeter Avalos 13821133e27eSPeter Avalos 1383