NEWS revision 161475
160786Sps 260786Sps NEWS about less 360786Sps 460786Sps====================================================================== 560786Sps 660786Sps For the latest news about less, see the "less" Web page: 789019Sps http://www.greenwoodsoftware.com/less 860786Sps You can also download the latest version of less from there. 960786Sps 10161475Sdelphij To report bugs, suggestions or comments, send email to bug-less@gnu.org. 1160786Sps 1260786Sps====================================================================== 1360786Sps 1460786Sps 15161475Sdelphij Major changes between "less" versions 382 and 394 16161475Sdelphij 17161475Sdelphij* Add history file to save search and shell command history between 18161475Sdelphij invocations of less. 19161475Sdelphij 20161475Sdelphij* Improve behavior of history list for search and shell commands. 21161475Sdelphij 22161475Sdelphij* Add -K (or --quit-on-intr) option to make less exit immediately on ctrl-C. 23161475Sdelphij 24161475Sdelphij* Improve handling of UTF-8 files and commands, including better 25161475Sdelphij line wrapping and handling double-width chars. 26161475Sdelphij 27161475Sdelphij* Added LESSUTFBINFMT environment variable to control display of 28161475Sdelphij non-printable characters in a UTF-8 file. 29161475Sdelphij 30161475Sdelphij* Add --with-secure option to configure, to make it easier to 31161475Sdelphij build a secure version of less. 32161475Sdelphij 33161475Sdelphij* Show search matches in the status column even if search highlights 34161475Sdelphij are disabled via the -G option or the ESC-u command. 35161475Sdelphij 36161475Sdelphij* Improve performance when the file contains very long lines. 37161475Sdelphij 38161475Sdelphij* Add "windows" charset. 39161475Sdelphij 40161475Sdelphij* Add man page for lessecho. 41161475Sdelphij 42161475Sdelphij* Add support for erase2 character, treated same as erase. 43161475Sdelphij 44161475Sdelphij* Use ASCII lowercase/uppercase logic when operating on the command line. 45161475Sdelphij 46161475Sdelphij* Update makefile for Borland C++ 5.5.1. 47161475Sdelphij 48161475Sdelphij* Fix bug in calculating number of pages for %D prompt. 49161475Sdelphij 50161475Sdelphij* Fix bug in handling tag file error. 51161475Sdelphij 52161475Sdelphij* Fix obscure bug if input file is deleted while viewing help. 53161475Sdelphij 54161475Sdelphij* Fix bug handling filenames which include square brackets. 55161475Sdelphij 56161475Sdelphij* Fix possible buffer overflow in "global" tag search. 57161475Sdelphij 58161475Sdelphij* Fix possible buffer overflow in usage of LESSOPEN and LESSCLOSE. 59161475Sdelphij 60161475Sdelphij* Fix buffer overflow in reverse search. 61161475Sdelphij 62161475Sdelphij====================================================================== 63161475Sdelphij 64161475Sdelphij Major changes between "less" versions 381 and 382 65161475Sdelphij 66161475Sdelphij* Removed some old copyrighted code. 67161475Sdelphij This probably breaks OS/9 support. 68161475Sdelphij 69161475Sdelphij====================================================================== 70161475Sdelphij 71128345Stjr Major changes between "less" versions 378 and 381 7289019Sps 73128345Stjr* New -L option to disable LESSOPEN processing. 74128345Stjr 75128345Stjr* Further support for large (64 bit) file addressing. 76128345Stjr Large file support is now set up by the configure script. 77128345Stjr 78128345Stjr* Use autoconf 2.54. 79128345Stjr Replace configure.in, acconfig.h, defines.h.top with configure.ac. 80128345Stjr 81128345Stjr* Overstriking underscore with underscore is now bold or underlined 82128345Stjr depending on context. 83128345Stjr 84128345Stjr* Use only 7 spaces for line numbers in -N mode, if possible. 85128345Stjr 86128345Stjr* Fix some bugs in handling overstriking in UTF-8 files. 87128345Stjr 88128345Stjr* Fix some nroff issues in the man page. 89128345Stjr 90128345Stjr====================================================================== 91128345Stjr 92128345Stjr Major changes between "less" versions 376 and 378 93128345Stjr 94128345Stjr* Bug fixes: 95128345Stjr Default buffer space is now 64K as documented. 96128345Stjr Search highlighting works properly when used with -R. 97128345Stjr Windows version works properly when input file contains carriage returns. 98128345Stjr Clean up some compiler warnings. 99128345Stjr 100128345Stjr====================================================================== 101128345Stjr 102128345Stjr Major changes between "less" versions 358 and 376 103128345Stjr 10489019Sps* -x option can now specify multiple variable-width tab stops. 10589019Sps 10689019Sps* -X option no longer disables keypad initialization. 10789019Sps New option --no-keypad disables keypad initialization. 10889019Sps 10989019Sps* New commands t and T step through multiple tag matches. 11089019Sps Added support for "global(1)" tags 11189019Sps (see http://www.gnu.org/software/global/global.html). 11289019Sps 11389019Sps* New prompt style set by option -Pw defines the message printed 11489019Sps while waiting for data in the F command. 11589019Sps 11689019Sps* System-wide lesskey file now defaults to sysless in etc directory 11789019Sps instead of .sysless in bin directory. 11889019Sps Use "configure --sysconfdir=..." to change it. 11989019Sps (For backwards compatibility, .sysless in bin is still recognized.) 12089019Sps 12189019Sps* Pressing RightArrow or LeftArrow while entering a number now shifts 12289019Sps the display N columns rather than editing the number itself. 12389019Sps 12489019Sps* Status column (enabled with -J) now shows search results. 12589019Sps 12689019Sps* Windows version sets window title. 12789019Sps 12889019Sps* Default LESSCHARSET for MS-DOS versions is now "dos". 12989019Sps 130128345Stjr* Searching works better with ANSI (SGR) escape sequences. 131128345Stjr ANSI color escape sequences are now supported in the MS-DOS (DJGPP) version. 13289019Sps 133128345Stjr* Improved performance in reading very large pipes. 134128345Stjr 13589019Sps* Eliminated some dependencies on file offets being 32 bits. 13689019Sps 13789019Sps* Fixed problems when viewing files with very long lines. 13889019Sps 13989019Sps* Fixed overstriking in UTF-8 mode, and overstriking tabs. 14089019Sps 14189019Sps* Improved horizontal shifting of text using -R option with ANSI color. 14289019Sps 143128345Stjr* Improved handling of filenames containing shell metacharacters. 144128345Stjr 14589019Sps* Some fixes for EBCDIC systems. 14689019Sps 14789019Sps* Some fixes for OS/2 systems. 14889019Sps 14989019Sps====================================================================== 15089019Sps 15163128Sps Major changes between "less" versions 354 and 358 15263128Sps 15363128Sps* Add -J (--status-column) option to display a status column. 15463128Sps 15563128Sps* Add -# (--shift) option to set default horizontal shift distance. 15663128Sps Default horizontal shift distance is now one-half screen width. 15763128Sps 15863128Sps* Horizontal shifting does not shift line numbers if -N is in effect. 15963128Sps 16063128Sps* Horizontal shifting acts as though -S were set, to avoid confusion. 16163128Sps 16263128Sps====================================================================== 16363128Sps 16463128Sps 16560786Sps Major changes between "less" versions 352 and 354 16660786Sps 16760786Sps* Allow space after numeric-valued command line options. 16860786Sps 16960786Sps* Fix problem with configuring terminal libraries on some systems. 17060786Sps 17160786Sps* Add support for PCRE regular expression library. 17260786Sps 17360786Sps* Add --with-regex option to configure to allow manually selecting 17460786Sps a regular expression library. 17560786Sps 17660786Sps* Fix bug compiling with SECURE = 1. 17760786Sps 17860786Sps====================================================================== 17960786Sps 18060786Sps 18160786Sps Major changes between "less" versions 346 and 352 18260786Sps 18360786Sps* Enable UTF-8 if "UTF-8" appears in locale-related environment variables. 18460786Sps 18560786Sps* Add --with-editor option to configure script. 18660786Sps 18760786Sps* The -M prompt and = message now show the top and bottom line number. 18860786Sps 18960786Sps* Fix bug in running the editor on a file whose name contains quotes, etc. 19060786Sps 19160786Sps* Fix bug in horizontal scrolling of long lines. 19260786Sps 19360786Sps* Fix bug in doing :d on a file which contains marks. 19460786Sps 19560786Sps* Fix bug causing cleared lines to sometimes be filled with standout, 19660786Sps bold, underline, etc. on certain terminals. 19760786Sps 19860786Sps* Fixes for MS-DOS (DJGPP) version. 19960786Sps 20060786Sps====================================================================== 20160786Sps 20260786Sps 20360786Sps Major changes between "less" versions 340 and 346 20460786Sps 20560786Sps* The UTF-8 character set is now supported. 20660786Sps 20760786Sps* The default character set is now latin1 rather than ascii. 20860786Sps 20960786Sps* New option -R (--RAW-CONTROL-CHARS) is like -r but handles 21060786Sps long (wrapped) lines correctly, as long as the input contains only 21160786Sps normal text and ANSI color escape sequences. 21260786Sps 21360786Sps* New option -F (--quit-if-one-screen) quits if the text fits on 21460786Sps the first screen. 21560786Sps 21660786Sps* The -w option now highlights the target line of a g or p command. 21760786Sps 21860786Sps* A system-wide lesskey file is supported (LESSKEY_SYSTEM). 21960786Sps 22060786Sps* New escape for prompt strings: %c is replaced by column number. 22160786Sps 22260786Sps* New escape for prompt strings: %P is replaced by percentage into 22360786Sps file, based on line number rather than byte offset. 22460786Sps 22560786Sps* HOME and END keys now jump to beginning of file or end of file. 22660786Sps 22760786Sps====================================================================== 22860786Sps 22960786Sps 23060786Sps Major changes between "less" versions 337 and 340 23160786Sps 23260786Sps* Command line options for less may now be given in either the old 23360786Sps single-letter form, or a new long name form (--option-name). 23460786Sps See the less man page or "less --help" for the list of long option names. 23560786Sps 23660786Sps* Command line options for lesskey may now be given in a new long name 23760786Sps form. See the lesskey man page for the list of long option names. 23860786Sps 23960786Sps* New command -- toggles an option using the long option name. 24060786Sps 24160786Sps* New command __ queries an option using the long option name. 24260786Sps 24360786Sps* The old -- command is renamed as -!. 24460786Sps 24560786Sps* If a ^P is entered between the dash and the option letter of the - 24660786Sps command, the message describing the new setting is suppressed. 24760786Sps 24860786Sps* Lesskey files may now contain \k escape sequences to represent the 24960786Sps "special" keys (arrows, PAGE-UP/PAGE-DOWN, HOME, END, INSERT, DELETE). 25060786Sps 25160786Sps* New command :d removes the current file from the list of files. 25260786Sps 25360786Sps* New option -~ (like -w before version 335) 25460786Sps suppresses tildes after end-of-file. 25560786Sps 25660786Sps* Less is now released under the GNU General Public License. 25760786Sps 25860786Sps====================================================================== 25960786Sps 26060786Sps 26160786Sps Major changes between "less" versions 335 and 337 26260786Sps 26360786Sps* Fixed bugs in "make install". 26460786Sps 26560786Sps====================================================================== 26660786Sps 26760786Sps 26860786Sps Major changes between "less" versions 332 and 335 26960786Sps 27060786Sps* The old -w flag (suppress tildes after end-of-file) has been removed. 27160786Sps 27260786Sps* New -w flag highlights the first new line after a forward-screen. 27360786Sps 27460786Sps* New -W flag highlights the first new line after any forward movement. 27560786Sps 27660786Sps* Window resize works even if LINES and/or COLUMNS environment 27760786Sps variables are incorrect. 27860786Sps 27960786Sps* New percent escapes for prompt strings: 28060786Sps %d is replaced by the page number, and 28160786Sps %D is replaced by the number of pages in the file. 28260786Sps 28360786Sps* Added charsets "iso8859" and "ebcdic". 28460786Sps 28560786Sps* In Windows version, uses HOMEDRIVE and HOMEPATH if HOME is not defined. 28660786Sps 28760786Sps* Fixed some bugs causing incorrect display on DOS/Windows. 28860786Sps 28960786Sps====================================================================== 29060786Sps 29160786Sps 29260786Sps Major changes between "less" versions 330 and 332 29360786Sps 29460786Sps* Filenames from the command line are entered into the command history, 29560786Sps so UPARROW/DOWNARROW can be used to retrieve them from the :e command. 29660786Sps 29760786Sps* Now works correctly on Windows when using a scrolling terminal 29860786Sps window (buffer larger than display window). 29960786Sps 30060786Sps* On Windows, now restores the console screen on exit. 30160786Sps Use -X to get the old behavior. 30260786Sps 30360786Sps* Fixed bug on Windows when CAPS-LOCK or NUM-LOCK is pressed. 30460786Sps 30560786Sps* Fixed bug on Windows when piping output of an interactive program. 30660786Sps 30760786Sps* Fixed bug in tags file processing when tags file has DOS-style 30860786Sps line terminators (CR/LF). 30960786Sps 31060786Sps* Fixed compilation problem on OS/2. 31160786Sps 31260786Sps====================================================================== 31360786Sps 31460786Sps 31560786Sps Major changes between "less" versions 321 and 330 31660786Sps 31760786Sps* Now supports filenames containing spaces (in double quotes). 31860786Sps New option -" can be used to change the quoting characters. 31960786Sps 32060786Sps* In filename completion, a slash is appended to a directory name. 32160786Sps If the environment variable LESSSEPARATOR is set, the value of 32260786Sps that variable, rather than a slash, is appended. 32360786Sps 32460786Sps* LeftArrow and RightArrow are same as ESC-[ and ESC-]. 32560786Sps 32660786Sps* Added commands ESC-( and ESC-), same as ESC-[ and ESC-]. 32760786Sps 32860786Sps* A "quit" command defined in a lesskey file may now have an "extra" 32960786Sps string, which is used to return an exit code from less when it quits. 33060786Sps 33160786Sps* New environment variables LESSMETACHARS and LESSMETAESCAPE provide 33260786Sps more control over how less interfaces to the shell. 33360786Sps 33460786Sps* Ported to Microsoft Visual C compiler for Windows. 33560786Sps 33660786Sps* Ported to DJGPP compiler for MS-DOS. 33760786Sps 33860786Sps* Bug fixes. 33960786Sps 34060786Sps====================================================================== 34160786Sps 34260786Sps 34360786Sps Major changes between "less" versions 291 and 321 34460786Sps 34560786Sps* Command line at bottom of screen now scrolls, so it can be longer 34660786Sps than the screen width. 34760786Sps 34860786Sps* New commands ESC-] and ESC-[ scroll the display horizontally. 34960786Sps 35060786Sps* New command ESC-SPACE scrolls forward a full screen, even if it 35160786Sps hits end-of-file. 35260786Sps 35360786Sps* Alternate modifiers for search commands: ^N is same as !, 35460786Sps ^F is same as @, and ^E is same as *. 35560786Sps 35660786Sps* New modifier for search commands: ^K means highlight the matches 35760786Sps currently on-screen, but don't move to the first match. 35860786Sps 35960786Sps* New modifier for search commands: ^R means don't use regular 36060786Sps expressions in the search. 36160786Sps 36260786Sps* Environment variable LESSKEY gives name of default lesskey file. 36360786Sps 36460786Sps* Environment variable LESSSECURE will force less to run in 36560786Sps "secure" mode. 36660786Sps 36760786Sps* Command line argument "--" signals that the rest of the arguments 36860786Sps are files (not option flags). 36960786Sps 37060786Sps* Help file (less.hlp) is no longer installed. Help text is now 37160786Sps embedded in the less executable itself. 37260786Sps 37360786Sps* Added -Ph to change the prompt for the help text. 37460786Sps Added -Ps to change the default short prompt (same as plain -P). 37560786Sps 37660786Sps* Ported to the Borland C compiler for MS-DOS. 37760786Sps 37860786Sps* Ported to Windows 95 & Windows NT. 37960786Sps 38060786Sps* Ported to OS-9. 38160786Sps 38260786Sps* Ported to GNU Hurd. 38360786Sps 38460786Sps====================================================================== 38560786Sps 38660786Sps 38760786Sps Major changes between "less" versions 290 and 291 38860786Sps 38960786Sps* Less environment variables can be specified in lesskey files. 39060786Sps 39160786Sps* Fixed MS-DOS build. 39260786Sps 39360786Sps====================================================================== 39460786Sps 39560786Sps 39660786Sps Major changes between "less" versions 278 and 290 39760786Sps 39860786Sps* Accepts GNU-style options "--help" and "--version". 39960786Sps 40060786Sps* OS/2 version looks for less.ini in $HOME before $INIT and $PATH. 40160786Sps 40260786Sps* Bug fixes 40360786Sps 40460786Sps====================================================================== 40560786Sps 40660786Sps 40760786Sps Major changes between "less" versions 252 and 278 40860786Sps 40960786Sps* A LESSOPEN preprocessor may now pipe the converted file data to less, 41060786Sps rather than writing it to a temporary file. 41160786Sps 41260786Sps* Search pattern highlighting has been fixed. It now highlights 41360786Sps reliably, even if a string is split across two screen lines, 41460786Sps contains TABs, etc. 41560786Sps 41660786Sps* The -F flag (which suppress search highlighting) has been changed 41760786Sps to -G. A new flag, -g, changes search highlighting to highlight 41860786Sps only the string found by the last search command, instead of all 41960786Sps strings which match the last search command. 42060786Sps 42160786Sps* New flag -I acts like -i, but ignores case even if the search 42260786Sps pattern contains uppercase letters. 42360786Sps 42460786Sps* Less now checks for the environment variable VISUAL before EDITOR. 42560786Sps 42660786Sps* Ported to OS/2. 42760786Sps 42860786Sps====================================================================== 42960786Sps 43060786Sps 43160786Sps Major changes between "less" versions 237 and 252 43260786Sps 43360786Sps* Changes in line-editing keys: 43460786Sps The literal key is now ^V or ^A rather than \ (backslash). 43560786Sps Filename completion commands (TAB and ^L) are disabled 43660786Sps when typing a search pattern. 43760786Sps 43860786Sps* Line-editing command keys can be redefined using lesskey. 43960786Sps 44060786Sps* Lesskey with no input file defaults to $HOME/.lesskey 44160786Sps rather than standard input. 44260786Sps 44360786Sps* New option -V displays version number of less. 44460786Sps 44560786Sps* New option -V displays version number of lesskey. 44660786Sps 44760786Sps* Help file less.hlp is now installed by default in /usr/local/share 44860786Sps rather than /usr/local/lib. 44960786Sps 45060786Sps 45160786Sps====================================================================== 45260786Sps 45360786Sps 45460786Sps Major changes between "less" versions 170 and 237 45560786Sps 45660786Sps* By popular demand, text which matches the current search pattern 45760786Sps is highlighted. New -F flag disables this feature. 45860786Sps 45960786Sps* Henry Spencer's regexp.c is now included, for systems which do not 46060786Sps have a regular expression library. 46160786Sps regexp.c is Copyright (c) 1986 by University of Toronto. 46260786Sps 46360786Sps* New line-editing keys, including command history (arrow keys) and 46460786Sps filename completion (TAB). 46560786Sps 46660786Sps* Input preprocessor allows modification of input files (e.g. uncompress) 46760786Sps via LESSOPEN/LESSCLOSE environment variables. 46860786Sps 46960786Sps* New -X flag disables sending termcap "ti" and "te" (initialize and 47060786Sps deinitialize) strings to the terminal. 47160786Sps 47260786Sps* Changing -i from within less now correctly affects a subsequent 47360786Sps repeated search. 47460786Sps 47560786Sps* Searching for underlined or overstruck text now works when the -u 47660786Sps flag is in effect, rather than the -i flag. 47760786Sps 47860786Sps* Use setlocale (LANG and LC_CTYPE environment variables) to determine 47960786Sps the character set if LESSCHARSET/LESSCHARDEF are not set. 48060786Sps 48160786Sps* The default format for displaying binary characters is now standout 48260786Sps (reverse video) rather than blinking. This can still be changed by 48360786Sps setting the LESSBINFMT environment variable. 48460786Sps 48560786Sps* Use autoconf installation technology. 48660786Sps 48760786Sps* Ported to MS-DOS. 48860786Sps 48960786Sps ******************************** 49060786Sps Things that may surprise you 49160786Sps ******************************** 49260786Sps 49360786Sps* When you enter text at the bottom of the screen (search string, 49460786Sps filename, etc.), some keys act different than previously. 49560786Sps Specifically, \ (backslash), ESC, TAB, BACKTAB, and control-L 49660786Sps now have line editing functions. 49760786Sps 49860786Sps* Some previous unofficial versions of less were able to display 49960786Sps compressed files. The new LESSOPEN/LESSCLOSE feature now provides 50060786Sps this functionality in a different way. 50160786Sps 50260786Sps* Some previous unofficial versions of less provided a -Z flag to 50360786Sps set the number of lines of text to retain between full screen scrolls. 50460786Sps The -z-n flag (that is, -z with a negative number) provides this 50560786Sps functionality. 50660786Sps 50760786Sps 50860786Sps====================================================================== 50960786Sps 51060786Sps 51160786Sps Major changes between "less" versions 123 and 170 51260786Sps 51360786Sps* New option -j allows target lines to be positioned anywhere on screen. 51460786Sps 51560786Sps* New option -S truncates displayed line at the screen width, 51660786Sps rather than wrapping onto the next line. 51760786Sps 51860786Sps* New option -y limits amount of forward scroll. 51960786Sps 52060786Sps* New option -T specifies a "tags" file. 52160786Sps 52260786Sps* Non-printable, non-control characters are displayed in octal. 52360786Sps Such characters, as well as control characters, are displayed 52460786Sps in blinking mode. 52560786Sps 52660786Sps* New command -+ sets an option to its default. 52760786Sps* New command -- sets an option to the opposite of its default. 52860786Sps 52960786Sps* Lesskey file may have a string appended to a key's action, 53060786Sps which acts as though typed in after the command. 53160786Sps 53260786Sps* New commands ESC-^F and ESC-^B match arbitrary types of brackets. 53360786Sps 53460786Sps* New command F monitors a growing file (like "tail -f"). 53560786Sps 53660786Sps* New command | pipes a section of the input file into a shell command. 53760786Sps 53860786Sps* New command :x directly jumps to a file in the command line list. 53960786Sps 54060786Sps* Search commands have been enhanced and reorganized: 54160786Sps n Repeat search, same direction. 54260786Sps N Repeat search, opposite direction. 54360786Sps ESC-/ Search forward thru file boundaries 54460786Sps ESC-? Search backward thru file boundaries 54560786Sps ESC-n Repeat search thru file boundaries, same direction. 54660786Sps ESC-N Repeat search thru file boundaries, opposite direction. 54760786Sps Special character * causes search to search thru file boundaries. 54860786Sps Special character @ causes search to begin at start/end of file list. 54960786Sps 55060786Sps* Examining a new file adds it to the command line list. 55160786Sps A list of files, or an expression which matches more than one file, 55260786Sps may be examined; all of them are added to the command line list. 55360786Sps 55460786Sps* Environment variables LESSCHARSET and LESSCHARDEF can define 55560786Sps a non-ASCII character set. 55660786Sps 55760786Sps* Partial support for MSDOS, including options -R for repainting screen 55860786Sps on quit, -v/-V to select video mode, and -W to change window size. 55960786Sps 56060786Sps 56160786Sps====================================================================== 56260786Sps 56360786Sps 56460786Sps Major changes between "less" versions 97 and 123 56560786Sps 56660786Sps* New option (-N) causes line numbers to be displayed in the 56760786Sps text of the file (like vi "set nu"). 56860786Sps 56960786Sps* New option (-?) prints help message immediately. 57060786Sps 57160786Sps* New option (-r) displays "raw" control characters, without 57260786Sps mapping them to ^X notation. 57360786Sps 57460786Sps* New option (-f) forces less to open non-regular files 57560786Sps (directories, etc). 57660786Sps 57760786Sps* New option (-k) can be used to specify lesskey files by name. 57860786Sps 57960786Sps* New option (-y) can be used to set a forward scroll limit 58060786Sps (like -h sets a backward scroll limit). 58160786Sps 58260786Sps* File marks (set by the m command) are now preserved when a new 58360786Sps file is edited. The ' command can thus be used to switch files. 58460786Sps 58560786Sps* New command ESC-/ searches all files (on the command line) 58660786Sps for a pattern. 58760786Sps 58860786Sps* New command ESC-n repeats previous search, spanning files. 58960786Sps 59060786Sps* The N command has been changed to repeat the previous search 59160786Sps in the reverse direction. The old N command is still available 59260786Sps via :n. 59360786Sps 59460786Sps* New command ESC-N repeats previous search in the reverse 59560786Sps direction and spanning files. 59660786Sps 59760786Sps* 8 bit characters are now supported. A new option (-g) can be 59860786Sps used to strip off the eighth bit (the previous behavior). 59960786Sps 60060786Sps* Options which take a following string (like -t) may now 60160786Sps optionally have a space between the option letter and the string. 60260786Sps 60360786Sps* Six new commands { } ( ) [ and ] can be used to match 60460786Sps brackets of specific types, similar to vi % command. 60560786Sps 60660786Sps* New commands z and w move forward/backward one window and 60760786Sps simultaneously set the window size. 60860786Sps 60960786Sps* Prompt string expansion now has %L for line number of the last 61060786Sps line in the file, and %E for the name of the editor. 61160786Sps Also, % escapes which refer to a line (b=bottom, t=top, etc.) 61260786Sps can use j for the jump target line. 61360786Sps 61460786Sps* New environment variable LESSEDIT can be used to tailor the 61560786Sps command string passed to the editor by the v command. 61660786Sps 61760786Sps* Examining a file which was previously examined will return 61860786Sps to the same position in the file. 61960786Sps 62060786Sps* A "%" is expanded to the current filename and a "#" to the 62160786Sps previous filename, in both shell commands and the E command. 62260786Sps (Previously % worked only in shell commands and # worked 62360786Sps only in the E command.) 62460786Sps 62560786Sps* New command ":ta" is equivalent to "-t". 62660786Sps 62760786Sps* New command "s" is equivalent to "-l". 62860786Sps 62960786Sps* The - command may be followed by "+X" to revert to the default 63060786Sps for option X, or "-X" to get the opposite of the default. 63160786Sps 63260786Sps* Lesskey files may now include characters after the action as 63360786Sps extra input to be parsed after the action; for example: 63460786Sps "toggle-option X" to toggle a specific option X. 635