1 1.4 simonb /* $NetBSD: version.c,v 1.4 2023/10/06 05:49:49 simonb Exp $ */ 2 1.1 tron 3 1.1 tron /* 4 1.4 simonb * Copyright (C) 1984-2023 Mark Nudelman 5 1.1 tron * 6 1.1 tron * You may distribute under the terms of either the GNU General Public 7 1.1 tron * License or the Less License, as specified in the README file. 8 1.1 tron * 9 1.3 tron * For more information, see the README file. 10 1.1 tron */ 11 1.1 tron 12 1.1 tron 13 1.1 tron /* 14 1.1 tron ----------------------- CHANGE HISTORY -------------------------- 15 1.1 tron 16 1.1 tron 1/29/84 Allowed use on standard input 17 1.1 tron 2/1/84 Added E, N, P commands 18 1.1 tron 4/17/84 Added '=' command, 'stop' signal handling 19 1.1 tron 4/20/84 Added line folding 20 1.1 tron v2 4/27/84 Fixed '=' command to use BOTTOM_PLUS_ONE, 21 1.1 tron instead of TOP, added 'p' & 'v' commands 22 1.1 tron v3 5/3/84 Added -m and -t options, '-' command 23 1.1 tron v4 5/3/84 Added LESS environment variable 24 1.1 tron v5 5/3/84 New comments, fixed '-' command slightly 25 1.1 tron v6 5/15/84 Added -Q, visual bell 26 1.1 tron v7 5/24/84 Fixed jump_back(n) bug: n should count real 27 1.1 tron lines, not folded lines. Also allow number on G command. 28 1.1 tron v8 5/30/84 Re-do -q and -Q commands 29 1.1 tron v9 9/25/84 Added "+<cmd>" argument 30 1.1 tron v10 10/10/84 Fixed bug in -b<n> argument processing 31 1.1 tron v11 10/18/84 Made error() ring bell if \n not entered. 32 1.1 tron ----------------------------------------------------------------- 33 1.1 tron v12 2/13/85 Reorganized signal handling and made portable to 4.2bsd. 34 1.1 tron v13 2/16/85 Reword error message for '-' command. 35 1.1 tron v14 2/22/85 Added -bf and -bp variants of -b. 36 1.1 tron v15 2/25/85 Miscellaneous changes. 37 1.1 tron v16 3/13/85 Added -u flag for backspace processing. 38 1.1 tron v17 4/13/85 Added j and k commands, changed -t default. 39 1.1 tron v18 4/20/85 Rewrote signal handling code. 40 1.1 tron v19 5/2/85 Got rid of "verbose" eq_message(). 41 1.1 tron Made search() scroll in some cases. 42 1.1 tron v20 5/21/85 Fixed screen.c ioctls for System V. 43 1.1 tron v21 5/23/85 Fixed some first_cmd bugs. 44 1.1 tron v22 5/24/85 Added support for no RECOMP nor REGCMP. 45 1.1 tron v23 5/25/85 Miscellanous changes and prettying up. 46 1.1 tron Posted to USENET. 47 1.1 tron ----------------------------------------------------------------- 48 1.1 tron v24 6/3/85 Added ti,te terminal init & de-init. 49 1.1 tron (Thanks to Mike Kersenbrock) 50 1.1 tron v25 6/8/85 Added -U flag, standout mode underlining. 51 1.1 tron v26 6/9/85 Added -M flag. 52 1.1 tron Use underline termcap (us) if it exists. 53 1.1 tron v27 6/15/85 Renamed some variables to make unique in 54 1.1 tron 6 chars. Minor fix to -m. 55 1.1 tron v28 6/28/85 Fixed right margin bug. 56 1.1 tron v29 6/28/85 Incorporated M.Rose's changes to signal.c 57 1.1 tron v30 6/29/85 Fixed stupid bug in argument processing. 58 1.1 tron v31 7/15/85 Added -p flag, changed repaint algorithm. 59 1.1 tron Added kludge for magic cookie terminals. 60 1.1 tron v32 7/16/85 Added cat_file if output not a tty. 61 1.1 tron v33 7/23/85 Added -e flag and EDITOR. 62 1.1 tron v34 7/26/85 Added -s flag. 63 1.1 tron v35 7/27/85 Rewrote option handling; added option.c. 64 1.1 tron v36 7/29/85 Fixed -e flag to work if not last file. 65 1.1 tron v37 8/10/85 Added -x flag. 66 1.1 tron v38 8/19/85 Changed prompting; created prompt.c. 67 1.1 tron v39 8/24/85 (Not -p) does not initially clear screen. 68 1.1 tron v40 8/26/85 Added "skipping" indicator in forw(). 69 1.1 tron Posted to USENET. 70 1.1 tron ----------------------------------------------------------------- 71 1.1 tron v41 9/17/85 ONLY_RETURN, control char commands, 72 1.1 tron faster search, other minor fixes. 73 1.1 tron v42 9/25/85 Added ++ command line syntax; 74 1.1 tron ch_fsize for pipes. 75 1.1 tron v43 10/15/85 Added -h flag, changed prim.c algorithms. 76 1.1 tron v44 10/16/85 Made END print in all cases of eof; 77 1.1 tron ignore SIGTTOU after receiv ing SIGTSTP. 78 1.1 tron v45 10/16/85 Never print backspaces unless -u. 79 1.1 tron v46 10/24/85 Backwards scroll in jump_loc. 80 1.1 tron v47 10/30/85 Fixed bug in edit(): *first_cmd==0 81 1.1 tron v48 11/16/85 Use TIOCSETN instead of TIOCSETP. 82 1.1 tron Added marks (m and ' commands). 83 1.1 tron Posted to USENET. 84 1.1 tron ----------------------------------------------------------------- 85 1.1 tron v49 1/9/86 Fixed bug: signal didn't clear mcc. 86 1.1 tron v50 1/15/86 Added ' (quote) to gomark. 87 1.1 tron v51 1/16/86 Added + cmd, fixed problem if first_cmd 88 1.1 tron fails, made g cmd sort of "work" on pipes 89 1.1 tron ev en if bof is no longer buffered. 90 1.1 tron v52 1/17/86 Made short files work better. 91 1.1 tron v53 1/20/86 Added -P option. 92 1.1 tron v54 1/20/86 Changed help to use HELPFILE. 93 1.1 tron v55 1/23/86 Messages work better if not tty output. 94 1.1 tron v56 1/24/86 Added -l option. 95 1.1 tron v57 1/31/86 Fixed -l to get confirmation before 96 1.1 tron ov erwriting an existing file. 97 1.1 tron v58 8/28/86 Added filename globbing. 98 1.1 tron v59 9/15/86 Fixed some bugs with very long filenames. 99 1.1 tron v60 9/26/86 Incorporated changes from Leith (Casey) 100 1.1 tron Leedom for boldface and -z option. 101 1.1 tron v61 9/26/86 Got rid of annoying repaints after ! cmd. 102 1.1 tron Posted to USENET. 103 1.1 tron ----------------------------------------------------------------- 104 1.1 tron v62 12/23/86 Added is_directory(); change -z default to 105 1.1 tron -1 instead of 24; cat-and-exit if -e and 106 1.1 tron file is less than a screenful. 107 1.1 tron v63 1/8/87 Fixed bug in cat-and-exit if > 1 file. 108 1.1 tron v64 1/12/87 Changed puts/putstr, putc/putchr, 109 1.1 tron getc/getchr to av oid name conflict with 110 1.1 tron stdio functions. 111 1.1 tron v65 1/26/87 Allowed '-' command to change NUMBER 112 1.1 tron v alued options (thanks to Gary Puckering) 113 1.1 tron v66 2/13/87 Fixed bug: prepaint should use force=1. 114 1.1 tron v67 2/24/87 Added !! and % expansion to ! command. 115 1.1 tron v68 2/25/87 Added SIGWINCH and TIOCGWINSZ support; 116 1.1 tron changed is_directory to bad_file. 117 1.1 tron (thanks to J. Robert Ward) 118 1.1 tron v69 2/25/87 Added SIGWIND and WIOCGETD (for Unix PC). 119 1.1 tron v70 3/13/87 Changed help cmd from 'h' to 'H'; better 120 1.1 tron error msgs in bad_file, errno_message. 121 1.1 tron v71 5/11/87 Changed -p to -c, made triple -c/-C 122 1.1 tron for clear-eol like more's -c. 123 1.1 tron v72 6/26/87 Added -E, -L, use $SHELL in lsystem(). 124 1.1 tron (thanks to Stev e Spearman) 125 1.1 tron v73 6/26/87 Allow Examine "#" for previous file. 126 1.1 tron Posted to USENET 8/25/87. 127 1.1 tron ----------------------------------------------------------------- 128 1.1 tron v74 9/18/87 Fix conflict in EOF symbol with stdio.h, 129 1.1 tron Make os.c more portable to BSD. 130 1.1 tron v75 9/23/87 Fix problems in get_term (thanks to 131 1.1 tron Paul Eggert); new backwards scrolling in 132 1.1 tron jump_loc (thanks to Marion Hakanson). 133 1.1 tron v76 9/23/87 Added -i flag; allow single "!" to 134 1.1 tron inv oke a shell (thanks to Franco Barber). 135 1.1 tron v77 9/24/87 Added -n flag and line number support. 136 1.1 tron v78 9/25/87 Fixed problem with prompts longer than 137 1.1 tron the screen width. 138 1.1 tron v79 9/29/87 Added the _ command. 139 1.1 tron v80 10/6/87 Allow signal to break out of linenum scan. 140 1.1 tron v81 10/6/87 Allow -b to be changed from within less. 141 1.1 tron v82 10/7/87 Add cmd_decode to use a table for key 142 1.1 tron binding (thanks to Dav id Nason). 143 1.1 tron v83 10/9/87 Allow .less file for user-defined keys. 144 1.1 tron v84 10/11/87 Fix -e/-E problems (thanks to Felix Lee). 145 1.1 tron v85 10/15/87 Search now keeps track of line numbers. 146 1.1 tron v86 10/20/87 Added -B option and autobuf; fixed 147 1.1 tron "pipe error" bug. 148 1.1 tron v87 3/1/88 Fix bug re BSD signals while reading file. 149 1.1 tron v88 3/12/88 Use new format for -P option (thanks to 150 1.1 tron der Mouse), allow "+-c" without message, 151 1.1 tron fix bug re BSD hangup. 152 1.1 tron v89 3/18/88 Turn off line numbers if linenum scan 153 1.1 tron is interrupted. 154 1.1 tron v90 3/30/88 Allow -P from within less. 155 1.1 tron v91 3/30/88 Added tags file support (new -t option) 156 1.1 tron (thanks to Brian Campbell). 157 1.1 tron v92 4/4/88 Added -+option syntax. 158 1.1 tron v93 4/11/88 Add support for slow input (thanks to 159 1.1 tron Joe Orost & apologies for taking almost 160 1.1 tron 3 years to get this in!) 161 1.1 tron v94 4/11/88 Redo reading/signal stuff. 162 1.1 tron v95 4/20/88 Repaint screen better after signal. 163 1.1 tron v96 4/21/88 Add /! and ?! commands. 164 1.1 tron v97 5/17/88 Allow -l/-L from within less. 165 1.1 tron Eliminate some static arrays (use calloc). 166 1.1 tron Posted to USENET. 167 1.1 tron ----------------------------------------------------------------- 168 1.1 tron v98 10/14/88 Fix incorrect calloc call; uninitialized 169 1.1 tron var in exec_mca; core dump on unknown TERM. 170 1.1 tron Make v cmd work if past last line of file. 171 1.1 tron Fix some signal bugs. 172 1.1 tron v99 10/29/88 Allow space between -X and string, 173 1.1 tron when X is a string-valued option. 174 1.1 tron v100 1/5/89 Fix globbing bug when $SHELL not set; 175 1.1 tron allow spaces after -t command. 176 1.1 tron v101 1/6/89 Fix problem with long (truncated) lines 177 1.1 tron in tags file (thanks to Neil Dixon). 178 1.1 tron v102 1/6/89 Fix bug with E# when no prev file; 179 1.1 tron allow spaces after -l command. 180 1.1 tron v103 3/14/89 Add -N, -f and -? options. Add z and w 181 1.1 tron commands. Add %L for prompt strings. 182 1.1 tron v104 3/16/89 Added EDITPROTO. 183 1.1 tron v105 3/20/89 Fix bug in find_linenum which cached 184 1.1 tron incorrectly on long lines. 185 1.1 tron v106 3/31/89 Added -k option and multiple lesskey 186 1.1 tron files. 187 1.1 tron v107 4/27/89 Add 8-bit char support and -g option. 188 1.1 tron Split option code into 3 files. 189 1.1 tron v108 5/5/89 Allocate position table dynamically 190 1.1 tron (thanks to Paul Eggert); change % command 191 1.1 tron from "percent" to vi-style brace finder. 192 1.1 tron v109 5/10/89 Added ESC-% command, split prim.c. 193 1.1 tron v110 5/24/89 Fixed bug in + option; fixed repaint bug 194 1.1 tron under Sun windows (thanks to Paul Eggert). 195 1.1 tron v111 5/25/89 Generalized # and % expansion; use 196 1.1 tron calloc for some error messages. 197 1.1 tron v112 5/30/89 Get rid of ESC-%, add {}()[] commands. 198 1.1 tron v113 5/31/89 Optimize lseeks (thanks to Paul Eggert). 199 1.1 tron v114 7/25/89 Added ESC-/ and ESC-/! commands. 200 1.1 tron v115 7/26/89 Added ESC-n command. 201 1.1 tron v116 7/31/89 Added find_pos to optimize g command. 202 1.1 tron v117 8/1/89 Change -f option to -r. 203 1.1 tron v118 8/2/89 Save positions for all previous files, 204 1.1 tron not just the immediately previous one. 205 1.1 tron v119 8/7/89 Save marks across file boundaries. 206 1.1 tron Add file handle stuff. 207 1.1 tron v120 8/11/89 Add :ta command. 208 1.1 tron v121 8/16/89 Add -f option. 209 1.1 tron v122 8/30/89 Fix performance with many buffers. 210 1.1 tron v123 8/31/89 Verbose prompts for string options. 211 1.1 tron Posted beta to USENET. 212 1.1 tron ----------------------------------------------------------------- 213 1.1 tron v124 9/18/89 Reorganize search commands, 214 1.1 tron N = rev, ESC-n = span, add ESC-N. 215 1.1 tron v125 9/18/89 Fix tab bug (thanks to Alex Liu). 216 1.1 tron Fix EOF bug when both -w and -c. 217 1.1 tron v126 10/25/89 Add -j option. 218 1.1 tron v127 10/27/89 Fix problems with blank lines before BOF. 219 1.1 tron v128 10/27/89 Add %bj, etc. to prompt strings. 220 1.1 tron v129 11/3/89 Add -+,-- commands; add set-option and 221 1.1 tron unset-option to lesskey. 222 1.1 tron v130 11/6/89 Generalize A_EXTRA to string, remove 223 1.1 tron set-option, unset-option from lesskey. 224 1.1 tron v131 11/7/89 Changed name of EDITPROTO to LESSEDIT. 225 1.1 tron v132 11/8/89 Allow editing of command prefix. 226 1.1 tron v133 11/16/89 Add -y option (thanks to Jeff Sullivan). 227 1.1 tron v134 12/1/89 Glob filenames in the -l command. 228 1.1 tron v135 12/5/89 Combined {}()[] commands into one, and 229 1.1 tron added ESC-^F and ESC-^B commands. 230 1.1 tron v136 1/20/90 Added -S, -R flags. Added | command. 231 1.1 tron Added warning for binary files. (thanks 232 1.1 tron to Richard Brittain and J. Sullivan). 233 1.1 tron v137 1/21/90 Rewrote horrible pappend code. 234 1.1 tron Added * notation for hi-bit chars. 235 1.1 tron v138 1/24/90 Fix magic cookie terminal handling. 236 1.1 tron Get rid of "cleanup" loop in ch_get. 237 1.1 tron v139 1/27/90 Added MSDOS support. (many thanks 238 1.1 tron to Richard Brittain). 239 1.1 tron v140 2/7/90 Editing a new file adds it to the 240 1.1 tron command line list. 241 1.1 tron v141 2/8/90 Add edit_list for editing >1 file. 242 1.1 tron v142 2/10/90 Add :x command. 243 1.1 tron v143 2/11/90 Add * and @ modifies to search cmds. 244 1.1 tron Change ESC-/ cmd from /@* to / *. 245 1.1 tron v144 3/1/90 Messed around with ch_zero; 246 1.1 tron no real change. 247 1.1 tron v145 3/2/90 Added -R and -v/-V for MSDOS; 248 1.1 tron renamed FILENAME to avoid conflict. 249 1.1 tron v146 3/5/90 Pull cmdbuf functions out of command.c 250 1.1 tron v147 3/7/90 Implement ?@; fix multi-file edit bugs. 251 1.1 tron v148 3/29/90 Fixed bug in :e<file> then :e#. 252 1.1 tron v149 4/3/90 Change error,ierror,query to use PARG. 253 1.1 tron v150 4/6/90 Add LESS_CHARSET, LESS_CHARDEF. 254 1.1 tron v151 4/13/90 Remove -g option; clean up ispipe. 255 1.1 tron v152 4/14/90 lsystem() closes input file, for 256 1.1 tron editors which require exclusive open. 257 1.1 tron v153 4/18/90 Fix bug if SHELL unset; 258 1.1 tron fix bug in overstrike control char. 259 1.1 tron v154 4/25/90 Output to fd 2 via buffer. 260 1.1 tron v155 4/30/90 Ignore -i if uppercase in pattern 261 1.1 tron (thanks to Michael Rendell.) 262 1.1 tron v156 5/3/90 Remove scroll limits in forw() & back(); 263 1.1 tron causes problems with -c. 264 1.1 tron v157 5/4/90 Forward search starts at next real line 265 1.1 tron (not screen line) after jump target. 266 1.1 tron v158 6/14/90 Added F command. 267 1.1 tron v159 7/29/90 Fix bug in exiting: output not flushed. 268 1.1 tron v160 7/29/90 Clear screen before initial output w/ -c. 269 1.1 tron v161 7/29/90 Add -T flag. 270 1.1 tron v162 8/14/90 Fix bug with +F on command line. 271 1.1 tron v163 8/21/90 Added LESSBINFMT variable. 272 1.1 tron v164 9/5/90 Added -p, LINES, COLUMNS and 273 1.1 tron unset mark ' == BOF, for 1003.2 D5. 274 1.1 tron v165 9/6/90 At EOF with -c set, don't display empty 275 1.1 tron screen when try to page forward. 276 1.1 tron v166 9/6/90 Fix G when final line in file wraps. 277 1.1 tron v167 9/11/90 Translate CR/LF -> LF for 1003.2. 278 1.1 tron v168 9/13/90 Return to curr file if "tag not found". 279 1.1 tron v169 12/12/90 G goes to EOF even if file has grown. 280 1.1 tron v170 1/17/91 Add optimization for BSD _setjmp; 281 1.1 tron fix #include ioctl.h TERMIO problem. 282 1.1 tron (thanks to Paul Eggert) 283 1.1 tron Posted to USENET. 284 1.1 tron ----------------------------------------------------------------- 285 1.1 tron v171 3/6/91 Fix -? bug in get_filename. 286 1.1 tron v172 3/15/91 Fix G bug in empty file. 287 1.1 tron Fix bug with ?\n and -i and uppercase 288 1.1 tron pattern at EOF! 289 1.1 tron (thanks to Paul Eggert) 290 1.1 tron v173 3/17/91 Change N cmd to not permanently change 291 1.1 tron direction. (thanks to Brian Matthews) 292 1.1 tron v174 3/18/91 Fix bug with namelogfile not getting 293 1.1 tron cleared when change files. 294 1.1 tron v175 3/18/91 Fix bug with ++cmd on command line. 295 1.1 tron (thanks to Jim Meyering) 296 1.1 tron v176 4/2/91 Change | to not force current screen, 297 1.1 tron include marked line, start/end from 298 1.1 tron top of screen. Improve search speed. 299 1.1 tron (thanks to Don Mears) 300 1.1 tron v177 4/2/91 Add LESSHELP variable. 301 1.1 tron Fix bug with F command with -e. 302 1.1 tron Try /dev/tty for input before using fd 2. 303 1.1 tron Patches posted to USENET 4/2/91. 304 1.1 tron ----------------------------------------------------------------- 305 1.1 tron v178 4/8/91 Fixed bug in globbing logfile name. 306 1.1 tron (thanks to Jim Meyering) 307 1.1 tron v179 4/9/91 Allow negative -z for screen-relative. 308 1.1 tron v180 4/9/91 Clear to eos rather than eol if "db"; 309 1.1 tron don't use "sr" if "da". 310 1.1 tron (thanks to Tor Lillqvist) 311 1.1 tron v181 4/18/91 Fixed bug with "negative" chars 80 - FF. 312 1.1 tron (thanks to Benny Sander Hofmann) 313 1.1 tron v182 5/16/91 Fixed bug with attribute at EOL. 314 1.1 tron (thanks to Brian Matthews) 315 1.1 tron v183 6/1/91 Rewrite linstall to do smart config. 316 1.1 tron v184 7/11/91 Process \b in searches based on -u 317 1.1 tron rather than -i. 318 1.1 tron v185 7/11/91 -Pxxx sets short prompt; assume SIGWINCH 319 1.1 tron after a SIGSTOP. (thanks to Ken Laprade) 320 1.1 tron ----------------------------------------------------------------- 321 1.1 tron v186 4/20/92 Port to MS-DOS (Microsoft C). 322 1.1 tron v187 4/23/92 Added -D option & TAB_COMPLETE_FILENAME. 323 1.1 tron v188 4/28/92 Added command line editing features. 324 1.1 tron v189 12/8/92 Fix mem overrun in anscreen.c:init; 325 1.1 tron fix edit_list to recover from bin file. 326 1.1 tron v190 2/13/93 Make TAB enter one filename at a time; 327 1.1 tron create ^L with old TAB functionality. 328 1.1 tron v191 3/10/93 Defer creating "flash" page for MS-DOS. 329 1.1 tron v192 9/6/93 Add BACK-TAB. 330 1.1 tron v193 9/17/93 Simplify binary_file handling. 331 1.1 tron v194 1/4/94 Add rudiments of alt_filename handling. 332 1.1 tron v195 1/11/94 Port back to Unix; support keypad. 333 1.1 tron ----------------------------------------------------------------- 334 1.1 tron v196 6/7/94 Fix bug with bad filename; fix IFILE 335 1.1 tron type problem. (thanks to David MacKenzie) 336 1.1 tron v197 6/7/94 Fix bug with .less tables inserted wrong. 337 1.1 tron v198 6/23/94 Use autoconf installation technology. 338 1.1 tron (thanks to David MacKenzie) 339 1.1 tron v199 6/29/94 Fix MS-DOS build (thanks to Tim Wiegman). 340 1.1 tron v200 7/25/94 Clean up copyright, minor fixes. 341 1.1 tron Posted to prep.ai.mit.edu 342 1.1 tron ----------------------------------------------------------------- 343 1.1 tron v201 7/27/94 Check for no memcpy; add casts to calloc; 344 1.1 tron look for regcmp in libgen.a. 345 1.1 tron (thanks to Kaveh Ghazi). 346 1.1 tron v202 7/28/94 Fix bug in edit_next/edit_prev with 347 1.3 tron non-existent files. 348 1.1 tron v203 8/2/94 Fix a variety of configuration bugs on 349 1.1 tron various systems. (thanks to Sakai 350 1.1 tron Kiyotaka, Harald Koenig, Bjorn Brox, 351 1.1 tron Teemu Rantanen, and Thorsten Lockert) 352 1.1 tron v204 8/3/94 Use strerror if available. 353 1.1 tron (thanks to J.T. Conklin) 354 1.1 tron v205 8/5/94 Fix bug in finding "me" termcap entry. 355 1.1 tron (thanks to Andreas Stolcke) 356 1.1 tron 8/10/94 v205+: Change BUFSIZ to LBUFSIZE to avoid name 357 1.1 tron conflict with stdio.h. 358 1.1 tron Posted to prep.ai.mit.edu 359 1.1 tron ----------------------------------------------------------------- 360 1.1 tron v206 8/10/94 Use initial_scrpos for -t to avoid 361 1.1 tron displaying first page before init(). 362 1.1 tron (thanks to Dominique Petitpierre) 363 1.1 tron v207 8/12/94 Fix bug if stdout is not tty. 364 1.1 tron v208 8/16/94 Fix bug in close_altfile if goto err1 365 1.1 tron in edit_ifile. (Thanks to M.J. Hewitt) 366 1.1 tron v209 8/16/94 Change scroll to wscroll to avoid 367 1.1 tron conflict with library function. 368 1.1 tron v210 8/16/94 Fix bug with bold on 8 bit chars. 369 1.1 tron (thanks to Vitor Duarte) 370 1.1 tron v211 8/16/94 Don't quit on EOI in jump_loc / forw. 371 1.1 tron v212 8/18/94 Use time_t if available. 372 1.1 tron v213 8/20/94 Allow ospeed to be defined in termcap.h. 373 1.1 tron v214 8/20/94 Added HILITE_SEARCH, -F, ESC-u cmd. 374 1.1 tron (thanks to Paul Lew and Bob Byrnes) 375 1.1 tron v215 8/23/94 Fix -i toggle behavior. 376 1.1 tron v216 8/23/94 Process BS in all searches, not only -u. 377 1.1 tron v217 8/24/94 Added -X flag. 378 1.1 tron v218 8/24/94 Reimplement undo_search. 379 1.1 tron v219 8/24/94 Find tags marked with line number 380 1.1 tron instead of pattern. 381 1.1 tron v220 8/24/94 Stay at same position after SIG_WINCH. 382 1.1 tron v221 8/24/94 Fix bug in file percentage in big file. 383 1.1 tron v222 8/25/94 Do better if can't reopen current file. 384 1.1 tron v223 8/27/94 Support setlocale. 385 1.1 tron (thanks to Robert Joop) 386 1.1 tron v224 8/29/94 Revert v216: process BS in search 387 1.1 tron only if -u. 388 1.1 tron v225 9/6/94 Rewrite undo_search again: toggle. 389 1.1 tron v226 9/15/94 Configuration fixes. 390 1.1 tron (thanks to David MacKenzie) 391 1.1 tron v227 9/19/94 Fixed strerror config problem. 392 1.1 tron Posted to prep.ai.mit.edu 393 1.1 tron ----------------------------------------------------------------- 394 1.1 tron v228 9/21/94 Fix bug in signals: repeated calls to 395 1.1 tron get_editkeys overflowed st_edittable. 396 1.1 tron v229 9/21/94 Fix "Nothing to search" error if -a 397 1.1 tron and SRCH_PAST_EOF. 398 1.1 tron v230 9/21/94 Don't print extra error msg in search 399 1.1 tron after regerror(). 400 1.1 tron v231 9/22/94 Fix hilite bug if search matches 0 chars. 401 1.1 tron (thanks to John Polstra) 402 1.1 tron v232 9/23/94 Deal with weird systems that have 403 1.1 tron termios.h but not tcgetattr(). 404 1.1 tron Posted to prep.ai.mit.edu 405 1.1 tron ----------------------------------------------------------------- 406 1.1 tron v233 9/26/94 Use get_term() instead of pos_init() in 407 1.1 tron psignals to re-get lower_left termcap. 408 1.1 tron (Thanks to John Malecki) 409 1.1 tron v234 9/26/94 Make MIDDLE closer to middle of screen. 410 1.1 tron v235 9/27/94 Use local strchr if system doesn't have. 411 1.1 tron v236 9/28/94 Don't use libucb; use libterm if 412 1.1 tron libtermcap & libcurses doesn't work. 413 1.1 tron (Fix for Solaris; thanks to Frank Kaefer) 414 1.1 tron v237 9/30/94 Use system isupper() etc if provided. 415 1.1 tron Posted to prep.ai.mit.edu 416 1.1 tron ----------------------------------------------------------------- 417 1.1 tron v238 10/6/94 Make binary non-blinking if LESSBINFMT 418 1.1 tron is set to a string without a *. 419 1.1 tron v239 10/7/94 Don't let delimit_word run back past 420 1.1 tron beginning of cmdbuf. 421 1.1 tron v240 10/10/94 Don't write into termcap buffer. 422 1.1 tron (Thanks to Benoit Speckel) 423 1.1 tron v241 10/13/94 New lesskey file format. 424 1.1 tron Don't expand filenames in search command. 425 1.1 tron v242 10/14/94 Allow lesskey specification of "literal". 426 1.1 tron v243 10/14/94 Add #stop command to lesskey. 427 1.1 tron v244 10/16/94 Add -f flag to lesskey. 428 1.1 tron v245 10/25/94 Allow TAB_COMPLETE_FILENAME to be undefd. 429 1.1 tron v246 10/27/94 Move help file to /usr/local/share. 430 1.1 tron v247 10/27/94 Add -V option. 431 1.1 tron v248 11/5/94 Add -V option to lesskey. 432 1.1 tron v249 11/5/94 Remove -f flag from lesskey; default 433 1.1 tron input file is ~/.lesskey.in, not stdin. 434 1.1 tron v250 11/7/94 Lesskey input file "-" means stdin. 435 1.1 tron v251 11/9/94 Convert cfgetospeed result to ospeed. 436 1.1 tron (Thanks to Andrew Chernov) 437 1.1 tron v252 11/16/94 Change default lesskey input file from 438 1.1 tron .lesskey.in to .lesskey. 439 1.1 tron Posted to prep.ai.mit.edu 440 1.1 tron ----------------------------------------------------------------- 441 1.1 tron v253 11/21/94 Fix bug when tags file has a backslash. 442 1.1 tron v254 12/6/94 Fix -k option. 443 1.1 tron v255 12/8/94 Add #define EXAMINE to disable :e etc. 444 1.1 tron v256 12/10/94 Change highlighting: only highlite search 445 1.1 tron results (but now it is reliable). 446 1.1 tron v257 12/10/94 Add goto_line and repaint_highlight 447 1.1 tron to optimize highlight repaints. 448 1.1 tron v258 12/12/94 Fixup in hilite_line if BS_SPECIAL. 449 1.1 tron v259 12/12/94 Convert to autoconf 2.0. 450 1.1 tron v260 12/13/94 Add SECURE define. 451 1.1 tron v261 12/14/94 Use system WERASE char as EC_W_BACKSPACE. 452 1.1 tron v262 12/16/94 Add -g/-G flag and screen_hilite. 453 1.1 tron v263 12/20/94 Reimplement/optimize -G flag behavior. 454 1.1 tron v264 12/23/94 Allow EXTRA string after line-edit cmd 455 1.1 tron in lesskey file. 456 1.1 tron v265 12/24/94 Add LESSOPEN=|cmd syntax. 457 1.1 tron v266 12/26/94 Add -I flag. 458 1.1 tron v267 12/28/94 Formalize the four-byte header emitted 459 1.1 tron by a LESSOPEN pipe. 460 1.1 tron v268 12/28/94 Get rid of four-byte header. 461 1.1 tron v269 1/2/95 Close alt file before open new one. 462 1.1 tron Avoids multiple popen(). 463 1.1 tron v270 1/3/95 Use VISUAL; use S_ISDIR/S_ISREG; fix 464 1.1 tron config problem with Solaris POSIX regcomp. 465 1.1 tron v271 1/4/95 Don't quit on read error. 466 1.1 tron v272 1/5/95 Get rid of -L. 467 1.1 tron v273 1/6/95 Fix ch_ungetchar bug; don't call 468 1.1 tron LESSOPEN on a pipe. 469 1.1 tron v274 1/6/95 Ported to OS/2 (thanks to Kai Uwe Rommel) 470 1.1 tron v275 1/18/95 Fix bug if toggle -G at EOF. 471 1.1 tron v276 1/30/95 Fix OS/2 version. 472 1.1 tron v277 1/31/95 Add "next" charset; don't display ^X 473 1.1 tron for X > 128. 474 1.1 tron v278 2/14/95 Change default for -G. 475 1.1 tron Posted to prep.ai.mit.edu 476 1.1 tron ----------------------------------------------------------------- 477 1.1 tron v279 2/22/95 Add GNU options --help, --version. 478 1.1 tron Minor config fixes. 479 1.1 tron v280 2/24/95 Clean up calls to glob(); don't set # 480 1.1 tron if we can't open the new file. 481 1.1 tron v281 2/24/95 Repeat search should turn on hilites. 482 1.1 tron v282 3/2/95 Minor fixes. 483 1.1 tron v283 3/2/95 Fix homefile; make OS2 look in $HOME. 484 1.1 tron v284 3/2/95 Error if "v" on LESSOPENed file; 485 1.1 tron "%" figures out file size on pipe. 486 1.1 tron v285 3/7/95 Don't set # in lsystem; 487 1.1 tron lesskey try $HOME first. 488 1.1 tron v286 3/7/95 Reformat change history (too much free time?). 489 1.1 tron v287 3/8/95 Fix hilite bug if overstrike multiple chars. 490 1.1 tron v288 3/8/95 Allow lesskey to override get_editkey keys. 491 1.1 tron v289 3/9/95 Fix adj_hilite bug when line gets processed by 492 1.1 tron hilite_line more than once. 493 1.1 tron v290 3/9/95 Make configure automatically. Fix Sequent problem 494 1.1 tron with incompatible sigsetmask(). 495 1.1 tron Posted to prep.ai.mit.edu 496 1.1 tron ----------------------------------------------------------------- 497 1.1 tron v291 3/21/95 Add #env to lesskey. Fix MS-DOS build. 498 1.1 tron Posted to simtel. 499 1.1 tron ----------------------------------------------------------------- 500 1.1 tron v292 4/24/95 Add MS-DOS support for Borland C. 501 1.1 tron Fix arrow keys in MS-DOS versions. 502 1.1 tron v293 4/28/95 Add auto-versioning stuff to make dist. 503 1.1 tron v294 5/12/95 Fix Borland build. 504 1.1 tron v295 1/20/96 Fix search on squished file; add /@@. 505 1.1 tron v296 1/23/96 Allow cmdbuf larger than screen width. 506 1.1 tron v297 1/24/96 Don't call termcap if tgetent fails; 507 1.1 tron add #defines for buffers. 508 1.1 tron v298 1/24/96 Change @@ to ^K. 509 1.1 tron Add alternate search modifiers ^N, ^F, ^E. 510 1.1 tron v299 1/25/96 Fix percent overflow in jump_percent (thanks to Brent Wiese); 511 1.1 tron don't send "ti" after shell command till RETURN pressed. 512 1.1 tron v300 1/25/96 Change -U to print tabs as ^I. 513 1.1 tron v301 1/30/96 Make hilites work in cmd F output. 514 1.1 tron v302 1/31/96 Fix cmd F to notice window-change signals. 515 1.1 tron v303 1/31/96 Add ESC-SPACE command. 516 1.1 tron v304 2/1/96 Add ^R search modifier; add LESSSECURE. 517 1.1 tron v305 2/2/96 Workaround Linux /proc kernel bug; add LESSKEY. 518 1.1 tron v306 3/16/96 Minor fixes. 519 1.1 tron v307 3/25/96 Allow cmd line arg "--"; fix DOS & OS/2 defines.h. 520 1.1 tron v308 4/4/96 Port to OS-9 (thanks to Boisy Pitre); fix -d. 521 1.1 tron v309 4/9/96 Fix OS-9 version; fix tags bug with "$". 522 1.1 tron v310 4/10/96 Get rid of HELPFILE. 523 1.1 tron v311 4/22/96 Add Windows32 support; merge doscreen.c into screen.c. 524 1.1 tron v312 4/24/96 Don't quit after "cannot reopen" error. 525 1.1 tron v313 4/25/96 Added horizontal scrolling. 526 1.1 tron v314 4/26/96 Modified -e to quit on reaching end of a squished file. 527 1.1 tron v315 4/26/96 Fix "!;TAB" bug. 528 1.1 tron v316 5/2/96 Make "|a" when (a < curr screen) go to end of curr screen. 529 1.1 tron v317 5/14/96 Various fixes for the MS-DOS and OS/2 builds. 530 1.1 tron Added ## and %% handling for filenames 531 1.1 tron v318 5/29/96 Port to OS-9 Microware compiler; minor fixes 532 1.1 tron (thanks to Martin Gregorie). 533 1.1 tron v319 7/8/96 Fix Windows port (thanks to Jeff Paquette). 534 1.1 tron v320 7/11/96 Final fixes for Windows port. 535 1.1 tron v321 7/18/96 Minor fixes. 536 1.1 tron Posted to Web page. 537 1.1 tron ----------------------------------------------------------------- 538 1.1 tron v322 8/13/96 Fix bug in shell escape from help file; add support for 539 1.1 tron Microsoft Visual C under Windows; numerous small fixes. 540 1.1 tron v323 8/19/96 Fixes for Windows version (thanks to Simon Munton); 541 1.1 tron fix for Linux library weirdness (thanks to Jim Diamond); 542 1.1 tron port to DJGPP (thanks to Eli Zaretskii). 543 1.1 tron v324 8/21/96 Add support for spaces in filenames (thanks to Simon Munton). 544 1.1 tron v325 8/21/96 Add lessecho, for spaces in filenames under Unix. 545 1.1 tron v326 8/27/96 Fix DJGPP version. 546 1.1 tron v327 9/1/96 Reorganize lglob, make spaces in filenames work better in Unix. 547 1.1 tron v328 10/7/96 Append / to directory name in filename completion. 548 1.1 tron Fix MS-DOS and OS-9 versions. 549 1.1 tron v329 10/11/96 Fix more MS-DOS bugs; add LESSSEPARATOR; add -" option. 550 1.1 tron Add LESSMETACHARS, LESSMETAESCAPE. 551 1.1 tron v330 10/21/96 Minor fixes. 552 1.1 tron Posted to Web page. 553 1.1 tron ----------------------------------------------------------------- 554 1.1 tron v331 4/22/97 Various Windows fixes (thanks to Gurusamy Sarathy). 555 1.1 tron v332 4/22/97 Enter filenames from cmd line into edit history. 556 1.1 tron Posted to Web page. 557 1.1 tron ----------------------------------------------------------------- 558 1.1 tron v333 3/4/99 Changed -w to highlite new line after forward movement. 559 1.1 tron v334 3/9/99 Avoid overflowing prompt buffer; add %d and %D. 560 1.1 tron v335 3/20/99 Add EBCDIC support (thanks to Thomas Dorner). 561 1.1 tron Use HOMEDRIVE/HOMEPATH on Windows (thanks to Preston Bannister). 562 1.1 tron Posted to Web page. 563 1.1 tron ----------------------------------------------------------------- 564 1.1 tron v336 4/8/99 Fix installation bugs. 565 1.1 tron v337 4/9/99 Fix another installation bug. 566 1.1 tron Posted to Web page. 567 1.1 tron ----------------------------------------------------------------- 568 1.1 tron v338 4/13/99 Add support for long option names. 569 1.1 tron v339 4/18/99 Add \k, long option names to lesskey. Add -^P. Add :d. 570 1.1 tron v340 4/21/99 Add regexec2. Fix Windows build. 571 1.1 tron Posted to Web page. 572 1.1 tron ----------------------------------------------------------------- 573 1.1 tron v341 5/6/99 Add -F option; %c & ?c prompt escapes. 574 1.1 tron (Thanks to Michele Maltoni) 575 1.1 tron v342 7/22/99 Add system-wide lesskey file; allow GPL or Less License. 576 1.1 tron v343 9/23/99 Support UTF-8 (Thanks to Robert Brady). 577 1.1 tron Add %P and ?P in prompts. 578 1.1 tron v344 10/27/99 -w highlights target line of g and p commands. 579 1.1 tron v345 10/29/99 Make -R pass thru ESC but not other control chars. 580 1.1 tron Posted to Web page. 581 1.1 tron ----------------------------------------------------------------- 582 1.1 tron v346 11/4/99 Fix bugs in long option processing; R cmd should clear hilites. 583 1.1 tron Posted to Web page. 584 1.1 tron ----------------------------------------------------------------- 585 1.1 tron v347 12/13/99 Fixes for DJGPP version (thanks to Eli Zaretskii). 586 1.1 tron v348 12/28/99 Fix deleting file with marks (thanks to Dimitar Jekov). 587 1.1 tron Fix color problem in DJGPP version (thanks to Eli Zaretskii). 588 1.1 tron v349 1/24/00 Fix minor DJGPP bugs; check environment vars for UTF-8; 589 1.1 tron add --with-editor (thanks to Eli, Markus Kuhn, Thomas Schoepf). 590 1.1 tron v350 3/1/00 Fix clear-while-standout bug. 591 1.1 tron v351 3/5/00 Change -M and = prompts to show top & bottom line number. 592 1.1 tron Posted to Web page. 593 1.1 tron ----------------------------------------------------------------- 594 1.1 tron v352 3/8/00 Fix scan_option NULL dereference. 595 1.1 tron ----------------------------------------------------------------- 596 1.1 tron v353 3/20/00 Fix SECURE compile bug, allow space after numeric option. 597 1.1 tron v354 3/23/00 Add support for PCRE; add --with-regex configure option. 598 1.1 tron ----------------------------------------------------------------- 599 1.1 tron v355 6/28/00 Add -# option (thanks to Andy Levinson). 600 1.1 tron v356 7/5/00 Add -J option. 601 1.1 tron v357 7/6/00 Support sigprocmask. 602 1.1 tron ----------------------------------------------------------------- 603 1.1 tron v358 7/8/00 Fix problems with #stop in lesskey file. 604 1.1 tron Posted to Web page. 605 1.1 tron ----------------------------------------------------------------- 606 1.1 tron v359 9/10/00 Fixes for Win32 display problems (thanks to Maurizio Vairani). 607 1.1 tron v360 1/17/01 Move sysless to etc. 608 1.1 tron v361 12/4/01 Add IBM-1047 charset & EBCDIC fixes (thanks to Thomas Dorner). 609 1.1 tron Fix 32 bit dependencies (thanks to Paul Eggert). 610 1.1 tron Fix UTF-8 overstriking (thanks to Robert Brady). 611 1.1 tron v362 12/4/01 Make status column show search targets. 612 1.1 tron v363 12/6/01 Add --no-keypad option. 613 1.1 tron Add variable width tabstops (thanks to Peter Samuelson). 614 1.1 tron v364 12/10/01 Better handling of very long lines in input; 615 1.1 tron Fix horizontal shifting of colored text. 616 1.1 tron v365 12/11/01 Fix overstriking of tabs; 617 1.1 tron Add support for global(1) and multiple tag matches 618 1.1 tron (thanks to Shigio Yamaguchi and Tim Vanderhoek). 619 1.1 tron v366 12/11/01 Fixes for OS/2 (thanks to Kyosuke Tokoro). 620 1.1 tron v367 12/13/01 Allow -D and -x options to terminate without dollar sign; 621 1.1 tron Right/left arrow when entering N are shift cmds, not line edit. 622 1.1 tron v368 12/18/01 Update lesskey commands. 623 1.1 tron v370 12/23/01 Fix tags error messages. 624 1.1 tron Posted to Web page. 625 1.1 tron ----------------------------------------------------------------- 626 1.1 tron v371 12/26/01 Fix new_file bug; use popen in Windows version; 627 1.1 tron fix some compiler warnings. 628 1.1 tron v372 12/29/01 Make -b be in units of 1K. 629 1.1 tron v373 1/14/02 Improve handling of filenames containing shell metachars. 630 1.1 tron v374 2/7/02 Fix memory leak; fix bug in -x argument parsing. 631 1.1 tron v375 4/7/02 Fix searching for SGR sequences; fix SECURE build; 632 1.1 tron add SGR support to DJGPP version (thanks to Eli Zaretskii). 633 1.1 tron v376 6/10/02 Fix bug in overstriking mulitbyte UTF-8 characters 634 1.1 tron (thanks to Jungshik Shin). 635 1.1 tron Posted to Web page. 636 1.1 tron ----------------------------------------------------------------- 637 1.1 tron v377 9/10/02 Fix bug in Windows version when file contains CR; 638 1.1 tron fix bug in search highlights with -R; 639 1.1 tron make initial buffer limit really be 64K not unlimited. 640 1.1 tron v378 9/30/02 Misc bug fixes and compiler warning cleanup. 641 1.1 tron Posted to Web page. 642 1.1 tron ----------------------------------------------------------------- 643 1.1 tron v379 11/23/02 Add -L option; fix bug with ctrl-K in lesskey files; 644 1.1 tron improve UTF-8 overstriking and underscore overstriking; 645 1.1 tron fix minor man page problems; change to autoconf 2.54. 646 1.1 tron v380 11/24/02 Make LINENUM same as POSITION. 647 1.1 tron v381 11/28/02 Make -N use 7 columns for line number if possible. 648 1.1 tron ----------------------------------------------------------------- 649 1.1 tron v382 2/3/04 Remove copyrighted code. 650 1.1 tron ----------------------------------------------------------------- 651 1.1 tron v383 2/16/04 Add history file; add -K option; improve UTF-8 handling; 652 1.1 tron fix some signed char bugs (thanks to Christian Biere); 653 1.1 tron fix some upper/lower case bugs (thanks to Bjoern Jacke); 654 1.1 tron add erase2 char (thanks to David Lawrence); 655 1.1 tron add windows charset (thanks to Dimitar Zhekov). 656 1.1 tron v384 2/20/04 Improvements in UTF-8 handling. 657 1.1 tron v385 2/23/04 Fix UTF-8 output bug. 658 1.1 tron ----------------------------------------------------------------- 659 1.1 tron v386 9/13/05 Improvements to UTF-8 shift & color (thanks to Charles Levert); 660 1.1 tron protect against invalid LESSOPEN and LESSCLOSE values. 661 1.1 tron v387 9/14/05 Update Charles Levert's UTF-8 patch. 662 1.1 tron v388 9/14/05 Change history behavior; change most sprintf calls to snprintf. 663 1.1 tron v389 9/14/05 Fix copy & paste with long lines; improve performance of 664 1.1 tron expand_linebuf; fix crash in init_mlist; 665 1.1 tron v390 9/15/05 Show search matches in status column even if -G is set. 666 1.1 tron ----------------------------------------------------------------- 667 1.1 tron v391 9/17/05 Fix bugs. 668 1.1 tron v392 10/14/05 Fix line wrapping bug. 669 1.1 tron v393 10/19/05 Allow multiple attributes per char; fix bold+underline bug 670 1.1 tron (thanks again to Charles Levert). 671 1.1 tron v394 11/8/05 Fix prompt bug; fix compile problem in Windows build. 672 1.1 tron ----------------------------------------------------------------- 673 1.1 tron v395 1/12/07 Update Unicode tables (thanks to Charles Levert); 674 1.1 tron don't chmod if LESSHISTFILE = /dev/null; 675 1.1 tron make -f work for directories; support DESTDIR in Makefile; 676 1.1 tron fix sigset_t detection in configure; 677 1.1 tron make "t" cmd traverse tags in correct order 678 1.1 tron v396 1/13/07 Add compatibility with POSIX more. 679 1.1 tron v397 3/21/07 Allow decimal point in number for % command; 680 1.1 tron Allow decimal point in number for -j option; 681 1.1 tron Allow n command to fetch last search pattern from history 682 1.1 tron (thanks to arno). 683 1.1 tron v398 3/22/07 Don't rewrite history file if not necessary; 684 1.1 tron fix bug when filenames contain "$". 685 1.1 tron v399 3/22/07 Don't move to bottom of screen at startup; 686 1.1 tron don't output extraneous newlines. 687 1.1 tron v400 3/23/07 Allow search to find pattern after null byte (PCRE and no-regex) 688 1.1 tron (thanks to Michael Constant). 689 1.1 tron ----------------------------------------------------------------- 690 1.1 tron v401 3/24/07 Minor documentation fixes. 691 1.1 tron v402 3/30/07 Fix autoconf bug when memcpy etc are inline; 692 1.1 tron fix bug in terminating number following -j option. 693 1.1 tron v403 5/25/07 Fix Windows build. 694 1.1 tron v404 6/5/07 Fix display bug with F command and long lines. 695 1.1 tron v405 6/17/07 Fix display bug when using -w option. 696 1.1 tron v406 6/17/07 Fix secure build. 697 1.1 tron v407 8/16/07 Fix bugs; support CSI chars. 698 1.1 tron v408 10/1/07 Fix bug in -i with non-ASCII chars. 699 1.1 tron v409 10/12/07 Fix crash when viewing text with invalid UTF-8 sequences. 700 1.1 tron v411 11/6/07 Fix case-insensitive searching with non-ASCII text. 701 1.1 tron v412 11/6/07 Use symbolic SEEK constants. 702 1.1 tron v413 11/6/07 Fix search highlight bug with non-ASCII text. 703 1.1 tron v414 11/6/07 Fix display bug with no-wrap terminals. 704 1.1 tron v415 11/14/07 Add --follow-name option. 705 1.1 tron v416 11/22/07 Fix crash when searching text with invalid UTF-8 sequences. 706 1.1 tron v417 12/31/07 Don't support single-char CSI in UTF-8 mode; 707 1.1 tron fix bug with -R and invalid CSI sequences; 708 1.1 tron fix bug searching text with SGR sequences with -r; 709 1.1 tron emulate SGR sequences in WIN32 build. 710 1.1 tron v418 12/31/07 Clean up. 711 1.1 tron ----------------------------------------------------------------- 712 1.1 tron v419 1/16/08 Make CSI char 0x9B work in UTF-8 mode (thanks to Colin Watson). 713 1.1 tron v420 2/24/08 Add & command; fix -F option; fix '' after G. 714 1.1 tron v421 2/24/08 Ignore filtered lines when searching. 715 1.1 tron v422 3/2/08 Output CR at startup. 716 1.1 tron v423 5/27/08 Clean up. 717 1.1 tron v424 6/16/08 Fix compile bug with pcre; don't filter help file. 718 1.1 tron v425 7/14/08 Fix non-ANSI code in list handling in ch.c. 719 1.1 tron v426 10/27/08 Fix ignaw terminal handling (thanks to Per Hedeland); 720 1.1 tron fix binary file detection in UTF-8 mode. 721 1.1 tron v427 3/16/09 A few Win32 fixes (thanks to Jason Hood). 722 1.1 tron v428 3/30/09 Add "|-" syntax to LESSOPEN. 723 1.1 tron v429 4/10/09 Fix search highlighting bug with underlined text. 724 1.1 tron ----------------------------------------------------------------- 725 1.1 tron v430 4/22/09 Don't pass "-" to non-pipe LESSOPEN unless it starts with "-". 726 1.1 tron v431 4/29/09 Fix highlight bug when match is at end of line. 727 1.1 tron v432 6/27/09 Better fix for highlight bugs; 728 1.1 tron fix new problems with ignaw terminals. 729 1.1 tron v433 6/28/09 Cleanup search code. 730 1.1 tron v434 6/29/09 More cleanup. 731 1.1 tron v435 7/04/09 Fix bugs with non-regex filtering. 732 1.1 tron v436 7/05/09 Fix memory leak. 733 1.1 tron ----------------------------------------------------------------- 734 1.1 tron v437 7/14/09 Fix bug in handling some long option names; 735 1.1 tron make percentage calculation more accurate. 736 1.1 tron v438 12/29/10 Fix bugs with -i/-I and & filtering; 737 1.1 tron exit with status 2 on ctrl-C with -K. 738 1.1 tron v439 12/31/10 Add -A option. 739 1.1 tron v440 1/5/11 Fix bug displaying prompt after = command. 740 1.1 tron v441 1/21/11 Fix semi-infinite loop if no newlines in file; 741 1.1 tron make new -A behavior the default. 742 1.1 tron ----------------------------------------------------------------- 743 1.1 tron v442 3/2/11 Fix search bug. 744 1.1 tron Add ctrl-G line edit command. 745 1.1 tron v443 4/9/11 Fix Windows build. 746 1.1 tron v444 6/8/11 Fix ungetc bug; remove vestiges of obsolete -l option. 747 1.3 tron ----------------------------------------------------------------- 748 1.3 tron v445 10/19/11 Fix hilite bug in backwards scroll with -J. 749 1.3 tron Fix hilite bug with backspaces. 750 1.3 tron Fix bugs handling SGR sequences in Win32 (thanks to Eric Lee). 751 1.3 tron Add support for GNU regex (thanks to Reuben Thomas). 752 1.3 tron v446 5/15/12 Up/down arrows in cmd editing search for matching cmd. 753 1.3 tron v447 5/21/12 Add ESC-F command, two-pipe LESSOPEN syntax. 754 1.3 tron v448 6/15/12 Print name of regex library in version message. 755 1.3 tron v449 6/23/12 Allow config option --with-regex=none. 756 1.3 tron v450 7/4/12 Fix EOF bug with ESC-F. 757 1.3 tron v451 7/20/12 Fix typo. 758 1.3 tron ----------------------------------------------------------------- 759 1.3 tron v452 10/19/12 Fix --with-regex=none, fix "stty 0", fix Win32. 760 1.3 tron Don't quit if errors in cmd line options. 761 1.3 tron v453 10/27/12 Increase buffer sizes. 762 1.3 tron v454 11/5/12 Fix typo. 763 1.3 tron v455 11/5/12 Fix typo. 764 1.3 tron v456 11/8/12 Fix option string incompatibility. 765 1.3 tron v457 12/8/12 Use new option string syntax only after --use-backslash. 766 1.3 tron v458 4/4/13 Fix display bug in using up/down in cmd buffer. 767 1.4 simonb ----------------------------------------------------------------- 768 1.4 simonb v459 5/6/13 Fix ++ bug. 769 1.4 simonb v460 6/19/13 Automate construction of Unicode tables. 770 1.4 simonb v461 6/21/13 Collapse multiple CRs before LF. 771 1.4 simonb v462 11/26/13 Don't overwrite history file, just append to it. 772 1.4 simonb v463 7/13/14 Misc. fixes. 773 1.4 simonb v464 7/19/14 Fix bugs & improve performance in & filtering 774 1.4 simonb (thanks to John Sullivan). 775 1.4 simonb v465 8/9/14 More fixes from John Sullivan. 776 1.4 simonb v466 8/23/14 Add colon to LESSANSIMIDCHARS. 777 1.4 simonb v467 9/18/14 Misc. fixes. 778 1.4 simonb v468 9/18/14 Fix typo 779 1.4 simonb v469 10/2/14 Allow extra string in command to append to a multichar 780 1.4 simonb cmd without executing it; fix bug using GNU regex. 781 1.4 simonb v470 10/5/14 Fix some compiler warnings. 782 1.4 simonb v471 12/14/14 Fix unget issues with prompt. Allow disabling history 783 1.4 simonb when compiled value of LESSHISTFILE = "-". 784 1.4 simonb v473 12/19/14 Fix prompt bug with stdin and -^P in lesskey extra string. 785 1.4 simonb v474 1/30/15 Fix bug in backwards search with match on bottom line. 786 1.4 simonb Make follow mode reopen file if file shrinks. 787 1.4 simonb v475 3/2/15 Fix possible buffer overrun with invalid UTF-8; 788 1.4 simonb fix bug when compiled with no regex; fix non-match search. 789 1.4 simonb v476 5/3/15 Update man pages. 790 1.4 simonb v477 5/19/15 Fix off-by-one in jump_forw_buffered; 791 1.4 simonb don't add FAKE_* files to cmd history. 792 1.4 simonb v478 5/21/15 Fix nonportable pointer usage in hilite tree. 793 1.4 simonb v479 7/6/15 Allow %% escapes in LESSOPEN variable. 794 1.4 simonb v480 7/24/15 Fix bug in no-regex searches; support MSVC v1900. 795 1.4 simonb v481 8/20/15 Fix broken -g option. 796 1.4 simonb ----------------------------------------------------------------- 797 1.4 simonb v482 2/25/16 Update Unicode database to "2015-06-16, 20:24:00 GMT [KW]". 798 1.4 simonb v483 2/27/16 Regenerate hilite when change search caselessness. 799 1.4 simonb (Thanks to Jason Hood) 800 1.4 simonb Fix bug when terminal has no "cm". (Thanks to Noel Cragg) 801 1.4 simonb v484 9/20/16 Update to Unicode 9.0.0 database. 802 1.4 simonb v485 10/21/16 Fix "nothing to search" bug when top/bottom line is empty; 803 1.4 simonb Display line numbers in bold. (thanks to Jason Hood); 804 1.4 simonb Fix incorrect display when entering double-width chars in 805 1.4 simonb search string. 806 1.4 simonb v486 10/22/16 New commands ESC-{ and ESC-} to shift to start/end of 807 1.4 simonb displayed lines; new option -Da in Windows version to 808 1.4 simonb enable SGR mode (thanks to Jason Hood). 809 1.4 simonb v487 10/23/16 configure --help formatting. 810 1.4 simonb ----------------------------------------------------------------- 811 1.4 simonb v488 2/23/17 Fix memory leaks in search (thanks to John Brooks). 812 1.4 simonb v489 3/30/17 Make -F not do init/deinit if file fits on one screen 813 1.4 simonb (thanks to Jindrich Novy). 814 1.4 simonb v490 4/5/17 Switch to ANSI prototypes in funcs.h; remove "register". 815 1.4 simonb v491 4/7/17 Fix signed char bug. 816 1.4 simonb v492 4/21/17 Handle SIGTERM. 817 1.4 simonb v493 6/22/17 Fix bug initializing charset in MSDOS build. 818 1.4 simonb v494 6/26/17 Update Unicode tables; make Cf chars composing not binary. 819 1.4 simonb v495 7/3/17 Improve binary file detection (thanks to Bela Lubkin); 820 1.4 simonb do -R filter when matching tags (thanks to Matthew Malcomson). 821 1.4 simonb v496 7/5/17 Add LESSRSCROLL marker. 822 1.4 simonb v497 7/5/17 Sync. 823 1.4 simonb v498 7/7/17 Fix early truncation of text if last char is double-width. 824 1.4 simonb v499 7/10/17 Misc fixes. 825 1.4 simonb v500 7/11/17 Fix bug where certain env variables couldn't be set in lesskey. 826 1.4 simonb v501 7/12/17 Make sure rscroll char is standout by default. 827 1.4 simonb v502 7/13/17 Control rscroll char via command line option not env variable. 828 1.4 simonb v503 7/13/17 Switch to git. 829 1.4 simonb v504 7/13/17 Call opt_rscroll at startup; change mkhelp.c to mkhelp.pl. 830 1.4 simonb v505 7/17/17 Add M and ESC-M commands; 831 1.4 simonb fix buffer handling with stdin and LESSOPEN. 832 1.4 simonb v506 7/17/17 On Windows, convert UTF-8 to multibyte if console is not UTF-8; 833 1.4 simonb handle extended chars on input (thanks to Jason Hood). 834 1.4 simonb v507 7/18/17 Fix some bugs handling filenames containing shell metachars. 835 1.4 simonb v508 7/19/17 Fix bugs when using LESSOPEN to read stdin. 836 1.4 simonb v509 7/19/17 Fix another stdin bug. 837 1.4 simonb v510 7/20/17 Fix bug in determining when to reopen a file. 838 1.4 simonb v511 7/25/17 Fix bugs in recent MSDOS changes (thanks to Jason Hood). 839 1.4 simonb v512 7/26/17 Fix MSDOS build. 840 1.4 simonb v513 7/26/17 Fix switch to normal attr at end of line with -R and rscroll. 841 1.4 simonb v514 7/27/17 Fix bug in fcomplete when pattern does not match a file. 842 1.4 simonb v515 7/28/17 Allow 'u' in -D option on Windows. 843 1.4 simonb v516 7/29/17 Fix bug using LESSOPEN with filename containing metachars. 844 1.4 simonb v517 7/30/17 Status column shows matches even if hiliting is disabled via -G. 845 1.4 simonb v518 8/1/17 Use underline in sgr mode in MSDOS (thanks to Jason Hood). 846 1.4 simonb v519 8/10/17 Fix rscroll bug when last char of line starts coloration. 847 1.4 simonb v520 9/3/17 Fix compiler warning. 848 1.4 simonb v521 10/20/17 Fix binary file warning in UTF-8 files with SGI sequences. 849 1.4 simonb v522 10/20/17 Handle keypad ENTER key properly. 850 1.4 simonb v523 10/23/17 Cleanup. 851 1.4 simonb v524 10/24/17 Fix getcc bug. 852 1.4 simonb v525 10/24/17 Change M command to mark last displayed line. 853 1.4 simonb v526 10/25/17 Fix search hilite bug introduced in v517. 854 1.4 simonb v527 10/30/17 Fix search hilite bug on last page with -a. 855 1.4 simonb v528 11/3/17 Make second ESC-u clear status column. 856 1.4 simonb v529 11/12/17 Display Unicode formatting chars in hex if -U is set. 857 1.4 simonb v530 12/2/17 Minor doc change and add missing VOID_PARAM. 858 1.4 simonb ----------------------------------------------------------------- 859 1.4 simonb v531 5/13/18 Fix bug with v on empty file; fix bug with v on file with 860 1.4 simonb metachars in name; add --nohistdups option. 861 1.4 simonb v532 7/27/18 Redraw screen on SIGWINCH even if screen size doesn't change. 862 1.4 simonb v533 8/1/18 Shell escape filenames in history; use PCRE_UTF8 flag; 863 1.4 simonb use wide-chars for Windows console title (thanks to Jason Hood). 864 1.4 simonb v534 8/9/18 Support PCRE2. 865 1.4 simonb v535 8/16/18 Don't count lines of initial screen if using -X with -F 866 1.4 simonb (thanks to Linus Torvalds). 867 1.4 simonb v536 8/31/18 Use descriptive error messages for PCRE2. 868 1.4 simonb v537 8/31/18 Support mingw build system (thanks to Mike Soyka). 869 1.4 simonb v538 9/3/18 Clean up some WIN32 code. 870 1.4 simonb v539 9/13/18 Fix spurious input on Windows with CAPSLOCK. 871 1.4 simonb v540 10/29/18 Add --mouse option. 872 1.4 simonb v541 10/30/18 Add --MOUSE option. 873 1.4 simonb v542 11/6/18 Add mouse support for WIN32; add --wheel-lines option. 874 1.4 simonb (thanks to Jason Hood). 875 1.4 simonb v543 11/12/18 Code cleanup. 876 1.4 simonb v544 11/16/18 Don't init/deinit keyboard/mouse if quit due to -F. 877 1.4 simonb v545 11/22/18 Fix Windows build, memory leaks. 878 1.4 simonb v546 11/29/18 Add --save-marks option. 879 1.4 simonb v547 11/30/18 Fix some bugs with saved marks. 880 1.4 simonb v548 12/14/18 Ignore mouse input when line editing. 881 1.4 simonb v549 2/10/19 Support X11 mouse extension 1006; 882 1.4 simonb Win32 fixes (thanks to Jason Hood). 883 1.4 simonb v550 2/16/19 Fix Win32 build; don't enable mouse unless --mouse is set. 884 1.4 simonb v551 6/10/19 Doc changes. 885 1.4 simonb ----------------------------------------------------------------- 886 1.4 simonb v552 7/8/19 Update Unicode tables. 887 1.4 simonb v553 10/17/19 Support tinfow; handle zero-width Hangul chars. 888 1.4 simonb v554 1/19/20 Remove erroneous free(). 889 1.4 simonb v555 3/15/20 Display error msg immediately when toggle -o without stdin. 890 1.4 simonb v556 3/15/20 Update copyright. 891 1.4 simonb v557 3/21/20 Fix memory corruption with libtermcap. 892 1.4 simonb v558 4/17/20 Don't init terminal if -F and file fits on one screen (WIN32). 893 1.4 simonb v559 4/19/20 Handle deinit correctly on WIN32. 894 1.4 simonb v560 5/3/20 Fix regression when command results in no movement; 895 1.4 simonb fix some less.nro issues (thanks to Bjarni I. Gislason). 896 1.4 simonb v561 5/11/20 Fix erroneous EOF calculation when F command is interrupted. 897 1.4 simonb v562 5/19/20 Update Unicode tables; minor doc formatting. 898 1.4 simonb v563 6/13/20 Fix crash due to realpath() incompatibility. 899 1.4 simonb v564 8/25/20 Handle realpath consistently; update docs. 900 1.4 simonb v565 11/3/20 Add ESC-U command, optimize calls to realpath(). 901 1.4 simonb v566 11/25/20 Fix crash when reopening a file while using LESSOPEN; 902 1.4 simonb support OSC 8 hyperlinks. 903 1.4 simonb v567 11/25/20 Fix typo. 904 1.4 simonb v568 11/29/20 Fix some hyperlink bugs; add ^W search modifier 905 1.4 simonb (thanks to Arminius); allow Makefile.aut to use Python 906 1.4 simonb instead of Perl (thanks to Charlie Lin). 907 1.4 simonb v569 12/1/20 Allow multiple & filters (thanks to Mattias Johansson), 908 1.4 simonb allow ^X to exit F command. 909 1.4 simonb v570 12/12/20 Better handling of multiple + or -p options; 910 1.4 simonb fix bugs in horizontal scrolling. 911 1.4 simonb v571 12/30/20 Add --line-num-width and --status-col-width options. 912 1.4 simonb v572 1/4/21 Save lastmark in history file; don't toggle mouse reporting; 913 1.4 simonb implement termcap delays. 914 1.4 simonb v573 1/9/21 Limit eof bell to 1 per second. 915 1.4 simonb v574 1/13/21 Add incremental search. 916 1.4 simonb v575 1/17/21 Fix build without HILITE_SEARCH; 917 1.4 simonb fix bug with ^K in lesskey extra string. 918 1.4 simonb v576 2/4/21 Make sure search result is visible; add --use-color and --color. 919 1.4 simonb v577 2/9/21 Use ttyname to get name of tty device. 920 1.4 simonb v578 2/9/21 Doc 921 1.4 simonb v579 2/14/21 Fix double-width char bugs and non-match search crash. 922 1.4 simonb v580 3/2/21 Some color fixes; fix compiler warnings; some lesstest support. 923 1.4 simonb v581 4/6/21 Ignore SIGTSTP in secure mode; don't print "skipping" when filtering. 924 1.4 simonb v582 4/21/21 Less now reads lesskey source file rather than binary; 925 1.4 simonb fix bug in finding tags with backslashes. 926 1.4 simonb v583 4/21/21 Use XDG_CONFIG_HOME and XDG_DATA_HOME to find files. 927 1.4 simonb v584 4/30/21 Add --file-size option. 928 1.4 simonb v585 5/2/21 Allow color desc W per man page. 929 1.4 simonb v586 5/7/21 Doc changes. 930 1.4 simonb v587 5/27/21 Fix --with-secure; fix --file-size message on Windows; 931 1.4 simonb fix colored search hilite in colored text; don't exit 932 1.4 simonb if -F and screen is resized; fix memcpy usage. 933 1.4 simonb v588 5/27/21 Fix release. 934 1.4 simonb v589 5/29/21 Copyright & build changes. 935 1.4 simonb v590 6/3/21 Fix non-autoconf Makefiles. 936 1.4 simonb v591 8/8/21 Use \kB for backspace key in lesskey; add more \k codes; 937 1.4 simonb handle multibyte chars in prompt. 938 1.4 simonb v592 8/24/21 Add --status-line option; limit use of /proc kludge; add --header. 939 1.4 simonb v593 8/30/21 Add header columns, --no-number-headers. 940 1.4 simonb v594 10/1/21 Let regex library handle caseless; add --redraw-on-quit option; 941 1.4 simonb add #version to lesskey. 942 1.4 simonb v595 10/12/21 Add H color type; add += to lesskey var section; 943 1.4 simonb add --search-options. 944 1.4 simonb v596 11/8/21 Look for lesskey in $HOME/.config. 945 1.4 simonb v597 11/16/21 Fix bugs in --header. 946 1.4 simonb v598 12/6/21 Look for lesshst in $XDG_STATE_HOME and $HOME/.local/state. 947 1.4 simonb v599 12/28/21 Defer moving to lower left in some cases; 948 1.4 simonb suppress TAB expansion in some cases. 949 1.4 simonb v600 1/7/22 Use /dev/tty if cannot open ttyname(). 950 1.4 simonb v601 1/31/22 Add --exit-follow-on-close option. 951 1.4 simonb v602 3/1/22 Doc changes. 952 1.4 simonb v603 3/14/22 Fix --header. 953 1.4 simonb v604 5/14/22 Fix termlib detection; fix non-ASCII input on Windows. 954 1.4 simonb v605 6/14/22 Update version number. 955 1.4 simonb v606 7/17/22 Fix bug with multibyte chars and --incsearch; 956 1.4 simonb escape filenames in LESSCLOSE; fix bin_file overrun. 957 1.4 simonb v607 7/19/22 Update Unicode tables. 958 1.4 simonb v608 7/22/22 Fix highlighting on colored text boundaries. 959 1.4 simonb v609 11/10/22 Add LESSUTFCHARDEF; fix overstrike color bug; 960 1.4 simonb fix procfs bug; fix signal race. 961 1.4 simonb v610 11/14/22 Update Unicode tables; fix again-search after filter; 962 1.4 simonb improve ^X to interrupt F command. 963 1.4 simonb v611 11/16/22 Fix EOF bug related to ^X change. 964 1.4 simonb v612 11/18/22 Fix more bugs related to ^X change. 965 1.4 simonb v613 11/28/22 Even more ^X issues. 966 1.4 simonb v614 11/28/22 Add ^X to wait message. 967 1.4 simonb v615 11/30/22 Add --no-vbell option. 968 1.4 simonb v616 12/9/22 Don't open tty as input file without -f. 969 1.4 simonb v617 12/10/22 Support poll on newer versions of MacOS. 970 1.4 simonb v618 12/29/22 Add --no-search-headers option; use C89 function definitions. 971 1.4 simonb v619 12/30/22 Fix bug using 'n' before '/'. 972 1.4 simonb v620 1/12/23 Add --modelines option; add --intr option; 973 1.4 simonb add subpattern coloring. 974 1.4 simonb v621 1/15/23 Add --wordwrap option; add LESS_LINES & LESS_COLUMNS. 975 1.4 simonb v622 1/27/23 Add --show-preproc-errors option. 976 1.4 simonb v623 2/2/23 Add # command; add ^S search modifier. 977 1.4 simonb v624 2/11/23 Add --proc-backspace, --proc-tab and --proc-return options. 978 1.4 simonb v625 2/16/23 Minor fixes. 979 1.4 simonb v626 2/19/23 Fix rare crash in add_attr_normal. 980 1.4 simonb v627 2/19/23 Doc. 981 1.4 simonb v628 2/20/23 Don't require newline after +&... 982 1.4 simonb v629 2/26/23 Delay "waiting for data" message for 500 ms. 983 1.4 simonb v630 3/18/23 Add LESS_DATA_DELAY. 984 1.4 simonb v631 3/26/23 Fix input of dead keys on Windows. 985 1.4 simonb v632 4/6/23 Make lesstest work on MacOS; minor fixes. 986 1.4 simonb v633 5/3/23 Fix build on systems with ncurses/termcap.h or ncursesw/termcap.h. 987 1.4 simonb v634 5/29/23 Allow program piping into less to access tty; 988 1.4 simonb fix search modifier ^E after ^W. 989 1.4 simonb v635 6/2/23 Fix crash with ! search modifier. 990 1.4 simonb v636 6/18/23 Fix -D in MS-DOS build; fix mouse wheel in MS-DOS build. 991 1.4 simonb v637 6/28/23 Fix early EOF when SIGWINCH is received. 992 1.4 simonb v638 6/29/23 Fix compile error with ECHONL. 993 1.4 simonb v639 6/29/23 Fix SIGWINCH while reading tty. 994 1.4 simonb v640 7/10/23 Add lesstest to release. 995 1.4 simonb v641 7/10/23 Fix release. 996 1.4 simonb v642 7/10/23 Fix release. 997 1.4 simonb v643 7/20/23 Fix crash on Windows with -o. 998 1.1 tron */ 999 1.1 tron 1000 1.4 simonb char version[] = "643"; 1001