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*c77c4889SXin LI Major changes between "less" versions 661 and 668 15*c77c4889SXin LI 16*c77c4889SXin LI* Make 256/true colors work better on Windows without -Da 17*c77c4889SXin LI (github #539, github #546, github #562). 18*c77c4889SXin LI 19*c77c4889SXin LI* Fix build using --with-secure (github #544). 20*c77c4889SXin LI 21*c77c4889SXin LI* Fix crash when using --header on command line (github #545). 22*c77c4889SXin LI 23*c77c4889SXin LI* Fix possible crash when scrolling left/right or toggling -S (github #547). 24*c77c4889SXin LI 25*c77c4889SXin LI* Fix bug when using #stop in a lesskey file (github #551). 26*c77c4889SXin LI 27*c77c4889SXin LI* Fix bug when using --shift or --match-shift on command line with 28*c77c4889SXin LI a parameter starting with '.' (github #554). 29*c77c4889SXin LI 30*c77c4889SXin LI* Fix bug in R command when file size changes (github #553). 31*c77c4889SXin LI 32*c77c4889SXin LI* Fix bug using --header when file does not fill screen (github #556). 33*c77c4889SXin LI 34*c77c4889SXin LI* Fix ^X bug when output is not a terminal (github #558). 35*c77c4889SXin LI 36*c77c4889SXin LI* Fix bug where ^Z is not handled immediately (github #563). 37*c77c4889SXin LI 38*c77c4889SXin LI* Fix bug where first byte from a LESSOPEN filter is deleted if it is 39*c77c4889SXin LI greater than 0x7F (github #568). 40*c77c4889SXin LI 41*c77c4889SXin LI* Fix uninitialized variable in edit_ifile (github #573). 42*c77c4889SXin LI 43*c77c4889SXin LI* Fix incorrect handling of UTF-8 chars in prompts (github #576). 44*c77c4889SXin LI 45*c77c4889SXin LI====================================================================== 46*c77c4889SXin LI 47*c77c4889SXin LI Major changes between "less" versions 643 and 661 48*c77c4889SXin LI 49*c77c4889SXin LI* Add ^O^N, ^O^P, ^O^L and ^O^O commands and mouse clicks (with --mouse) 50*c77c4889SXin LI to find and open OSC8 hyperlinks (github #251). 51*c77c4889SXin LI 52*c77c4889SXin LI* Add --match-shift option. 53*c77c4889SXin LI 54*c77c4889SXin LI* Add --lesskey-content option (github #447). 55*c77c4889SXin LI 56*c77c4889SXin LI* Add LESSKEY_CONTENT environment variable (github #447). 57*c77c4889SXin LI 58*c77c4889SXin LI* Add --no-search-header-lines and --no-search-header-columns options 59*c77c4889SXin LI (github #397). 60*c77c4889SXin LI 61*c77c4889SXin LI* Add ctrl-L search modifier (github #367). 62*c77c4889SXin LI 63*c77c4889SXin LI* A ctrl-P at the start of a shell command suppresses the "done" 64*c77c4889SXin LI message (github #462). 65*c77c4889SXin LI 66*c77c4889SXin LI* Add attribute characters ('*', '~', '_', '&') to --color 67*c77c4889SXin LI parameter (github #471). 68*c77c4889SXin LI 69*c77c4889SXin LI* Allow expansion of environment variables in lesskey files. 70*c77c4889SXin LI 71*c77c4889SXin LI* Add LESSSECURE_ALLOW environment variable (github #449). 72*c77c4889SXin LI 73*c77c4889SXin LI* Add LESS_UNSUPPORT environment variable. 74*c77c4889SXin LI 75*c77c4889SXin LI* Add line number parameter to --header option (github #436). 76*c77c4889SXin LI 77*c77c4889SXin LI* Mouse right-click jumps to position marked by left-click (github #390). 78*c77c4889SXin LI 79*c77c4889SXin LI* Ensure that the target line is not obscured by a header line 80*c77c4889SXin LI set by --header (github #444). 81*c77c4889SXin LI 82*c77c4889SXin LI* Change default character set to "utf-8", except remains "dos" on MS-DOS. 83*c77c4889SXin LI 84*c77c4889SXin LI* Add message when search with ^W wraps (github #459). 85*c77c4889SXin LI 86*c77c4889SXin LI* UCRT builds on Windows 10 and later now support Unicode file names 87*c77c4889SXin LI (github #438). 88*c77c4889SXin LI 89*c77c4889SXin LI* Improve behavior of interrupt while reading non-terminated pipe 90*c77c4889SXin LI (github #414). 91*c77c4889SXin LI 92*c77c4889SXin LI* Improve parsing of -j, -x and -# options (github #393). 93*c77c4889SXin LI 94*c77c4889SXin LI* Support files larger than 4GB on Windows (github #417). 95*c77c4889SXin LI 96*c77c4889SXin LI* Support entry of Unicode chars larger than U+FFFF on Windows (github #391). 97*c77c4889SXin LI 98*c77c4889SXin LI* Improve colors of bold, underline and standout text on Windows. 99*c77c4889SXin LI 100*c77c4889SXin LI* Allow --rscroll to accept non-ASCII characters (github #483). 101*c77c4889SXin LI 102*c77c4889SXin LI* Allow the parameter to certain options to be terminated with a 103*c77c4889SXin LI space (--color, --quotes, --rscroll, --search-options 104*c77c4889SXin LI and --intr) (github #495). 105*c77c4889SXin LI 106*c77c4889SXin LI* Fix bug where # substitution failed after viewing help (github #420). 107*c77c4889SXin LI 108*c77c4889SXin LI* Fix crash if files are deleted while less is viewing them (github #404). 109*c77c4889SXin LI 110*c77c4889SXin LI* Workaround unreliable ReadConsoleInputW behavior on Windows 111*c77c4889SXin LI with non-ASCII input. 112*c77c4889SXin LI 113*c77c4889SXin LI* Fix -J display when searching for non-ASCII characters (github #422). 114*c77c4889SXin LI 115*c77c4889SXin LI* Don't filter header lines via the & command (github #423). 116*c77c4889SXin LI 117*c77c4889SXin LI* Fix bug when horizontally shifting long lines (github #425). 118*c77c4889SXin LI 119*c77c4889SXin LI* Add -x and -D options to lesstest, to make it easier to diagnose 120*c77c4889SXin LI a failed lesstest run. 121*c77c4889SXin LI 122*c77c4889SXin LI* Fix bug searching long lines with --incsearch and -S (github #428). 123*c77c4889SXin LI 124*c77c4889SXin LI* Fix bug that made ESC-} fail if top line on screen was empty (github #429). 125*c77c4889SXin LI 126*c77c4889SXin LI* Fix bug with --mouse on Windows when used with pipes (github #440). 127*c77c4889SXin LI 128*c77c4889SXin LI* Fix bug in --+OPTION command line syntax. 129*c77c4889SXin LI 130*c77c4889SXin LI* Fix display bug when using -w with an empty line with a CR/LF 131*c77c4889SXin LI line ending (github #474). 132*c77c4889SXin LI 133*c77c4889SXin LI* When substituting '#' or '%' with a filename, quote the filename 134*c77c4889SXin LI if it contains a space (github #480). 135*c77c4889SXin LI 136*c77c4889SXin LI* Fix wrong sleep time when system has usleep but not nanosleep (github #489). 137*c77c4889SXin LI 138*c77c4889SXin LI* Fix bug when file name contains a newline. 139*c77c4889SXin LI 140*c77c4889SXin LI* Fix bug when file name contains nonprintable characters (github #503). 141*c77c4889SXin LI 142*c77c4889SXin LI* Fix DJGPP build (github #497). 143*c77c4889SXin LI 144*c77c4889SXin LI* Update Unicode tables. 145*c77c4889SXin LI 146*c77c4889SXin LI====================================================================== 147*c77c4889SXin LI 148f80a33eaSXin LI Major changes between "less" versions 633 and 643 149f80a33eaSXin LI 150f80a33eaSXin LI* Fix problem when a program piping into less reads from the tty, 151f80a33eaSXin LI like sudo asking for password (github #368). 152f80a33eaSXin LI 153f80a33eaSXin LI* Fix search modifier ^E after ^W. 154f80a33eaSXin LI 155f80a33eaSXin LI* Fix bug using negated (^N) search (github #374). 156f80a33eaSXin LI 157f80a33eaSXin LI* Fix bug setting colors with -D on Windows build (github #386). 158f80a33eaSXin LI 159f80a33eaSXin LI* Fix reading special chars like PageDown on Windows (github #378). 160f80a33eaSXin LI 161f80a33eaSXin LI* Fix mouse wheel scrolling on Windows (github #379). 162f80a33eaSXin LI 163f80a33eaSXin LI* Fix erroneous EOF when terminal window size changes (github #372). 164f80a33eaSXin LI 165f80a33eaSXin LI* Fix compile error with some definitions of ECHONL (github #395). 166f80a33eaSXin LI 167f80a33eaSXin LI* Fix crash on Windows when writing logfile (github #405). 168f80a33eaSXin LI 169f80a33eaSXin LI* Fix regression in exit code when stdin is /dev/null and 170f80a33eaSXin LI output is a file (github #373). 171f80a33eaSXin LI 172f80a33eaSXin LI* Add lesstest test suite to production release (github #344). 173f80a33eaSXin LI 174f80a33eaSXin LI* Change lesstest output to conform with 175f80a33eaSXin LI automake Simple Test Format (github #399). 176f80a33eaSXin LI 177f80a33eaSXin LI====================================================================== 178f80a33eaSXin LI 179f80a33eaSXin LI Major changes between "less" versions 632 and 633 180f80a33eaSXin LI 181f80a33eaSXin LI* Fix build on systems which have ncurses/termcap.h or 182f80a33eaSXin LI ncursesw/termcap.h but not termcap.h. 183f80a33eaSXin LI 184f80a33eaSXin LI====================================================================== 185f80a33eaSXin LI 186d713e089SXin LI Major changes between "less" versions 608 and 632 187d713e089SXin LI 188d713e089SXin LI* Add LESSUTFCHARDEF environment variable (github #275). 189d713e089SXin LI 190d713e089SXin LI* Add # command (github #330). 191d713e089SXin LI 192d713e089SXin LI* Add ^S search modifier (github #196). 193d713e089SXin LI 194d713e089SXin LI* Add --wordwrap option (github #113). 195d713e089SXin LI 196d713e089SXin LI* Add --no-vbell option (github #304). 197d713e089SXin LI 198d713e089SXin LI* Add --no-search-headers option (github #44). 199d713e089SXin LI 200d713e089SXin LI* Add --modelines option (github #89). 201d713e089SXin LI 202d713e089SXin LI* Add --intr option (github #224). 203d713e089SXin LI 204d713e089SXin LI* Add --proc-backspace, --proc-tab and --proc-return options (github #335). 205d713e089SXin LI 206d713e089SXin LI* Add --show-preproc-errors option (github #258). 207d713e089SXin LI 208d713e089SXin LI* Add LESS_LINES and LESS_COLUMNS environment variables (github #84). 209d713e089SXin LI 210d713e089SXin LI* Add LESS_DATA_DELAY environment variable (github #337). 211d713e089SXin LI 212d713e089SXin LI* Allow empty "lines" field in --header option. 213d713e089SXin LI 214d713e089SXin LI* Update Unicode tables. 215d713e089SXin LI 216d713e089SXin LI* Improve ability of ^X to interrupt F command (github #49). 217d713e089SXin LI 218d713e089SXin LI* Status column (-J) shows off-screen matches. 219d713e089SXin LI 220d713e089SXin LI* Parenthesized sub-patterns in searches are colored with unique colors, 221d713e089SXin LI if supported by the regular expression library (github #196). 222d713e089SXin LI 223d713e089SXin LI* Don't allow opening a tty as file input unless -f is set (github #309). 224d713e089SXin LI 225d713e089SXin LI* Don't require newline input after +&... option (github #339). 226d713e089SXin LI 227d713e089SXin LI* Fix incorrect handling of some Private Use Unicode characters. 228d713e089SXin LI 229d713e089SXin LI* Fix ANSI color bug when overstriking with colored chars (github #276). 230d713e089SXin LI 231d713e089SXin LI* Fix compiler const warning (github #279). 232d713e089SXin LI 233d713e089SXin LI* Fix signal race in iread (github #280). 234d713e089SXin LI 235d713e089SXin LI* Fix reading procfs files on Linux (github #282). 236d713e089SXin LI 237d713e089SXin LI* Fix --ignore-case with ctrl-R (no regex) search (github #300). 238d713e089SXin LI 239d713e089SXin LI* Fix bug doing repeat search after setting & filter (github #299). 240d713e089SXin LI 241d713e089SXin LI* Fix bug doing repeat search before non-repeat search. 242d713e089SXin LI 243d713e089SXin LI* Fix crash with -R and certain line lengths (github #338). 244d713e089SXin LI 245d713e089SXin LI* Fix input of Windows dead keys (github #352). 246d713e089SXin LI 247d713e089SXin LI* Don't retain search options from a cancelled search (github #302). 248d713e089SXin LI 249d713e089SXin LI* Don't call realpath on fake filenames like "-" (github #289). 250d713e089SXin LI 251d713e089SXin LI* Implement lesstest test suite. 252d713e089SXin LI 253d713e089SXin LI* Convert function parameter definitions from K&R to C89 (github #316). 254d713e089SXin LI 255d713e089SXin LI====================================================================== 256d713e089SXin LI 25795270f73SXin LI Major changes between "less" versions 590 and 608 25895270f73SXin LI 25995270f73SXin LI* Add the --header option (github #43). 26095270f73SXin LI 26195270f73SXin LI* Add the --no-number-headers option (github #178). 26295270f73SXin LI 26395270f73SXin LI* Add the --status-line option. 26495270f73SXin LI 26595270f73SXin LI* Add the --redraw-on-quit option (github #36). 26695270f73SXin LI 26795270f73SXin LI* Add the --search-options option (github #213). 26895270f73SXin LI 26995270f73SXin LI* Add the --exit-follow-on-close option (github #244). 27095270f73SXin LI 27195270f73SXin LI* Add 'H' color type to set color of header lines. 27295270f73SXin LI 27395270f73SXin LI* Add #version conditional to lesskey. 27495270f73SXin LI 27595270f73SXin LI* Add += syntax to variable section in lesskey files. 27695270f73SXin LI 27795270f73SXin LI* Allow option name in -- command to end with '=' in addition to '\n'. 27895270f73SXin LI 27995270f73SXin LI* Add $HOME/.config to possible locations of lesskey file (github #153). 28095270f73SXin LI 28195270f73SXin LI* Add $XDG_STATE_HOME and $HOME/.local/state to possible locations 28295270f73SXin LI of history file (github #223). 28395270f73SXin LI 28495270f73SXin LI* Don't read or write history file in secure mode (github #201). 28595270f73SXin LI 28695270f73SXin LI* Fix display of multibyte and double-width chars in prompt. 28795270f73SXin LI 28895270f73SXin LI* Fix ESC-BACKSPACE command when BACKSPACE key does not send 0x08 28995270f73SXin LI (github #188). 29095270f73SXin LI 29195270f73SXin LI* Add more \k codes to lesskey format. 29295270f73SXin LI 29395270f73SXin LI* Fix bug when empty file is modified while viewing it. 29495270f73SXin LI 29595270f73SXin LI* Fix bug when parsing a malformed lesskey file (githb #234). 29695270f73SXin LI 29795270f73SXin LI* Fix bug scrolling history when --incsearch is set (github #214). 29895270f73SXin LI 29995270f73SXin LI* Fix buffer overflow when invoking lessecho with more than 63 -m/-n 30095270f73SXin LI options (github #198). 30195270f73SXin LI 30295270f73SXin LI* Fix buffer overflow in bin_file (github #271). 30395270f73SXin LI 30495270f73SXin LI* Fix bug restoring color at end of highlighted text. 30595270f73SXin LI 30695270f73SXin LI* Fix bug in parsing lesskey file. 30795270f73SXin LI 30895270f73SXin LI* Defer moving cursor to lower left in some more cases. 30995270f73SXin LI 31095270f73SXin LI* Suppress TAB filename expansion in some cases where it doesn't make sense. 31195270f73SXin LI 31295270f73SXin LI* Fix termlib detection when compiler doesn't accept 31395270f73SXin LI calls to undeclared functions. 31495270f73SXin LI 31595270f73SXin LI* Fix bug in input of non-ASCII characters on Windows (github #247) 31695270f73SXin LI 31795270f73SXin LI* Escape filenames when invoking LESSCLOSE. 31895270f73SXin LI 31995270f73SXin LI* Fix bug using multibyte UTF-8 char in search string 32095270f73SXin LI with --incsearch (github #273). 32195270f73SXin LI 32295270f73SXin LI====================================================================== 32395270f73SXin LI 32430a1828cSXin LI Major changes between "less" versions 581 and 590 32530a1828cSXin LI 32630a1828cSXin LI* Make less able to read lesskey source files (deprecating lesskey). 32730a1828cSXin LI 32830a1828cSXin LI* If XDG_CONFIG_HOME is set, find lesskey source file 32930a1828cSXin LI in $XDG_CONFIG_HOME/lesskey rather than $HOME/.lesskey. 33030a1828cSXin LI 33130a1828cSXin LI* If XDG_DATA_HOME is set, find and store history file 33230a1828cSXin LI in $XDG_DATA_HOME/lesshst rather than $HOME/.lesshst. 33330a1828cSXin LI 33430a1828cSXin LI* Add the --lesskey-src option. 33530a1828cSXin LI 33630a1828cSXin LI* Add the --file-size option. 33730a1828cSXin LI 33830a1828cSXin LI* With -F, if screen is resized to make file fit on one screen, don't exit. 33930a1828cSXin LI 34030a1828cSXin LI* Fix bug which could leave terminal in mouse-reporting mode 34130a1828cSXin LI after exiting less. 34230a1828cSXin LI 34330a1828cSXin LI* Fix bug which caused failure to respond to window resize. 34430a1828cSXin LI 34530a1828cSXin LI* Fix backslash bug searching in tag file. 34630a1828cSXin LI 34730a1828cSXin LI====================================================================== 34830a1828cSXin LI 34930a1828cSXin LI Major changes between "less" versions 563 and 581 3502235c7feSXin LI 3512235c7feSXin LI* Change ESC-u command to toggle, not disable, highlighting per man page. 3522235c7feSXin LI 3532235c7feSXin LI* Add ESC-U command. 3542235c7feSXin LI 3552235c7feSXin LI* Add ctrl-W search modifier for wrapping search. 3562235c7feSXin LI 3572235c7feSXin LI* F command can be interrupted by ^X. 3582235c7feSXin LI 3592235c7feSXin LI* Support OSC 8 hyperlinks when -R is in effect. 3602235c7feSXin LI 3612235c7feSXin LI* g command with no number will ignore -j and put first line at top of screen. 3622235c7feSXin LI 3632235c7feSXin LI* Multiple + or -p command line options are handled better. 3642235c7feSXin LI 3652235c7feSXin LI* Add the --incsearch option. 3662235c7feSXin LI 3672235c7feSXin LI* Add the --line-num-width option. 3682235c7feSXin LI 3692235c7feSXin LI* Add the --status-col-width option. 3702235c7feSXin LI 3712235c7feSXin LI* Add the --use-color and --color options. 3722235c7feSXin LI 3732235c7feSXin LI* Display -w highlight even if highlighted line is empty. 3742235c7feSXin LI 3752235c7feSXin LI* If search result is in a long line, scroll to ensure it is visible. 3762235c7feSXin LI 3772235c7feSXin LI* Editing the same file under different names now creates only 3782235c7feSXin LI one entry in the file list. 3792235c7feSXin LI 3802235c7feSXin LI* Make visual bell more visible on some terminals. 3812235c7feSXin LI 3822235c7feSXin LI* Ring end-of-file bell no more than once per second. 3832235c7feSXin LI 3842235c7feSXin LI* Build can use either Python or Perl for Makefile.aut operations. 3852235c7feSXin LI 3862235c7feSXin LI* Fix crash when using the @ search modifier. 3872235c7feSXin LI 3882235c7feSXin LI* Fix crash in the 's' command due to duplicate free. 3892235c7feSXin LI 3902235c7feSXin LI* Fix realpath crash on Darwin. 391a15691bfSXin LI 392a15691bfSXin LI====================================================================== 393a15691bfSXin LI 3946f26c71dSXin LI Major changes between "less" versions 551 and 563 3956f26c71dSXin LI 3966f26c71dSXin LI* Update Unicode tables. 3976f26c71dSXin LI 3986f26c71dSXin LI* Treat Hangul Jamo medial vowels and final consonants as zero width. 3996f26c71dSXin LI 4006f26c71dSXin LI* Display error message immediately when -o is toggled and 4016f26c71dSXin LI input is not a pipe. 4026f26c71dSXin LI 4036f26c71dSXin LI* Fix regression: make screen repaint when "squished" and 4046f26c71dSXin LI a no-movement command is given. 4056f26c71dSXin LI 4066f26c71dSXin LI* Fix erroneous EOF calculation when F command is interrupted. 4076f26c71dSXin LI 4086f26c71dSXin LI* Make WIN32C version include this fix from 551: 4096f26c71dSXin LI Don't count lines in initial screen if using -X with -F. 4106f26c71dSXin LI 4116f26c71dSXin LI* Fix display bug in WIN32C version. 4126f26c71dSXin LI 4136f26c71dSXin LI* Fix memory corruption when built with libtermcap. 4146f26c71dSXin LI 4156f26c71dSXin LI* Support libtinfow. 4166f26c71dSXin LI 4176f26c71dSXin LI====================================================================== 4186f26c71dSXin LI 419b7780dbeSXin LI Major changes between "less" versions 530 and 551 420b7780dbeSXin LI 421b7780dbeSXin LI* Add --mouse option. 422b7780dbeSXin LI 423b7780dbeSXin LI* Add --wheel-lines option. 424b7780dbeSXin LI 425b7780dbeSXin LI* Add --no-histdups option. 426b7780dbeSXin LI 427b7780dbeSXin LI* Add --save-marks option. 428b7780dbeSXin LI 429b7780dbeSXin LI* Support PCRE2 regular expression library. 430b7780dbeSXin LI 431b7780dbeSXin LI* Redraw screen on SIGWINCH even if screen size doesn't change. 432b7780dbeSXin LI 433b7780dbeSXin LI* Shell-escape filenames in history so they can be used again. 434b7780dbeSXin LI 435b7780dbeSXin LI* Ring bell if user enters invalid long option name. 436b7780dbeSXin LI 437b7780dbeSXin LI* Use PCRE_UTF8 flag for pcre regular expressions when in UTF-8 mode. 438b7780dbeSXin LI 439b7780dbeSXin LI* Windows: use wide-char string to set console title. 440b7780dbeSXin LI 441b7780dbeSXin LI* Don't count lines in initial screen if using -X with -F. 442b7780dbeSXin LI 443b7780dbeSXin LI* Support mingw build system. 444b7780dbeSXin LI 445b7780dbeSXin LI* Fix bug in v command on empty file. 446b7780dbeSXin LI 447b7780dbeSXin LI* Fix bug in v command when filename contains shell metacharacters. 448b7780dbeSXin LI 449b7780dbeSXin LI====================================================================== 450b7780dbeSXin LI 45174709ed0SXin LI Major changes between "less" versions 487 and 530 452f6b74a7dSXin LI 453f6b74a7dSXin LI* Don't output terminal init sequence if using -F and file fits on one screen. 454f6b74a7dSXin LI 455b2ea2440SXin LI* When using -S, mark truncated lines with a special character. 456b2ea2440SXin LI The character can be changed or disabled via the new --rscroll option. 457f6b74a7dSXin LI 458b2ea2440SXin LI* New command M marks the last line displayed on the screen. 459f6b74a7dSXin LI 460b2ea2440SXin LI* New command ESC-m removes a line mark. 461b2ea2440SXin LI 462b2ea2440SXin LI* Status column (enabled via -J) now shows mark letters. 463b2ea2440SXin LI 464b2ea2440SXin LI* Status column shows search matches even if highlighting is disabled via -G. 465b2ea2440SXin LI 466b2ea2440SXin LI* A second ESC-u command will clear search match markers in the status column. 467b2ea2440SXin LI 468b2ea2440SXin LI* Do same ANSI escape code filtering for tag matching that we do for 469b2ea2440SXin LI searching, to help when viewing syntax-highlighted code. 470b2ea2440SXin LI 471b2ea2440SXin LI* Catch SIGTERM and clean up before exiting. 472b2ea2440SXin LI 473b2ea2440SXin LI* Fix bug initializing default charset on Windows. 474b2ea2440SXin LI 475b2ea2440SXin LI* Handle keypad ENTER key correctly if it sends something other than newline. 476b2ea2440SXin LI 477b2ea2440SXin LI* Fix buffering bug when using stdin with a LESSOPEN pipe. 478b2ea2440SXin LI 479b2ea2440SXin LI* On Windows, allow 'u' in -D option to enable underlining. 480b2ea2440SXin LI 481b2ea2440SXin LI* On Windows, use underline in sgr mode. 482b2ea2440SXin LI 483b2ea2440SXin LI* On Windows, convert UTF-8 to multibyte if console is not UTF-8. 484b2ea2440SXin LI 485b2ea2440SXin LI* Update Unicode tables to 2017-03-08. 486b2ea2440SXin LI 487d713e089SXin LI* Pass-thru Unicode formatting chars (Cf type) instead of treating them 488b2ea2440SXin LI as binary chars. But treat them as binary if -U is set. 489b2ea2440SXin LI 490b2ea2440SXin LI* Fix erroneous binary file warning when UTF-8 file contains ANSI SGR sequences. 491b2ea2440SXin LI 492b2ea2440SXin LI* Fix bugs when using LESSOPEN and switching between stdin and other files. 493b2ea2440SXin LI 494b2ea2440SXin LI* Fix some bugs handling filenames containing shell metacharacters. 495f6b74a7dSXin LI 496f6b74a7dSXin LI* Fix some memory leaks. 497f6b74a7dSXin LI 498b2ea2440SXin LI* Allow some debugging environment variables to be set in lesskey file. 499b2ea2440SXin LI 500b2ea2440SXin LI* Code improvements: 501b2ea2440SXin LI . Use ANSI prototypes in funcs.h declarations. 502b2ea2440SXin LI . Fix some const mismatches. 503b2ea2440SXin LI . Remove archaic "register" in variable declarations. 504b2ea2440SXin LI 505f6b74a7dSXin LI====================================================================== 506f6b74a7dSXin LI 507f6b74a7dSXin LI Major changes between "less" versions 481 and 487 508f6b74a7dSXin LI 509f6b74a7dSXin LI* New commands ESC-{ and ESC-} to shift to start/end of displayed lines. 510f6b74a7dSXin LI 511f6b74a7dSXin LI* Make search highlights work correctly when changing caselessness with -i. 512f6b74a7dSXin LI 513f6b74a7dSXin LI* New option -Da in Windows version to enable SGR mode. 514f6b74a7dSXin LI 515f6b74a7dSXin LI* Fix "nothing to search" error when top or bottom line on screen is empty. 516f6b74a7dSXin LI 517f6b74a7dSXin LI* Fix bug when terminal has no "cm" termcap entry. 518f6b74a7dSXin LI 519f6b74a7dSXin LI* Fix incorrect display when entering double-width chars in search string. 520f6b74a7dSXin LI 521f6b74a7dSXin LI* Fix bug in Unicode handling that missed some double width characters. 522f6b74a7dSXin LI 523f6b74a7dSXin LI* Update Unicode database to 9.0.0. 524f6b74a7dSXin LI 525f6b74a7dSXin LI====================================================================== 526f6b74a7dSXin LI 527a15691bfSXin LI Major changes between "less" versions 458 and 481 528a15691bfSXin LI 529a15691bfSXin LI* Don't overwrite history file; just append to it. 530a15691bfSXin LI 531a15691bfSXin LI* New command ESC-G goes to end of currently buffered data in a pipe. 532a15691bfSXin LI 533a15691bfSXin LI* Disable history feature when compiled with LESSHISTFILE set to "-". 534a15691bfSXin LI 535a15691bfSXin LI* In more-compatible mode, make the -p option apply to every file opened, 536a15691bfSXin LI not just the first one. 537a15691bfSXin LI 538a15691bfSXin LI* In more-compatible mode, change the -e option to work like -E, not -EF. 539a15691bfSXin LI 540a15691bfSXin LI* Treat multiple CRs before LF are like one CR (all the CRs are hidden). 541a15691bfSXin LI 542a15691bfSXin LI* Allow "extra" string in lesskey file to append to a multi-char command 543a15691bfSXin LI (like a search pattern), without executing the command. 544a15691bfSXin LI 545a15691bfSXin LI* Ignore -u/-U setting while viewing help file, so that 546a15691bfSXin LI underline and bold chars are displayed correctly. 547a15691bfSXin LI 548a15691bfSXin LI* Improve detection of "binary" files in UTF-8 mode. 549a15691bfSXin LI 550a15691bfSXin LI* Fix bug with ++ commands. 551a15691bfSXin LI 552a15691bfSXin LI* Fix bug where prompt was sometimes not displayed with +G. 553a15691bfSXin LI 554a15691bfSXin LI* Fix possible memory corruption 555a15691bfSXin LI 556a15691bfSXin LI* Fix bugs and improve performance in ampersand filtering. 557a15691bfSXin LI 558a15691bfSXin LI* Automate construction of Unicode tables from Unicode database. 559a15691bfSXin LI 560a15691bfSXin LI* Allow %% escape sequence in LESSOPEN variable. 56196e55cc7SXin LI 56296e55cc7SXin LI====================================================================== 56396e55cc7SXin LI 5647bd2567cSXin LI Major changes between "less" versions 451 and 458 5654cc5fc9aSXin LI 5667bd2567cSXin LI* Allow backslash escaping of metacharacters in LESS environment variable 5677bd2567cSXin LI after the --use-backslash option. 5684cc5fc9aSXin LI 5694cc5fc9aSXin LI* Don't quit if syntax errors are found in command line options. 5704cc5fc9aSXin LI 5714cc5fc9aSXin LI* Increase sizes of some internal buffers. 5724cc5fc9aSXin LI 5734cc5fc9aSXin LI* Fix configure bug with --with-regex=none. 5744cc5fc9aSXin LI 5754cc5fc9aSXin LI* Fix crash with "stty rows 0". 5764cc5fc9aSXin LI 5774cc5fc9aSXin LI* Fix Win32 attribute display bug. 5784cc5fc9aSXin LI 5797bd2567cSXin LI* Fix display bug when using up/down arrow on the command line. 5807bd2567cSXin LI 5814cc5fc9aSXin LI====================================================================== 5824cc5fc9aSXin LI 583e2449719SXin LI Major changes between "less" versions 444 and 451 58496e55cc7SXin LI 58596e55cc7SXin LI* Add ESC-F command to keep reading data until a pattern is found. 58696e55cc7SXin LI 58796e55cc7SXin LI* Use exit code of LESSOPEN script if LESSOPEN starts with "||". 58896e55cc7SXin LI 58996e55cc7SXin LI* When up/down arrow is used on the command line immediately after 59096e55cc7SXin LI typing text, the next command starting with that text is found. 59196e55cc7SXin LI 59296e55cc7SXin LI* Add support for GNU regex. 59396e55cc7SXin LI 59496e55cc7SXin LI* Add configure option --with-regex=none and fix compile errors 59596e55cc7SXin LI when compiling with no regex library. 59696e55cc7SXin LI 59796e55cc7SXin LI* Fix bugs handling SGR sequences in Win32. 59896e55cc7SXin LI 59996e55cc7SXin LI* Fix possible crashes caused by malformed LESSOPEN or 60096e55cc7SXin LI LESSCLOSE variables. 60196e55cc7SXin LI 60296e55cc7SXin LI* Fix bug highlighting text which is discontiguous in the file 60396e55cc7SXin LI due to backspace processing. 60496e55cc7SXin LI 60596e55cc7SXin LI* Fix bug in displaying status column when scrolling backwards 60696e55cc7SXin LI with -J and -S in effect. 607a5f0fb15SPaul Saab 608a5f0fb15SPaul Saab====================================================================== 609a5f0fb15SPaul Saab 610b24bfc5aSXin LI Major changes between "less" versions 443 and 444 611b24bfc5aSXin LI 612b24bfc5aSXin LI* Fix bug in unget handling that can cause strange effects on the 613b24bfc5aSXin LI command line. 614b24bfc5aSXin LI 615b24bfc5aSXin LI* Remove vestiges of obsolete -l option that can cause a crash. 616b24bfc5aSXin LI 617b24bfc5aSXin LI====================================================================== 618b24bfc5aSXin LI 61933096f16SXin LI Major changes between "less" versions 436 and 443 62033096f16SXin LI 62133096f16SXin LI* Change search behavior such that when a search is given an explicit 62233096f16SXin LI pattern, the entire displayed screen is included in the search and 62333096f16SXin LI not just the portion after the target line. 62433096f16SXin LI 62533096f16SXin LI* Add -A option to change search behavior to the old way: only 62633096f16SXin LI the portion of the screen after the target line is searched. 62733096f16SXin LI 62833096f16SXin LI* Add %F formatting to prompt strings, replaced by the last component 62933096f16SXin LI of the input file. 63033096f16SXin LI 63133096f16SXin LI* Control-G while editing a command exits the command. 63233096f16SXin LI 63333096f16SXin LI* Less now exits with status 2 if control-C is pressed and -K is in effect. 63433096f16SXin LI 63533096f16SXin LI* Fix "ungetc overflow" when passing long commands via the -p option. 63633096f16SXin LI 63733096f16SXin LI* Fix bug in using line filtering via the & command 63833096f16SXin LI in combination with -i and -I. 63933096f16SXin LI 64033096f16SXin LI* Fix bug in handling negative arguments to the -j option. 64133096f16SXin LI 64233096f16SXin LI* Fix bug in handling %t in prompt strings. 64333096f16SXin LI 64433096f16SXin LI* Improve handling of long option names. 64533096f16SXin LI 64633096f16SXin LI* Improve percentage calculation for very large files. 64733096f16SXin LI 64833096f16SXin LI====================================================================== 64933096f16SXin LI 650f0be0a1fSXin LI Major changes between "less" versions 429 and 436 651f0be0a1fSXin LI 652f0be0a1fSXin LI* Don't pass "-" to non-pipe LESSOPEN unless it starts with "-". 653f0be0a1fSXin LI 654f0be0a1fSXin LI* Allow a fraction as the argument to the -# (--shift) option. 655f0be0a1fSXin LI 656f0be0a1fSXin LI* Fix highlight bug when underlined/overstruck text matches at end of line. 657f0be0a1fSXin LI 658f0be0a1fSXin LI* Fix non-regex searches with ctrl-R. 659f0be0a1fSXin LI 660f0be0a1fSXin LI====================================================================== 661f0be0a1fSXin LI 6627374caaaSXin LI Major changes between "less" versions 424 and 429 6637374caaaSXin LI 6647374caaaSXin LI* LESSOPEN pipe will now be used on standard input, if the LESSOPEN 6657374caaaSXin LI environment variable begins with "|-". 6667374caaaSXin LI 6677374caaaSXin LI* The -D option with one number now means use the normal background color. 6687374caaaSXin LI 6697374caaaSXin LI* Don't change permissions on history file if it is not a regular file. 6707374caaaSXin LI 6717374caaaSXin LI* Fix non-ANSI-compliant code that caused problems with some compilers. 6727374caaaSXin LI 6737374caaaSXin LI* Fix binary file detection in UTF-8 mode. 6747374caaaSXin LI 6757374caaaSXin LI* Fix display problems with long lines on "ignaw" terminals. 6767374caaaSXin LI 6777374caaaSXin LI* Fix problem interrupting the line number calculation for initial prompt. 6787374caaaSXin LI 679d713e089SXin LI* Fix SGR emulation when dealing with multiple attributes (e.g. bold+underline). 6807374caaaSXin LI 6817374caaaSXin LI* Fix highlight bug when searching for underlined/overstruck text. 6827374caaaSXin LI 6837374caaaSXin LI====================================================================== 6847374caaaSXin LI 6857374caaaSXin LI Major changes between "less" versions 418 and 424 6867374caaaSXin LI 6877374caaaSXin LI* New "&" command allows filtering of lines based on a pattern. 6887374caaaSXin LI 6897374caaaSXin LI* Status column now displays a search match, even if the matched 6907374caaaSXin LI string is scrolled off screen because -S is in effect. 6917374caaaSXin LI 6927374caaaSXin LI* Improve behavior of -F option. 6937374caaaSXin LI 6947374caaaSXin LI* Allow CSI character (0x9B) to work in UTF-8 mode. 6957374caaaSXin LI 6967374caaaSXin LI* Output carriage return at startup in case terminal doesn't default 6977374caaaSXin LI to column 1. 6987374caaaSXin LI 6997374caaaSXin LI* Fix bug in '' (quote, quote) command after G command. 7007374caaaSXin LI 7017374caaaSXin LI====================================================================== 7027374caaaSXin LI 7037374caaaSXin LI Major changes between "less" versions 416 and 418 7047374caaaSXin LI 7057374caaaSXin LI* Color escape sequences are now supported in WIN32 build. 7067374caaaSXin LI 7077374caaaSXin LI* Makefile now uses EXEEXT feature of autoconf. 7087374caaaSXin LI 7097374caaaSXin LI* Fix search bug when using -R and text contains ANSI color escape sequences. 7107374caaaSXin LI 7117374caaaSXin LI* Fix crash when using -r with UTF-8 text containing 0x9B bytes. 7127374caaaSXin LI 7137374caaaSXin LI* Fix display bug when using ' command to move less than one page forward. 7147374caaaSXin LI 7157374caaaSXin LI* Update GPL to version 3. 7167374caaaSXin LI 7177374caaaSXin LI====================================================================== 718a5f0fb15SPaul Saab 71933a9f6abSXin LI Major changes between "less" versions 409 and 416 720464501a8SXin LI 721464501a8SXin LI* New --follow-name option makes F command follow the name of a file 722464501a8SXin LI rather than the file descriptor if an open file is renamed. 723464501a8SXin LI 724464501a8SXin LI* Make searching with -i/-I work correctly with non-ASCII text. 725464501a8SXin LI 726464501a8SXin LI* Fix DJGPP build. 727464501a8SXin LI 728464501a8SXin LI====================================================================== 729464501a8SXin LI 730f78327b5SXin LI Major changes between "less" versions 406 and 409 7311c6a5c10SXin LI 7321c6a5c10SXin LI* Support CSI escape sequences, like SGR escape sequences. 7331c6a5c10SXin LI 7341c6a5c10SXin LI* Fix bug which caused screen to fail to repaint when window is resized. 7351c6a5c10SXin LI 7361c6a5c10SXin LI* Fix bug in using -i and -I flags with non-ASCII text. 7371c6a5c10SXin LI 7381c6a5c10SXin LI* Fix configure bug on systems which don't support langinfo.h. 7391c6a5c10SXin LI 740f78327b5SXin LI* Fix crash when searching text containing certain invalid UTF-8 sequences. 741f78327b5SXin LI 7421c6a5c10SXin LI====================================================================== 7431c6a5c10SXin LI 744efd72c2eSXin LI Major changes between "less" versions 394 and 406 7457f074f9cSXin LI 7467f074f9cSXin LI* Allow decimal point in number for % (percent) command. 7477f074f9cSXin LI 7487f074f9cSXin LI* Allow decimal point in number for -j option (fraction of screen height). 7497f074f9cSXin LI 7507f074f9cSXin LI* Make n command fetch previous pattern from history file on first search. 7517f074f9cSXin LI 7527f074f9cSXin LI* Don't rewrite history file if it has not changed. 7537f074f9cSXin LI 7547f074f9cSXin LI* Don't move to bottom of screen on first page. 7557f074f9cSXin LI 7567f074f9cSXin LI* Don't output extraneous newlines, so copy & pasting lines from the 7577f074f9cSXin LI output works better. 7587f074f9cSXin LI 7597f074f9cSXin LI* The -c option has been made identical with the -C option. 7607f074f9cSXin LI 761d713e089SXin LI* Allow "/dev/null" as synonym for "-" in LESSHISTFILE to indicate 7627f074f9cSXin LI that no history file should be used. 7637f074f9cSXin LI 7647f074f9cSXin LI* Search can now find text which follows a null byte, if the PCRE 7657f074f9cSXin LI library is used, or if no-regex searching (ctrl-R) is used. 7667f074f9cSXin LI 7677f074f9cSXin LI* Better compatibility with POSIX more specification. 7687f074f9cSXin LI 7697f074f9cSXin LI* Make -f work for directories. 7707f074f9cSXin LI 7717f074f9cSXin LI* Make "t" cmd traverse tags in the correct order. 7727f074f9cSXin LI 7737f074f9cSXin LI* Allow a few binary characters in the input file before warning 7747f074f9cSXin LI that the file is binary. 7757f074f9cSXin LI 7767f074f9cSXin LI* Don't warn that file is binary if it merely contains ANSI color sequences 7777f074f9cSXin LI and -R is in effect. 7787f074f9cSXin LI 7797f074f9cSXin LI* Update Unicode character tables. 7807f074f9cSXin LI 7817f074f9cSXin LI* Support DESTDIR in Makefile. 7827f074f9cSXin LI 7837f074f9cSXin LI* Fix bug when filename contains certain shell metacharacters such as "$". 7847f074f9cSXin LI 7857f074f9cSXin LI* Fix bug when resizing the window while waiting for input from a pipe. 7867f074f9cSXin LI 7877f074f9cSXin LI* Fix configure bugs. 7887f074f9cSXin LI 7897f074f9cSXin LI====================================================================== 7907f074f9cSXin LI 7916dcb072bSXin LI Major changes between "less" versions 382 and 394 7926dcb072bSXin LI 7936dcb072bSXin LI* Add history file to save search and shell command history between 7946dcb072bSXin LI invocations of less. 7956dcb072bSXin LI 7966dcb072bSXin LI* Improve behavior of history list for search and shell commands. 7976dcb072bSXin LI 7986dcb072bSXin LI* Add -K (or --quit-on-intr) option to make less exit immediately on ctrl-C. 7996dcb072bSXin LI 8006dcb072bSXin LI* Improve handling of UTF-8 files and commands, including better 8016dcb072bSXin LI line wrapping and handling double-width chars. 8026dcb072bSXin LI 8036dcb072bSXin LI* Added LESSUTFBINFMT environment variable to control display of 8046dcb072bSXin LI non-printable characters in a UTF-8 file. 8056dcb072bSXin LI 8066dcb072bSXin LI* Add --with-secure option to configure, to make it easier to 8076dcb072bSXin LI build a secure version of less. 8086dcb072bSXin LI 8096dcb072bSXin LI* Show search matches in the status column even if search highlights 8106dcb072bSXin LI are disabled via the -G option or the ESC-u command. 8116dcb072bSXin LI 8126dcb072bSXin LI* Improve performance when the file contains very long lines. 8136dcb072bSXin LI 8146dcb072bSXin LI* Add "windows" charset. 8156dcb072bSXin LI 8166dcb072bSXin LI* Add man page for lessecho. 8176dcb072bSXin LI 8186dcb072bSXin LI* Add support for erase2 character, treated same as erase. 8196dcb072bSXin LI 8206dcb072bSXin LI* Use ASCII lowercase/uppercase logic when operating on the command line. 8216dcb072bSXin LI 8226dcb072bSXin LI* Update makefile for Borland C++ 5.5.1. 8236dcb072bSXin LI 8246dcb072bSXin LI* Fix bug in calculating number of pages for %D prompt. 8256dcb072bSXin LI 8266dcb072bSXin LI* Fix bug in handling tag file error. 8276dcb072bSXin LI 8286dcb072bSXin LI* Fix obscure bug if input file is deleted while viewing help. 8296dcb072bSXin LI 8306dcb072bSXin LI* Fix bug handling filenames which include square brackets. 8316dcb072bSXin LI 8326dcb072bSXin LI* Fix possible buffer overflow in "global" tag search. 8336dcb072bSXin LI 8346dcb072bSXin LI* Fix possible buffer overflow in usage of LESSOPEN and LESSCLOSE. 8356dcb072bSXin LI 8366dcb072bSXin LI* Fix buffer overflow in reverse search. 8376dcb072bSXin LI 8386dcb072bSXin LI====================================================================== 8396dcb072bSXin LI 8406dcb072bSXin LI Major changes between "less" versions 381 and 382 8416dcb072bSXin LI 8426dcb072bSXin LI* Removed some old copyrighted code. 8436dcb072bSXin LI This probably breaks OS/9 support. 8446dcb072bSXin LI 8456dcb072bSXin LI====================================================================== 8466dcb072bSXin LI 847000ba3e8STim J. Robbins Major changes between "less" versions 378 and 381 848000ba3e8STim J. Robbins 849000ba3e8STim J. Robbins* New -L option to disable LESSOPEN processing. 850000ba3e8STim J. Robbins 851000ba3e8STim J. Robbins* Further support for large (64 bit) file addressing. 852000ba3e8STim J. Robbins Large file support is now set up by the configure script. 853000ba3e8STim J. Robbins 854000ba3e8STim J. Robbins* Use autoconf 2.54. 855000ba3e8STim J. Robbins Replace configure.in, acconfig.h, defines.h.top with configure.ac. 856000ba3e8STim J. Robbins 857000ba3e8STim J. Robbins* Overstriking underscore with underscore is now bold or underlined 858000ba3e8STim J. Robbins depending on context. 859000ba3e8STim J. Robbins 860000ba3e8STim J. Robbins* Use only 7 spaces for line numbers in -N mode, if possible. 861000ba3e8STim J. Robbins 862000ba3e8STim J. Robbins* Fix some bugs in handling overstriking in UTF-8 files. 863000ba3e8STim J. Robbins 864000ba3e8STim J. Robbins* Fix some nroff issues in the man page. 865000ba3e8STim J. Robbins 866000ba3e8STim J. Robbins====================================================================== 867000ba3e8STim J. Robbins 868000ba3e8STim J. Robbins Major changes between "less" versions 376 and 378 869000ba3e8STim J. Robbins 870000ba3e8STim J. Robbins* Bug fixes: 871000ba3e8STim J. Robbins Default buffer space is now 64K as documented. 872000ba3e8STim J. Robbins Search highlighting works properly when used with -R. 873000ba3e8STim J. Robbins Windows version works properly when input file contains carriage returns. 874000ba3e8STim J. Robbins Clean up some compiler warnings. 875000ba3e8STim J. Robbins 876000ba3e8STim J. Robbins====================================================================== 877000ba3e8STim J. Robbins 878000ba3e8STim J. Robbins Major changes between "less" versions 358 and 376 879c9346414SPaul Saab 880c9346414SPaul Saab* -x option can now specify multiple variable-width tab stops. 881c9346414SPaul Saab 882c9346414SPaul Saab* -X option no longer disables keypad initialization. 883c9346414SPaul Saab New option --no-keypad disables keypad initialization. 884c9346414SPaul Saab 885c9346414SPaul Saab* New commands t and T step through multiple tag matches. 886c9346414SPaul Saab Added support for "global(1)" tags 887c9346414SPaul Saab (see http://www.gnu.org/software/global/global.html). 888c9346414SPaul Saab 889c9346414SPaul Saab* New prompt style set by option -Pw defines the message printed 890c9346414SPaul Saab while waiting for data in the F command. 891c9346414SPaul Saab 892c9346414SPaul Saab* System-wide lesskey file now defaults to sysless in etc directory 893c9346414SPaul Saab instead of .sysless in bin directory. 894c9346414SPaul Saab Use "configure --sysconfdir=..." to change it. 895c9346414SPaul Saab (For backwards compatibility, .sysless in bin is still recognized.) 896c9346414SPaul Saab 897c9346414SPaul Saab* Pressing RightArrow or LeftArrow while entering a number now shifts 898c9346414SPaul Saab the display N columns rather than editing the number itself. 899c9346414SPaul Saab 900c9346414SPaul Saab* Status column (enabled with -J) now shows search results. 901c9346414SPaul Saab 902c9346414SPaul Saab* Windows version sets window title. 903c9346414SPaul Saab 904c9346414SPaul Saab* Default LESSCHARSET for MS-DOS versions is now "dos". 905c9346414SPaul Saab 906000ba3e8STim J. Robbins* Searching works better with ANSI (SGR) escape sequences. 907000ba3e8STim J. Robbins ANSI color escape sequences are now supported in the MS-DOS (DJGPP) version. 908000ba3e8STim J. Robbins 909000ba3e8STim J. Robbins* Improved performance in reading very large pipes. 910c9346414SPaul Saab 911d713e089SXin LI* Eliminated some dependencies on file offsets being 32 bits. 912c9346414SPaul Saab 913c9346414SPaul Saab* Fixed problems when viewing files with very long lines. 914c9346414SPaul Saab 915c9346414SPaul Saab* Fixed overstriking in UTF-8 mode, and overstriking tabs. 916c9346414SPaul Saab 917c9346414SPaul Saab* Improved horizontal shifting of text using -R option with ANSI color. 918c9346414SPaul Saab 919000ba3e8STim J. Robbins* Improved handling of filenames containing shell metacharacters. 920000ba3e8STim J. Robbins 921c9346414SPaul Saab* Some fixes for EBCDIC systems. 922c9346414SPaul Saab 923c9346414SPaul Saab* Some fixes for OS/2 systems. 924c9346414SPaul Saab 925c9346414SPaul Saab====================================================================== 926c9346414SPaul Saab 9278ed69c6fSPaul Saab Major changes between "less" versions 354 and 358 9288ed69c6fSPaul Saab 9298ed69c6fSPaul Saab* Add -J (--status-column) option to display a status column. 9308ed69c6fSPaul Saab 9318ed69c6fSPaul Saab* Add -# (--shift) option to set default horizontal shift distance. 9328ed69c6fSPaul Saab Default horizontal shift distance is now one-half screen width. 9338ed69c6fSPaul Saab 9348ed69c6fSPaul Saab* Horizontal shifting does not shift line numbers if -N is in effect. 9358ed69c6fSPaul Saab 9368ed69c6fSPaul Saab* Horizontal shifting acts as though -S were set, to avoid confusion. 9378ed69c6fSPaul Saab 9388ed69c6fSPaul Saab====================================================================== 9398ed69c6fSPaul Saab 9408ed69c6fSPaul Saab 941a5f0fb15SPaul Saab Major changes between "less" versions 352 and 354 942a5f0fb15SPaul Saab 943a5f0fb15SPaul Saab* Allow space after numeric-valued command line options. 944a5f0fb15SPaul Saab 945a5f0fb15SPaul Saab* Fix problem with configuring terminal libraries on some systems. 946a5f0fb15SPaul Saab 947a5f0fb15SPaul Saab* Add support for PCRE regular expression library. 948a5f0fb15SPaul Saab 949a5f0fb15SPaul Saab* Add --with-regex option to configure to allow manually selecting 950a5f0fb15SPaul Saab a regular expression library. 951a5f0fb15SPaul Saab 952a5f0fb15SPaul Saab* Fix bug compiling with SECURE = 1. 953a5f0fb15SPaul Saab 954a5f0fb15SPaul Saab====================================================================== 955a5f0fb15SPaul Saab 956a5f0fb15SPaul Saab 957a5f0fb15SPaul Saab Major changes between "less" versions 346 and 352 958a5f0fb15SPaul Saab 959a5f0fb15SPaul Saab* Enable UTF-8 if "UTF-8" appears in locale-related environment variables. 960a5f0fb15SPaul Saab 961a5f0fb15SPaul Saab* Add --with-editor option to configure script. 962a5f0fb15SPaul Saab 963a5f0fb15SPaul Saab* The -M prompt and = message now show the top and bottom line number. 964a5f0fb15SPaul Saab 965a5f0fb15SPaul Saab* Fix bug in running the editor on a file whose name contains quotes, etc. 966a5f0fb15SPaul Saab 967a5f0fb15SPaul Saab* Fix bug in horizontal scrolling of long lines. 968a5f0fb15SPaul Saab 969a5f0fb15SPaul Saab* Fix bug in doing :d on a file which contains marks. 970a5f0fb15SPaul Saab 971a5f0fb15SPaul Saab* Fix bug causing cleared lines to sometimes be filled with standout, 972a5f0fb15SPaul Saab bold, underline, etc. on certain terminals. 973a5f0fb15SPaul Saab 974a5f0fb15SPaul Saab* Fixes for MS-DOS (DJGPP) version. 975a5f0fb15SPaul Saab 976a5f0fb15SPaul Saab====================================================================== 977a5f0fb15SPaul Saab 978a5f0fb15SPaul Saab 979a5f0fb15SPaul Saab Major changes between "less" versions 340 and 346 980a5f0fb15SPaul Saab 981a5f0fb15SPaul Saab* The UTF-8 character set is now supported. 982a5f0fb15SPaul Saab 983a5f0fb15SPaul Saab* The default character set is now latin1 rather than ascii. 984a5f0fb15SPaul Saab 985a5f0fb15SPaul Saab* New option -R (--RAW-CONTROL-CHARS) is like -r but handles 986a5f0fb15SPaul Saab long (wrapped) lines correctly, as long as the input contains only 987a5f0fb15SPaul Saab normal text and ANSI color escape sequences. 988a5f0fb15SPaul Saab 989a5f0fb15SPaul Saab* New option -F (--quit-if-one-screen) quits if the text fits on 990a5f0fb15SPaul Saab the first screen. 991a5f0fb15SPaul Saab 992a5f0fb15SPaul Saab* The -w option now highlights the target line of a g or p command. 993a5f0fb15SPaul Saab 994a5f0fb15SPaul Saab* A system-wide lesskey file is supported (LESSKEY_SYSTEM). 995a5f0fb15SPaul Saab 996a5f0fb15SPaul Saab* New escape for prompt strings: %c is replaced by column number. 997a5f0fb15SPaul Saab 998a5f0fb15SPaul Saab* New escape for prompt strings: %P is replaced by percentage into 999a5f0fb15SPaul Saab file, based on line number rather than byte offset. 1000a5f0fb15SPaul Saab 1001a5f0fb15SPaul Saab* HOME and END keys now jump to beginning of file or end of file. 1002a5f0fb15SPaul Saab 1003a5f0fb15SPaul Saab====================================================================== 1004a5f0fb15SPaul Saab 1005a5f0fb15SPaul Saab 1006a5f0fb15SPaul Saab Major changes between "less" versions 337 and 340 1007a5f0fb15SPaul Saab 1008a5f0fb15SPaul Saab* Command line options for less may now be given in either the old 1009a5f0fb15SPaul Saab single-letter form, or a new long name form (--option-name). 1010a5f0fb15SPaul Saab See the less man page or "less --help" for the list of long option names. 1011a5f0fb15SPaul Saab 1012a5f0fb15SPaul Saab* Command line options for lesskey may now be given in a new long name 1013a5f0fb15SPaul Saab form. See the lesskey man page for the list of long option names. 1014a5f0fb15SPaul Saab 1015a5f0fb15SPaul Saab* New command -- toggles an option using the long option name. 1016a5f0fb15SPaul Saab 1017a5f0fb15SPaul Saab* New command __ queries an option using the long option name. 1018a5f0fb15SPaul Saab 1019a5f0fb15SPaul Saab* The old -- command is renamed as -!. 1020a5f0fb15SPaul Saab 1021a5f0fb15SPaul Saab* If a ^P is entered between the dash and the option letter of the - 1022a5f0fb15SPaul Saab command, the message describing the new setting is suppressed. 1023a5f0fb15SPaul Saab 1024a5f0fb15SPaul Saab* Lesskey files may now contain \k escape sequences to represent the 1025a5f0fb15SPaul Saab "special" keys (arrows, PAGE-UP/PAGE-DOWN, HOME, END, INSERT, DELETE). 1026a5f0fb15SPaul Saab 1027a5f0fb15SPaul Saab* New command :d removes the current file from the list of files. 1028a5f0fb15SPaul Saab 1029a5f0fb15SPaul Saab* New option -~ (like -w before version 335) 1030a5f0fb15SPaul Saab suppresses tildes after end-of-file. 1031a5f0fb15SPaul Saab 1032a5f0fb15SPaul Saab* Less is now released under the GNU General Public License. 1033a5f0fb15SPaul Saab 1034a5f0fb15SPaul Saab====================================================================== 1035a5f0fb15SPaul Saab 1036a5f0fb15SPaul Saab 1037a5f0fb15SPaul Saab Major changes between "less" versions 335 and 337 1038a5f0fb15SPaul Saab 1039a5f0fb15SPaul Saab* Fixed bugs in "make install". 1040a5f0fb15SPaul Saab 1041a5f0fb15SPaul Saab====================================================================== 1042a5f0fb15SPaul Saab 1043a5f0fb15SPaul Saab 1044a5f0fb15SPaul Saab Major changes between "less" versions 332 and 335 1045a5f0fb15SPaul Saab 1046a5f0fb15SPaul Saab* The old -w flag (suppress tildes after end-of-file) has been removed. 1047a5f0fb15SPaul Saab 1048a5f0fb15SPaul Saab* New -w flag highlights the first new line after a forward-screen. 1049a5f0fb15SPaul Saab 1050a5f0fb15SPaul Saab* New -W flag highlights the first new line after any forward movement. 1051a5f0fb15SPaul Saab 1052a5f0fb15SPaul Saab* Window resize works even if LINES and/or COLUMNS environment 1053a5f0fb15SPaul Saab variables are incorrect. 1054a5f0fb15SPaul Saab 1055a5f0fb15SPaul Saab* New percent escapes for prompt strings: 1056a5f0fb15SPaul Saab %d is replaced by the page number, and 1057a5f0fb15SPaul Saab %D is replaced by the number of pages in the file. 1058a5f0fb15SPaul Saab 1059a5f0fb15SPaul Saab* Added charsets "iso8859" and "ebcdic". 1060a5f0fb15SPaul Saab 1061a5f0fb15SPaul Saab* In Windows version, uses HOMEDRIVE and HOMEPATH if HOME is not defined. 1062a5f0fb15SPaul Saab 1063a5f0fb15SPaul Saab* Fixed some bugs causing incorrect display on DOS/Windows. 1064a5f0fb15SPaul Saab 1065a5f0fb15SPaul Saab====================================================================== 1066a5f0fb15SPaul Saab 1067a5f0fb15SPaul Saab 1068a5f0fb15SPaul Saab Major changes between "less" versions 330 and 332 1069a5f0fb15SPaul Saab 1070a5f0fb15SPaul Saab* Filenames from the command line are entered into the command history, 1071a5f0fb15SPaul Saab so UPARROW/DOWNARROW can be used to retrieve them from the :e command. 1072a5f0fb15SPaul Saab 1073a5f0fb15SPaul Saab* Now works correctly on Windows when using a scrolling terminal 1074a5f0fb15SPaul Saab window (buffer larger than display window). 1075a5f0fb15SPaul Saab 1076a5f0fb15SPaul Saab* On Windows, now restores the console screen on exit. 1077a5f0fb15SPaul Saab Use -X to get the old behavior. 1078a5f0fb15SPaul Saab 1079a5f0fb15SPaul Saab* Fixed bug on Windows when CAPS-LOCK or NUM-LOCK is pressed. 1080a5f0fb15SPaul Saab 1081a5f0fb15SPaul Saab* Fixed bug on Windows when piping output of an interactive program. 1082a5f0fb15SPaul Saab 1083a5f0fb15SPaul Saab* Fixed bug in tags file processing when tags file has DOS-style 1084a5f0fb15SPaul Saab line terminators (CR/LF). 1085a5f0fb15SPaul Saab 1086a5f0fb15SPaul Saab* Fixed compilation problem on OS/2. 1087a5f0fb15SPaul Saab 1088a5f0fb15SPaul Saab====================================================================== 1089a5f0fb15SPaul Saab 1090a5f0fb15SPaul Saab 1091a5f0fb15SPaul Saab Major changes between "less" versions 321 and 330 1092a5f0fb15SPaul Saab 1093a5f0fb15SPaul Saab* Now supports filenames containing spaces (in double quotes). 1094a5f0fb15SPaul Saab New option -" can be used to change the quoting characters. 1095a5f0fb15SPaul Saab 1096a5f0fb15SPaul Saab* In filename completion, a slash is appended to a directory name. 1097a5f0fb15SPaul Saab If the environment variable LESSSEPARATOR is set, the value of 1098a5f0fb15SPaul Saab that variable, rather than a slash, is appended. 1099a5f0fb15SPaul Saab 1100a5f0fb15SPaul Saab* LeftArrow and RightArrow are same as ESC-[ and ESC-]. 1101a5f0fb15SPaul Saab 1102a5f0fb15SPaul Saab* Added commands ESC-( and ESC-), same as ESC-[ and ESC-]. 1103a5f0fb15SPaul Saab 1104a5f0fb15SPaul Saab* A "quit" command defined in a lesskey file may now have an "extra" 1105a5f0fb15SPaul Saab string, which is used to return an exit code from less when it quits. 1106a5f0fb15SPaul Saab 1107a5f0fb15SPaul Saab* New environment variables LESSMETACHARS and LESSMETAESCAPE provide 1108a5f0fb15SPaul Saab more control over how less interfaces to the shell. 1109a5f0fb15SPaul Saab 1110a5f0fb15SPaul Saab* Ported to Microsoft Visual C compiler for Windows. 1111a5f0fb15SPaul Saab 1112a5f0fb15SPaul Saab* Ported to DJGPP compiler for MS-DOS. 1113a5f0fb15SPaul Saab 1114a5f0fb15SPaul Saab* Bug fixes. 1115a5f0fb15SPaul Saab 1116a5f0fb15SPaul Saab====================================================================== 1117a5f0fb15SPaul Saab 1118a5f0fb15SPaul Saab 1119a5f0fb15SPaul Saab Major changes between "less" versions 291 and 321 1120a5f0fb15SPaul Saab 1121a5f0fb15SPaul Saab* Command line at bottom of screen now scrolls, so it can be longer 1122a5f0fb15SPaul Saab than the screen width. 1123a5f0fb15SPaul Saab 1124a5f0fb15SPaul Saab* New commands ESC-] and ESC-[ scroll the display horizontally. 1125a5f0fb15SPaul Saab 1126a5f0fb15SPaul Saab* New command ESC-SPACE scrolls forward a full screen, even if it 1127a5f0fb15SPaul Saab hits end-of-file. 1128a5f0fb15SPaul Saab 1129a5f0fb15SPaul Saab* Alternate modifiers for search commands: ^N is same as !, 1130a5f0fb15SPaul Saab ^F is same as @, and ^E is same as *. 1131a5f0fb15SPaul Saab 1132a5f0fb15SPaul Saab* New modifier for search commands: ^K means highlight the matches 1133a5f0fb15SPaul Saab currently on-screen, but don't move to the first match. 1134a5f0fb15SPaul Saab 1135a5f0fb15SPaul Saab* New modifier for search commands: ^R means don't use regular 1136a5f0fb15SPaul Saab expressions in the search. 1137a5f0fb15SPaul Saab 1138a5f0fb15SPaul Saab* Environment variable LESSKEY gives name of default lesskey file. 1139a5f0fb15SPaul Saab 1140a5f0fb15SPaul Saab* Environment variable LESSSECURE will force less to run in 1141a5f0fb15SPaul Saab "secure" mode. 1142a5f0fb15SPaul Saab 1143a5f0fb15SPaul Saab* Command line argument "--" signals that the rest of the arguments 1144a5f0fb15SPaul Saab are files (not option flags). 1145a5f0fb15SPaul Saab 1146a5f0fb15SPaul Saab* Help file (less.hlp) is no longer installed. Help text is now 1147a5f0fb15SPaul Saab embedded in the less executable itself. 1148a5f0fb15SPaul Saab 1149a5f0fb15SPaul Saab* Added -Ph to change the prompt for the help text. 1150a5f0fb15SPaul Saab Added -Ps to change the default short prompt (same as plain -P). 1151a5f0fb15SPaul Saab 1152a5f0fb15SPaul Saab* Ported to the Borland C compiler for MS-DOS. 1153a5f0fb15SPaul Saab 1154a5f0fb15SPaul Saab* Ported to Windows 95 & Windows NT. 1155a5f0fb15SPaul Saab 1156a5f0fb15SPaul Saab* Ported to OS-9. 1157a5f0fb15SPaul Saab 1158a5f0fb15SPaul Saab* Ported to GNU Hurd. 1159a5f0fb15SPaul Saab 1160a5f0fb15SPaul Saab====================================================================== 1161a5f0fb15SPaul Saab 1162a5f0fb15SPaul Saab 1163a5f0fb15SPaul Saab Major changes between "less" versions 290 and 291 1164a5f0fb15SPaul Saab 1165a5f0fb15SPaul Saab* Less environment variables can be specified in lesskey files. 1166a5f0fb15SPaul Saab 1167a5f0fb15SPaul Saab* Fixed MS-DOS build. 1168a5f0fb15SPaul Saab 1169a5f0fb15SPaul Saab====================================================================== 1170a5f0fb15SPaul Saab 1171a5f0fb15SPaul Saab 1172a5f0fb15SPaul Saab Major changes between "less" versions 278 and 290 1173a5f0fb15SPaul Saab 1174a5f0fb15SPaul Saab* Accepts GNU-style options "--help" and "--version". 1175a5f0fb15SPaul Saab 1176a5f0fb15SPaul Saab* OS/2 version looks for less.ini in $HOME before $INIT and $PATH. 1177a5f0fb15SPaul Saab 1178a5f0fb15SPaul Saab* Bug fixes 1179a5f0fb15SPaul Saab 1180a5f0fb15SPaul Saab====================================================================== 1181a5f0fb15SPaul Saab 1182a5f0fb15SPaul Saab 1183a5f0fb15SPaul Saab Major changes between "less" versions 252 and 278 1184a5f0fb15SPaul Saab 1185a5f0fb15SPaul Saab* A LESSOPEN preprocessor may now pipe the converted file data to less, 1186a5f0fb15SPaul Saab rather than writing it to a temporary file. 1187a5f0fb15SPaul Saab 1188a5f0fb15SPaul Saab* Search pattern highlighting has been fixed. It now highlights 1189a5f0fb15SPaul Saab reliably, even if a string is split across two screen lines, 1190a5f0fb15SPaul Saab contains TABs, etc. 1191a5f0fb15SPaul Saab 1192a5f0fb15SPaul Saab* The -F flag (which suppress search highlighting) has been changed 1193a5f0fb15SPaul Saab to -G. A new flag, -g, changes search highlighting to highlight 1194a5f0fb15SPaul Saab only the string found by the last search command, instead of all 1195a5f0fb15SPaul Saab strings which match the last search command. 1196a5f0fb15SPaul Saab 1197a5f0fb15SPaul Saab* New flag -I acts like -i, but ignores case even if the search 1198a5f0fb15SPaul Saab pattern contains uppercase letters. 1199a5f0fb15SPaul Saab 1200a5f0fb15SPaul Saab* Less now checks for the environment variable VISUAL before EDITOR. 1201a5f0fb15SPaul Saab 1202a5f0fb15SPaul Saab* Ported to OS/2. 1203a5f0fb15SPaul Saab 1204a5f0fb15SPaul Saab====================================================================== 1205a5f0fb15SPaul Saab 1206a5f0fb15SPaul Saab 1207a5f0fb15SPaul Saab Major changes between "less" versions 237 and 252 1208a5f0fb15SPaul Saab 1209a5f0fb15SPaul Saab* Changes in line-editing keys: 1210a5f0fb15SPaul Saab The literal key is now ^V or ^A rather than \ (backslash). 1211a5f0fb15SPaul Saab Filename completion commands (TAB and ^L) are disabled 1212a5f0fb15SPaul Saab when typing a search pattern. 1213a5f0fb15SPaul Saab 1214a5f0fb15SPaul Saab* Line-editing command keys can be redefined using lesskey. 1215a5f0fb15SPaul Saab 1216a5f0fb15SPaul Saab* Lesskey with no input file defaults to $HOME/.lesskey 1217a5f0fb15SPaul Saab rather than standard input. 1218a5f0fb15SPaul Saab 1219a5f0fb15SPaul Saab* New option -V displays version number of less. 1220a5f0fb15SPaul Saab 1221a5f0fb15SPaul Saab* New option -V displays version number of lesskey. 1222a5f0fb15SPaul Saab 1223a5f0fb15SPaul Saab* Help file less.hlp is now installed by default in /usr/local/share 1224a5f0fb15SPaul Saab rather than /usr/local/lib. 1225a5f0fb15SPaul Saab 1226a5f0fb15SPaul Saab 1227a5f0fb15SPaul Saab====================================================================== 1228a5f0fb15SPaul Saab 1229a5f0fb15SPaul Saab 1230a5f0fb15SPaul Saab Major changes between "less" versions 170 and 237 1231a5f0fb15SPaul Saab 1232a5f0fb15SPaul Saab* By popular demand, text which matches the current search pattern 1233a5f0fb15SPaul Saab is highlighted. New -F flag disables this feature. 1234a5f0fb15SPaul Saab 1235a5f0fb15SPaul Saab* Henry Spencer's regexp.c is now included, for systems which do not 1236a5f0fb15SPaul Saab have a regular expression library. 1237a5f0fb15SPaul Saab regexp.c is Copyright (c) 1986 by University of Toronto. 1238a5f0fb15SPaul Saab 1239a5f0fb15SPaul Saab* New line-editing keys, including command history (arrow keys) and 1240a5f0fb15SPaul Saab filename completion (TAB). 1241a5f0fb15SPaul Saab 1242a5f0fb15SPaul Saab* Input preprocessor allows modification of input files (e.g. uncompress) 1243a5f0fb15SPaul Saab via LESSOPEN/LESSCLOSE environment variables. 1244a5f0fb15SPaul Saab 1245a5f0fb15SPaul Saab* New -X flag disables sending termcap "ti" and "te" (initialize and 1246a5f0fb15SPaul Saab deinitialize) strings to the terminal. 1247a5f0fb15SPaul Saab 1248a5f0fb15SPaul Saab* Changing -i from within less now correctly affects a subsequent 1249a5f0fb15SPaul Saab repeated search. 1250a5f0fb15SPaul Saab 1251a5f0fb15SPaul Saab* Searching for underlined or overstruck text now works when the -u 1252a5f0fb15SPaul Saab flag is in effect, rather than the -i flag. 1253a5f0fb15SPaul Saab 1254a5f0fb15SPaul Saab* Use setlocale (LANG and LC_CTYPE environment variables) to determine 1255a5f0fb15SPaul Saab the character set if LESSCHARSET/LESSCHARDEF are not set. 1256a5f0fb15SPaul Saab 1257a5f0fb15SPaul Saab* The default format for displaying binary characters is now standout 1258a5f0fb15SPaul Saab (reverse video) rather than blinking. This can still be changed by 1259a5f0fb15SPaul Saab setting the LESSBINFMT environment variable. 1260a5f0fb15SPaul Saab 1261a5f0fb15SPaul Saab* Use autoconf installation technology. 1262a5f0fb15SPaul Saab 1263a5f0fb15SPaul Saab* Ported to MS-DOS. 1264a5f0fb15SPaul Saab 1265a5f0fb15SPaul Saab ******************************** 1266a5f0fb15SPaul Saab Things that may surprise you 1267a5f0fb15SPaul Saab ******************************** 1268a5f0fb15SPaul Saab 1269a5f0fb15SPaul Saab* When you enter text at the bottom of the screen (search string, 1270a5f0fb15SPaul Saab filename, etc.), some keys act different than previously. 1271a5f0fb15SPaul Saab Specifically, \ (backslash), ESC, TAB, BACKTAB, and control-L 1272a5f0fb15SPaul Saab now have line editing functions. 1273a5f0fb15SPaul Saab 1274a5f0fb15SPaul Saab* Some previous unofficial versions of less were able to display 1275a5f0fb15SPaul Saab compressed files. The new LESSOPEN/LESSCLOSE feature now provides 1276a5f0fb15SPaul Saab this functionality in a different way. 1277a5f0fb15SPaul Saab 1278a5f0fb15SPaul Saab* Some previous unofficial versions of less provided a -Z flag to 1279a5f0fb15SPaul Saab set the number of lines of text to retain between full screen scrolls. 1280a5f0fb15SPaul Saab The -z-n flag (that is, -z with a negative number) provides this 1281a5f0fb15SPaul Saab functionality. 1282a5f0fb15SPaul Saab 1283a5f0fb15SPaul Saab 1284a5f0fb15SPaul Saab====================================================================== 1285a5f0fb15SPaul Saab 1286a5f0fb15SPaul Saab 1287a5f0fb15SPaul Saab Major changes between "less" versions 123 and 170 1288a5f0fb15SPaul Saab 1289a5f0fb15SPaul Saab* New option -j allows target lines to be positioned anywhere on screen. 1290a5f0fb15SPaul Saab 1291a5f0fb15SPaul Saab* New option -S truncates displayed line at the screen width, 1292a5f0fb15SPaul Saab rather than wrapping onto the next line. 1293a5f0fb15SPaul Saab 1294a5f0fb15SPaul Saab* New option -y limits amount of forward scroll. 1295a5f0fb15SPaul Saab 1296a5f0fb15SPaul Saab* New option -T specifies a "tags" file. 1297a5f0fb15SPaul Saab 1298a5f0fb15SPaul Saab* Non-printable, non-control characters are displayed in octal. 1299a5f0fb15SPaul Saab Such characters, as well as control characters, are displayed 1300a5f0fb15SPaul Saab in blinking mode. 1301a5f0fb15SPaul Saab 1302a5f0fb15SPaul Saab* New command -+ sets an option to its default. 1303a5f0fb15SPaul Saab* New command -- sets an option to the opposite of its default. 1304a5f0fb15SPaul Saab 1305a5f0fb15SPaul Saab* Lesskey file may have a string appended to a key's action, 1306a5f0fb15SPaul Saab which acts as though typed in after the command. 1307a5f0fb15SPaul Saab 1308a5f0fb15SPaul Saab* New commands ESC-^F and ESC-^B match arbitrary types of brackets. 1309a5f0fb15SPaul Saab 1310a5f0fb15SPaul Saab* New command F monitors a growing file (like "tail -f"). 1311a5f0fb15SPaul Saab 1312a5f0fb15SPaul Saab* New command | pipes a section of the input file into a shell command. 1313a5f0fb15SPaul Saab 1314a5f0fb15SPaul Saab* New command :x directly jumps to a file in the command line list. 1315a5f0fb15SPaul Saab 1316a5f0fb15SPaul Saab* Search commands have been enhanced and reorganized: 1317a5f0fb15SPaul Saab n Repeat search, same direction. 1318a5f0fb15SPaul Saab N Repeat search, opposite direction. 1319a5f0fb15SPaul Saab ESC-/ Search forward thru file boundaries 1320a5f0fb15SPaul Saab ESC-? Search backward thru file boundaries 1321a5f0fb15SPaul Saab ESC-n Repeat search thru file boundaries, same direction. 1322a5f0fb15SPaul Saab ESC-N Repeat search thru file boundaries, opposite direction. 1323a5f0fb15SPaul Saab Special character * causes search to search thru file boundaries. 1324a5f0fb15SPaul Saab Special character @ causes search to begin at start/end of file list. 1325a5f0fb15SPaul Saab 1326a5f0fb15SPaul Saab* Examining a new file adds it to the command line list. 1327a5f0fb15SPaul Saab A list of files, or an expression which matches more than one file, 1328a5f0fb15SPaul Saab may be examined; all of them are added to the command line list. 1329a5f0fb15SPaul Saab 1330a5f0fb15SPaul Saab* Environment variables LESSCHARSET and LESSCHARDEF can define 1331a5f0fb15SPaul Saab a non-ASCII character set. 1332a5f0fb15SPaul Saab 1333a5f0fb15SPaul Saab* Partial support for MSDOS, including options -R for repainting screen 1334a5f0fb15SPaul Saab on quit, -v/-V to select video mode, and -W to change window size. 1335a5f0fb15SPaul Saab 1336a5f0fb15SPaul Saab 1337a5f0fb15SPaul Saab====================================================================== 1338a5f0fb15SPaul Saab 1339a5f0fb15SPaul Saab 1340a5f0fb15SPaul Saab Major changes between "less" versions 97 and 123 1341a5f0fb15SPaul Saab 1342a5f0fb15SPaul Saab* New option (-N) causes line numbers to be displayed in the 1343a5f0fb15SPaul Saab text of the file (like vi "set nu"). 1344a5f0fb15SPaul Saab 1345a5f0fb15SPaul Saab* New option (-?) prints help message immediately. 1346a5f0fb15SPaul Saab 1347a5f0fb15SPaul Saab* New option (-r) displays "raw" control characters, without 1348a5f0fb15SPaul Saab mapping them to ^X notation. 1349a5f0fb15SPaul Saab 1350a5f0fb15SPaul Saab* New option (-f) forces less to open non-regular files 1351a5f0fb15SPaul Saab (directories, etc). 1352a5f0fb15SPaul Saab 1353a5f0fb15SPaul Saab* New option (-k) can be used to specify lesskey files by name. 1354a5f0fb15SPaul Saab 1355a5f0fb15SPaul Saab* New option (-y) can be used to set a forward scroll limit 1356a5f0fb15SPaul Saab (like -h sets a backward scroll limit). 1357a5f0fb15SPaul Saab 1358a5f0fb15SPaul Saab* File marks (set by the m command) are now preserved when a new 1359a5f0fb15SPaul Saab file is edited. The ' command can thus be used to switch files. 1360a5f0fb15SPaul Saab 1361a5f0fb15SPaul Saab* New command ESC-/ searches all files (on the command line) 1362a5f0fb15SPaul Saab for a pattern. 1363a5f0fb15SPaul Saab 1364a5f0fb15SPaul Saab* New command ESC-n repeats previous search, spanning files. 1365a5f0fb15SPaul Saab 1366a5f0fb15SPaul Saab* The N command has been changed to repeat the previous search 1367a5f0fb15SPaul Saab in the reverse direction. The old N command is still available 1368a5f0fb15SPaul Saab via :n. 1369a5f0fb15SPaul Saab 1370a5f0fb15SPaul Saab* New command ESC-N repeats previous search in the reverse 1371a5f0fb15SPaul Saab direction and spanning files. 1372a5f0fb15SPaul Saab 1373a5f0fb15SPaul Saab* 8 bit characters are now supported. A new option (-g) can be 1374a5f0fb15SPaul Saab used to strip off the eighth bit (the previous behavior). 1375a5f0fb15SPaul Saab 1376a5f0fb15SPaul Saab* Options which take a following string (like -t) may now 1377a5f0fb15SPaul Saab optionally have a space between the option letter and the string. 1378a5f0fb15SPaul Saab 1379a5f0fb15SPaul Saab* Six new commands { } ( ) [ and ] can be used to match 1380a5f0fb15SPaul Saab brackets of specific types, similar to vi % command. 1381a5f0fb15SPaul Saab 1382a5f0fb15SPaul Saab* New commands z and w move forward/backward one window and 1383a5f0fb15SPaul Saab simultaneously set the window size. 1384a5f0fb15SPaul Saab 1385a5f0fb15SPaul Saab* Prompt string expansion now has %L for line number of the last 1386a5f0fb15SPaul Saab line in the file, and %E for the name of the editor. 1387a5f0fb15SPaul Saab Also, % escapes which refer to a line (b=bottom, t=top, etc.) 1388a5f0fb15SPaul Saab can use j for the jump target line. 1389a5f0fb15SPaul Saab 1390a5f0fb15SPaul Saab* New environment variable LESSEDIT can be used to tailor the 1391a5f0fb15SPaul Saab command string passed to the editor by the v command. 1392a5f0fb15SPaul Saab 1393a5f0fb15SPaul Saab* Examining a file which was previously examined will return 1394a5f0fb15SPaul Saab to the same position in the file. 1395a5f0fb15SPaul Saab 1396a5f0fb15SPaul Saab* A "%" is expanded to the current filename and a "#" to the 1397a5f0fb15SPaul Saab previous filename, in both shell commands and the E command. 1398a5f0fb15SPaul Saab (Previously % worked only in shell commands and # worked 1399a5f0fb15SPaul Saab only in the E command.) 1400a5f0fb15SPaul Saab 1401a5f0fb15SPaul Saab* New command ":ta" is equivalent to "-t". 1402a5f0fb15SPaul Saab 1403a5f0fb15SPaul Saab* New command "s" is equivalent to "-l". 1404a5f0fb15SPaul Saab 1405a5f0fb15SPaul Saab* The - command may be followed by "+X" to revert to the default 1406a5f0fb15SPaul Saab for option X, or "-X" to get the opposite of the default. 1407a5f0fb15SPaul Saab 1408a5f0fb15SPaul Saab* Lesskey files may now include characters after the action as 1409a5f0fb15SPaul Saab extra input to be parsed after the action; for example: 1410a5f0fb15SPaul Saab "toggle-option X" to toggle a specific option X. 14117f074f9cSXin LI 14127f074f9cSXin LI 14137f074f9cSXin LI 1414f78327b5SXin LI 1415464501a8SXin LI 1416