xref: /openbsd-src/usr.bin/less/version.c (revision b2ea75c1b17e1a9a339660e7ed45cd24946b230e)
1 /*	$OpenBSD: version.c,v 1.2 2001/01/29 01:58:04 niklas Exp $	*/
2 
3 /*
4  * Copyright (c) 1984,1985,1989,1994,1995  Mark Nudelman
5  * All rights reserved.
6  *
7  * Redistribution and use in source and binary forms, with or without
8  * modification, are permitted provided that the following conditions
9  * are met:
10  * 1. Redistributions of source code must retain the above copyright
11  *    notice, this list of conditions and the following disclaimer.
12  * 2. Redistributions in binary form must reproduce the above copyright
13  *    notice in the documentation and/or other materials provided with
14  *    the distribution.
15  *
16  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY
17  * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
19  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR BE LIABLE
20  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
21  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
22  * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
23  * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
24  * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
25  * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
26  * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27  */
28 
29 
30 /*
31 ----------------------- CHANGE HISTORY --------------------------
32 
33        1/29/84	Allowed use on standard input
34        2/1/84	Added E, N, P commands
35        4/17/84	Added '=' command, 'stop' signal handling
36        4/20/84	Added line folding
37 v2     4/27/84	Fixed '=' command to use BOTTOM_PLUS_ONE,
38 		instead of TOP, added 'p' & 'v' commands
39 v3     5/3/84	Added -m and -t options, '-' command
40 v4     5/3/84	Added LESS environment variable
41 v5     5/3/84	New comments, fixed '-' command slightly
42 v6     5/15/84	Added -Q, visual bell
43 v7     5/24/84	Fixed jump_back(n) bug: n should count real
44 		lines, not folded lines.  Also allow number on G command.
45 v8     5/30/84	Re-do -q and -Q commands
46 v9     9/25/84	Added "+<cmd>" argument
47 v10    10/10/84	Fixed bug in -b<n> argument processing
48 v11    10/18/84	Made error() ring bell if \n not entered.
49 -----------------------------------------------------------------
50 v12    2/13/85	Reorganized signal handling and made portable to 4.2bsd.
51 v13    2/16/85	Reword error message for '-' command.
52 v14    2/22/85	Added -bf and -bp variants of -b.
53 v15    2/25/85	Miscellaneous changes.
54 v16    3/13/85	Added -u flag for backspace processing.
55 v17    4/13/85	Added j and k commands, changed -t default.
56 v18    4/20/85	Rewrote signal handling code.
57 v19    5/2/85	Got rid of "verbose" eq_message().
58 		Made search() scroll in some cases.
59 v20    5/21/85	Fixed screen.c ioctls for System V.
60 v21    5/23/85	Fixed some first_cmd bugs.
61 v22    5/24/85	Added support for no RECOMP nor REGCMP.
62 v23    5/25/85	Miscellanous changes and prettying up.
63 		Posted to USENET.
64 -----------------------------------------------------------------
65 v24    6/3/85	Added ti,te terminal init & de-init.
66 		(Thanks to Mike Kersenbrock)
67 v25    6/8/85	Added -U flag, standout mode underlining.
68 v26    6/9/85	Added -M flag.
69 		Use underline termcap (us) if it exists.
70 v27    6/15/85	Renamed some variables to make unique in
71 		6 chars.  Minor fix to -m.
72 v28    6/28/85	Fixed right margin bug.
73 v29    6/28/85	Incorporated M.Rose's changes to signal.c
74 v30    6/29/85	Fixed stupid bug in argument processing.
75 v31    7/15/85	Added -p flag, changed repaint algorithm.
76 		Added kludge for magic cookie terminals.
77 v32    7/16/85	Added cat_file if output not a tty.
78 v33    7/23/85	Added -e flag and EDITOR.
79 v34    7/26/85	Added -s flag.
80 v35    7/27/85	Rewrote option handling; added option.c.
81 v36    7/29/85	Fixed -e flag to work if not last file.
82 v37    8/10/85	Added -x flag.
83 v38    8/19/85	Changed prompting; created prompt.c.
84 v39    8/24/85	(Not -p) does not initially clear screen.
85 v40    8/26/85	Added "skipping" indicator in forw().
86 		Posted to USENET.
87 -----------------------------------------------------------------
88 v41    9/17/85	ONLY_RETURN, control char commands,
89 		faster search, other minor fixes.
90 v42    9/25/85	Added ++ command line syntax;
91 		ch_fsize for pipes.
92 v43    10/15/85	Added -h flag, changed prim.c algorithms.
93 v44    10/16/85	Made END print in all cases of eof;
94 		ignore SIGTTOU after receiv ing SIGTSTP.
95 v45    10/16/85	Never print backspaces unless -u.
96 v46    10/24/85	Backwards scroll in jump_loc.
97 v47    10/30/85	Fixed bug in edit(): *first_cmd==0
98 v48    11/16/85	Use TIOCSETN instead of TIOCSETP.
99 		Added marks (m and ' commands).
100 		Posted to USENET.
101 -----------------------------------------------------------------
102 v49    1/9/86	Fixed bug: signal didn't clear mcc.
103 v50    1/15/86	Added ' (quote) to gomark.
104 v51    1/16/86	Added + cmd, fixed problem if first_cmd
105 		fails, made g cmd sort of "work" on pipes
106 		ev en if bof is no longer buffered.
107 v52    1/17/86	Made short files work better.
108 v53    1/20/86	Added -P option.
109 v54    1/20/86	Changed help to use HELPFILE.
110 v55    1/23/86	Messages work better if not tty output.
111 v56    1/24/86	Added -l option.
112 v57    1/31/86	Fixed -l to get confirmation before
113 		ov erwriting an existing file.
114 v58    8/28/86	Added filename globbing.
115 v59    9/15/86	Fixed some bugs with very long filenames.
116 v60    9/26/86	Incorporated changes from Leith (Casey)
117 		Leedom for boldface and -z option.
118 v61    9/26/86	Got rid of annoying repaints after ! cmd.
119 		Posted to USENET.
120 -----------------------------------------------------------------
121 v62    12/23/86	Added is_directory(); change -z default to
122 		-1 instead of 24; cat-and-exit if -e and
123 		file is less than a screenful.
124 v63    1/8/87	Fixed bug in cat-and-exit if > 1 file.
125 v64    1/12/87	Changed puts/putstr, putc/putchr,
126 		getc/getchr to av oid name conflict with
127 		stdio functions.
128 v65    1/26/87	Allowed '-' command to change NUMBER
129 		v alued options (thanks to Gary Puckering)
130 v66    2/13/87	Fixed bug: prepaint should use force=1.
131 v67    2/24/87	Added !! and % expansion to ! command.
132 v68    2/25/87	Added SIGWINCH and TIOCGWINSZ support;
133 		changed is_directory to bad_file.
134 		(thanks to J. Robert Ward)
135 v69    2/25/87	Added SIGWIND and WIOCGETD (for Unix PC).
136 v70    3/13/87	Changed help cmd from 'h' to 'H'; better
137 		error msgs in bad_file, errno_message.
138 v71    5/11/87	Changed -p to -c, made triple -c/-C
139 		for clear-eol like more's -c.
140 v72    6/26/87	Added -E, -L, use $SHELL in lsystem().
141 		(thanks to Stev e Spearman)
142 v73    6/26/87	Allow Examine "#" for previous file.
143 		Posted to USENET 8/25/87.
144 -----------------------------------------------------------------
145 v74    9/18/87	Fix conflict in EOF symbol with stdio.h,
146 		Make os.c more portable to BSD.
147 v75    9/23/87	Fix problems in get_term (thanks to
148 		Paul Eggert); new backwards scrolling in
149 		jump_loc (thanks to Marion Hakanson).
150 v76    9/23/87	Added -i flag; allow single "!" to
151 		inv oke a shell (thanks to Franco Barber).
152 v77    9/24/87	Added -n flag and line number support.
153 v78    9/25/87	Fixed problem with prompts longer than
154 		the screen width.
155 v79    9/29/87	Added the _ command.
156 v80    10/6/87	Allow signal to break out of linenum scan.
157 v81    10/6/87	Allow -b to be changed from within less.
158 v82    10/7/87	Add cmd_decode to use a table for key
159 		binding (thanks to Dav id Nason).
160 v83    10/9/87	Allow .less file for user-defined keys.
161 v84    10/11/87	Fix -e/-E problems (thanks to Felix Lee).
162 v85    10/15/87	Search now keeps track of line numbers.
163 v86    10/20/87	Added -B option and autobuf; fixed
164 		"pipe error" bug.
165 v87    3/1/88	Fix bug re BSD signals while reading file.
166 v88    3/12/88	Use new format for -P option (thanks to
167 		der Mouse), allow "+-c" without message,
168 		fix bug re BSD hangup.
169 v89    3/18/88	Turn off line numbers if linenum scan
170 		is interrupted.
171 v90    3/30/88	Allow -P from within less.
172 v91    3/30/88	Added tags file support (new -t option)
173 		(thanks to Brian Campbell).
174 v92    4/4/88	Added -+option syntax.
175 v93    4/11/88	Add support for slow input (thanks to
176 		Joe Orost & apologies for taking almost
177 		3 years to get this in!)
178 v94    4/11/88	Redo reading/signal stuff.
179 v95    4/20/88	Repaint screen better after signal.
180 v96    4/21/88	Add /! and ?! commands.
181 v97    5/17/88	Allow -l/-L from within less.
182 		Eliminate some static arrays (use calloc).
183 		Posted to USENET.
184 -----------------------------------------------------------------
185 v98    10/14/88	Fix incorrect calloc call; uninitialized
186 		var in exec_mca; core dump on unknown TERM.
187 		Make v cmd work if past last line of file.
188 		Fix some signal bugs.
189 v99    10/29/88	Allow space between -X and string,
190 		when X is a string-valued option.
191 v100   1/5/89	Fix globbing bug when $SHELL not set;
192 		allow spaces after -t command.
193 v101   1/6/89	Fix problem with long (truncated) lines
194 		in tags file (thanks to Neil Dixon).
195 v102   1/6/89	Fix bug with E# when no prev file;
196 		allow spaces after -l command.
197 v103   3/14/89	Add -N, -f and -? options.  Add z and w
198 		commands.  Add %L for prompt strings.
199 v104   3/16/89	Added EDITPROTO.
200 v105   3/20/89	Fix bug in find_linenum which cached
201 		incorrectly on long lines.
202 v106   3/31/89	Added -k option and multiple lesskey
203 		files.
204 v107   4/27/89	Add 8-bit char support and -g option.
205 		Split option code into 3 files.
206 v108   5/5/89	Allocate position table dynamically
207 		(thanks to Paul Eggert); change % command
208 		from "percent" to vi-style brace finder.
209 v109   5/10/89	Added ESC-% command, split prim.c.
210 v110   5/24/89	Fixed bug in + option; fixed repaint bug
211 		under Sun windows (thanks to Paul Eggert).
212 v111   5/25/89	Generalized # and % expansion; use
213 		calloc for some error messages.
214 v112   5/30/89	Get rid of ESC-%, add {}()[] commands.
215 v113   5/31/89	Optimize lseeks (thanks to Paul Eggert).
216 v114   7/25/89	Added ESC-/ and ESC-/! commands.
217 v115   7/26/89	Added ESC-n command.
218 v116   7/31/89	Added find_pos to optimize g command.
219 v117   8/1/89	Change -f option to -r.
220 v118   8/2/89	Save positions for all previous files,
221 		not just the immediately previous one.
222 v119   8/7/89	Save marks across file boundaries.
223 		Add file handle stuff.
224 v120   8/11/89	Add :ta command.
225 v121   8/16/89	Add -f option.
226 v122   8/30/89	Fix performance with many buffers.
227 v123   8/31/89	Verbose prompts for string options.
228 		Posted beta to USENET.
229 -----------------------------------------------------------------
230 v124   9/18/89	Reorganize search commands,
231 		N = rev, ESC-n = span, add ESC-N.
232 v125   9/18/89	Fix tab bug (thanks to Alex Liu).
233 		Fix EOF bug when both -w and -c.
234 v126   10/25/89	Add -j option.
235 v127   10/27/89	Fix problems with blank lines before BOF.
236 v128   10/27/89	Add %bj, etc. to prompt strings.
237 v129   11/3/89	Add -+,-- commands; add set-option and
238 		unset-option to lesskey.
239 v130   11/6/89	Generalize A_EXTRA to string, remove
240 		set-option, unset-option from lesskey.
241 v131   11/7/89	Changed name of EDITPROTO to LESSEDIT.
242 v132   11/8/89	Allow editing of command prefix.
243 v133   11/16/89	Add -y option (thanks to Jeff Sullivan).
244 v134   12/1/89	Glob filenames in the -l command.
245 v135   12/5/89	Combined {}()[] commands into one, and
246 		added ESC-^F and ESC-^B commands.
247 v136   1/20/90	Added -S, -R flags.  Added | command.
248 		Added warning for binary files. (thanks
249 		to Richard Brittain and J. Sullivan).
250 v137   1/21/90	Rewrote horrible pappend code.
251 		Added * notation for hi-bit chars.
252 v138   1/24/90	Fix magic cookie terminal handling.
253 		Get rid of "cleanup" loop in ch_get.
254 v139   1/27/90	Added MSDOS support.  (many thanks
255 		to Richard Brittain).
256 v140   2/7/90	Editing a new file adds it to the
257 		command line list.
258 v141   2/8/90	Add edit_list for editing >1 file.
259 v142   2/10/90	Add :x command.
260 v143   2/11/90	Add * and @ modifies to search cmds.
261 		Change ESC-/ cmd from /@* to / *.
262 v144   3/1/90	Messed around with ch_zero;
263 		no real change.
264 v145   3/2/90	Added -R and -v/-V for MSDOS;
265 		renamed FILENAME to avoid conflict.
266 v146   3/5/90	Pull cmdbuf functions out of command.c
267 v147   3/7/90	Implement ?@; fix multi-file edit bugs.
268 v148   3/29/90	Fixed bug in :e<file> then :e#.
269 v149   4/3/90	Change error,ierror,query to use PARG.
270 v150   4/6/90	Add LESS_CHARSET, LESS_CHARDEF.
271 v151   4/13/90	Remove -g option; clean up ispipe.
272 v152   4/14/90	lsystem() closes input file, for
273 		editors which require exclusive open.
274 v153   4/18/90	Fix bug if SHELL unset;
275 		fix bug in overstrike control char.
276 v154   4/25/90	Output to fd 2 via buffer.
277 v155   4/30/90	Ignore -i if uppercase in pattern
278 		(thanks to Michael Rendell.)
279 v156   5/3/90	Remove scroll limits in forw() & back();
280 		causes problems with -c.
281 v157   5/4/90	Forward search starts at next real line
282 		(not screen line) after jump target.
283 v158   6/14/90	Added F command.
284 v159   7/29/90	Fix bug in exiting: output not flushed.
285 v160   7/29/90	Clear screen before initial output w/ -c.
286 v161   7/29/90	Add -T flag.
287 v162   8/14/90	Fix bug with +F on command line.
288 v163   8/21/90	Added LESSBINFMT variable.
289 v164   9/5/90	Added -p, LINES, COLUMNS and
290 		unset mark ' == BOF, for 1003.2 D5.
291 v165   9/6/90	At EOF with -c set, don't display empty
292 		screen when try to page forward.
293 v166   9/6/90	Fix G when final line in file wraps.
294 v167   9/11/90	Translate CR/LF -> LF for 1003.2.
295 v168   9/13/90	Return to curr file if "tag not found".
296 v169   12/12/90	G goes to EOF even if file has grown.
297 v170   1/17/91	Add optimization for BSD _setjmp;
298 		fix #include ioctl.h TERMIO problem.
299 		(thanks to Paul Eggert)
300 		Posted to USENET.
301 -----------------------------------------------------------------
302 v171   3/6/91	Fix -? bug in get_filename.
303 v172   3/15/91	Fix G bug in empty file.
304 		Fix bug with ?\n and -i and uppercase
305 		pattern at EOF!
306 		(thanks to Paul Eggert)
307 v173   3/17/91	Change N cmd to not permanently change
308 		direction. (thanks to Brian Matthews)
309 v174   3/18/91	Fix bug with namelogfile not getting
310 		cleared when change files.
311 v175   3/18/91	Fix bug with ++cmd on command line.
312 		(thanks to Jim Meyering)
313 v176   4/2/91	Change | to not force current screen,
314 		include marked line, start/end from
315 		top of screen.  Improve search speed.
316 		(thanks to Don Mears)
317 v177   4/2/91	Add LESSHELP variable.
318 		Fix bug with F command with -e.
319 		Try /dev/tty for input before using fd 2.
320 		Patches posted to USENET  4/2/91.
321 -----------------------------------------------------------------
322 v178   4/8/91	Fixed bug in globbing logfile name.
323 		(thanks to Jim Meyering)
324 v179   4/9/91	Allow negative -z for screen-relative.
325 v180   4/9/91	Clear to eos rather than eol if "db";
326 		don't use "sr" if "da".
327 		(thanks to Tor Lillqvist)
328 v181   4/18/91	Fixed bug with "negative" chars 80 - FF.
329 		(thanks to Benny Sander Hofmann)
330 v182   5/16/91	Fixed bug with attribute at EOL.
331 		(thanks to Brian Matthews)
332 v183   6/1/91	Rewrite linstall to do smart config.
333 v184   7/11/91	Process \b in searches based on -u
334 		rather than -i.
335 v185   7/11/91	-Pxxx sets short prompt; assume SIGWINCH
336 		after a SIGSTOP. (thanks to Ken Laprade)
337 -----------------------------------------------------------------
338 v186   4/20/92	Port to MS-DOS (Microsoft C).
339 v187   4/23/92	Added -D option & TAB_COMPLETE_FILENAME.
340 v188   4/28/92	Added command line editing features.
341 v189   12/8/92	Fix mem overrun in anscreen.c:init;
342 		fix edit_list to recover from bin file.
343 v190   2/13/93	Make TAB enter one filename at a time;
344 		create ^L with old TAB functionality.
345 v191   3/10/93	Defer creating "flash" page for MS-DOS.
346 v192   9/6/93	Add BACK-TAB.
347 v193   9/17/93	Simplify binary_file handling.
348 v194   1/4/94	Add rudiments of alt_filename handling.
349 v195   1/11/94	Port back to Unix; support keypad.
350 -----------------------------------------------------------------
351 v196   6/7/94	Fix bug with bad filename; fix IFILE
352 		type problem. (thanks to David MacKenzie)
353 v197   6/7/94	Fix bug with .less tables inserted wrong.
354 v198   6/23/94	Use autoconf installation technology.
355 		(thanks to David MacKenzie)
356 v199   6/29/94	Fix MS-DOS build (thanks to Tim Wiegman).
357 v200   7/25/94	Clean up copyright, minor fixes.
358 	Posted to prep.ai.mit.edu
359 -----------------------------------------------------------------
360 v201   7/27/94	Check for no memcpy; add casts to calloc;
361 		look for regcmp in libgen.a.
362 		(thanks to Kaveh Ghazi).
363 v202   7/28/94	Fix bug in edit_next/edit_prev with
364 		non-existant files.
365 v203   8/2/94	Fix a variety of configuration bugs on
366 		various systems. (thanks to Sakai
367 		Kiyotaka, Harald Koenig, Bjorn Brox,
368 		Teemu Rantanen, and Thorsten Lockert)
369 v204   8/3/94	Use strerror if available.
370 		(thanks to J.T. Conklin)
371 v205   8/5/94	Fix bug in finding "me" termcap entry.
372 		(thanks to Andreas Stolcke)
373 8/10/94 	v205+: Change BUFSIZ to LBUFSIZE to avoid name
374 		conflict with stdio.h.
375 		Posted to prep.ai.mit.edu
376 -----------------------------------------------------------------
377 v206   8/10/94	Use initial_scrpos for -t to avoid
378 		displaying first page before init().
379 		(thanks to Dominique Petitpierre)
380 v207   8/12/94	Fix bug if stdout is not tty.
381 v208   8/16/94	Fix bug in close_altfile if goto err1
382 		in edit_ifile. (Thanks to M.J. Hewitt)
383 v209   8/16/94	Change scroll to wscroll to avoid
384 		conflict with library function.
385 v210   8/16/94	Fix bug with bold on 8 bit chars.
386 		(thanks to Vitor Duarte)
387 v211   8/16/94	Don't quit on EOI in jump_loc / forw.
388 v212   8/18/94	Use time_t if available.
389 v213   8/20/94	Allow ospeed to be defined in termcap.h.
390 v214   8/20/94	Added HILITE_SEARCH, -F, ESC-u cmd.
391 		(thanks to Paul Lew and Bob Byrnes)
392 v215   8/23/94	Fix -i toggle behavior.
393 v216   8/23/94	Process BS in all searches, not only -u.
394 v217   8/24/94	Added -X flag.
395 v218   8/24/94	Reimplement undo_search.
396 v219   8/24/94	Find tags marked with line number
397 		instead of pattern.
398 v220   8/24/94	Stay at same position after SIG_WINCH.
399 v221   8/24/94	Fix bug in file percentage in big file.
400 v222   8/25/94	Do better if can't reopen current file.
401 v223   8/27/94	Support setlocale.
402 		(thanks to Robert Joop)
403 v224   8/29/94	Revert v216: process BS in search
404 		only if -u.
405 v225   9/6/94	Rewrite undo_search again: toggle.
406 v226   9/15/94	Configuration fixes.
407 		(thanks to David MacKenzie)
408 v227   9/19/94	Fixed strerror config problem.
409 		Posted to prep.ai.mit.edu
410 -----------------------------------------------------------------
411 v228   9/21/94	Fix bug in signals: repeated calls to
412 		get_editkeys overflowed st_edittable.
413 v229   9/21/94	Fix "Nothing to search" error if -a
414 		and SRCH_PAST_EOF.
415 v230   9/21/94	Don't print extra error msg in search
416 		after regerror().
417 v231   9/22/94	Fix hilite bug if search matches 0 chars.
418 		(thanks to John Polstra)
419 v232   9/23/94	Deal with weird systems that have
420 		termios.h but not tcgetattr().
421 		Posted to prep.ai.mit.edu
422 -----------------------------------------------------------------
423 v233   9/26/94	Use get_term() instead of pos_init() in
424 		psignals to re-get lower_left termcap.
425 		(Thanks to John Malecki)
426 v234   9/26/94	Make MIDDLE closer to middle of screen.
427 v235   9/27/94	Use local strchr if system doesn't have.
428 v236   9/28/94	Don't use libucb; use libterm if
429 		libtermcap & libcurses doesn't work.
430 		(Fix for Solaris; thanks to Frank Kaefer)
431 v237   9/30/94	Use system isupper() etc if provided.
432 		Posted to prep.ai.mit.edu
433 -----------------------------------------------------------------
434 v238   10/6/94	Make binary non-blinking if LESSBINFMT
435 		is set to a string without a *.
436 v239   10/7/94	Don't let delimit_word run back past
437 		beginning of cmdbuf.
438 v240   10/10/94	Don't write into termcap buffer.
439 		(Thanks to Benoit Speckel)
440 v241   10/13/94	New lesskey file format.
441 		Don't expand filenames in search command.
442 v242   10/14/94	Allow lesskey specification of "literal".
443 v243   10/14/94	Add #stop command to lesskey.
444 v244   10/16/94	Add -f flag to lesskey.
445 v245   10/25/94	Allow TAB_COMPLETE_FILENAME to be undefd.
446 v246   10/27/94	Move help file to /usr/local/share.
447 v247   10/27/94	Add -V option.
448 v248   11/5/94	Add -V option to lesskey.
449 v249   11/5/94	Remove -f flag from lesskey; default
450 		input file is ~/.lesskey.in, not stdin.
451 v250   11/7/94	Lesskey input file "-" means stdin.
452 v251   11/9/94	Convert cfgetospeed result to ospeed.
453 		(Thanks to Andrew Chernov)
454 v252   11/16/94	Change default lesskey input file from
455 		.lesskey.in to .lesskey.
456 		Posted to prep.ai.mit.edu
457 -----------------------------------------------------------------
458 v253   11/21/94	Fix bug when tags file has a backslash.
459 v254   12/6/94	Fix -k option.
460 v255   12/8/94	Add #define EXAMINE to disable :e etc.
461 v256   12/10/94	Change highlighting: only highlite search
462 		results (but now it is reliable).
463 v257   12/10/94	Add goto_line and repaint_highlight
464 		to optimize highlight repaints.
465 v258   12/12/94	Fixup in hilite_line if BS_SPECIAL.
466 v259   12/12/94	Convert to autoconf 2.0.
467 v260   12/13/94	Add SECURE define.
468 v261   12/14/94	Use system WERASE char as EC_W_BACKSPACE.
469 v262   12/16/94	Add -g/-G flag and screen_hilite.
470 v263   12/20/94	Reimplement/optimize -G flag behavior.
471 v264   12/23/94	Allow EXTRA string after line-edit cmd
472 		in lesskey file.
473 v265   12/24/94	Add LESSOPEN=|cmd syntax.
474 v266   12/26/94	Add -I flag.
475 v267   12/28/94	Formalize the four-byte header emitted
476 		by a LESSOPEN pipe.
477 v268   12/28/94	Get rid of four-byte header.
478 v269   1/2/95	Close alt file before open new one.
479 		Avoids multiple popen().
480 v270   1/3/95	Use VISUAL; use S_ISDIR/S_ISREG; fix
481 		config problem with Solaris POSIX regcomp.
482 v271   1/4/95	Don't quit on read error.
483 v272   1/5/95	Get rid of -L.
484 v273   1/6/95	Fix ch_ungetchar bug; don't call
485 		LESSOPEN on a pipe.
486 v274   1/6/95	Ported to OS/2 (thanks to Kai Uwe Rommel)
487 v275   1/18/95	Fix bug if toggle -G at EOF.
488 v276   1/30/95	Fix OS/2 version.
489 v277   1/31/95	Add "next" charset; don't display ^X
490 		for X > 128.
491 v278   2/14/95	Change default for -G.
492 		Posted to prep.ai.mit.edu
493 -----------------------------------------------------------------
494 v279   2/22/95	Add GNU options --help, --version.
495 		Minor config fixes.
496 v280   2/24/95	Clean up calls to glob(); don't set #
497 		if we can't open the new file.
498 v281   2/24/95	Repeat search should turn on hilites.
499 v282   3/2/95	Minor fixes.
500 v283   3/2/95	Fix homefile; make OS2 look in $HOME.
501 v284   3/2/95	Error if "v" on LESSOPENed file;
502 		"%" figures out file size on pipe.
503 v285   3/7/95	Don't set # in lsystem;
504 		lesskey try $HOME first.
505 v286   3/7/95	Reformat change history (too much free time?).
506 v287   3/8/95	Fix hilite bug if overstrike multiple chars.
507 v288   3/8/95	Allow lesskey to override get_editkey keys.
508 v289   3/9/95	Fix adj_hilite bug when line gets processed by
509 		hilite_line more than once.
510 v290   3/9/95	Make configure automatically.  Fix Sequent problem
511 		with incompatible sigsetmask().
512 
513 */
514 
515 char version[] = "290";
516