README (most-5.1.0) | : | README (most-5.2.0) | ||
---|---|---|---|---|
This file contains the installation instructions for the MOST pager. | ||||
For basic information (screenshots, etc) about MOST, visit | ||||
<https://www.jedsoft.org/most/>. | ||||
Compiling MOST requires an ANSI C compiler. In addition you MUST have | Compiling MOST requires an ANSI C compiler. In addition you MUST have | |||
a copy of the S-Lang library version 2.X. Version 1 is no longer | a copy of the S-Lang library version 2.X. Version 1 is no longer | |||
supported. This library is available from | supported. This library is available from | |||
<http://www.jedsoft.org/slang/>. | <http://www.jedsoft.org/slang/>. | |||
INSTALLATION INSTRUCTIONS | INSTALLATION INSTRUCTIONS | |||
On Unix, you should be able to simply type: | On Unix, you should be able to simply type: | |||
./configure; make | ./configure; make | |||
skipping to change at line 62 | skipping to change at line 66 | |||
See `lesskeys.rc' for an example of a key definition file that | See `lesskeys.rc' for an example of a key definition file that | |||
causes MOST to emulate the `less' pager. See also most-fun.txt | causes MOST to emulate the `less' pager. See also most-fun.txt | |||
for a list of functions that can be used for key definitions. The | for a list of functions that can be used for key definitions. The | |||
file `most.rc' list the bindings that are built-in to the | file `most.rc' list the bindings that are built-in to the | |||
viewer. | viewer. | |||
4. If MOST_HELP is defined to point to an existing file, MOST will load a | 4. If MOST_HELP is defined to point to an existing file, MOST will load a | |||
file as a help file. This is useful for describing custom keymaps. | file as a help file. This is useful for describing custom keymaps. | |||
Any problems with MOST should be reported to jed@jedsoft.org. | Any problems with MOST should be reported to jed@jedsoft.org. | |||
[Note also that this is really the first non-trivial C program that | ||||
I ever wrote. Because of this, much of the code appears very | ||||
amateurish. For example, I tried very hard to avoid C constructs | ||||
that some authors strongly discourage, e.g., goto, continue, | ||||
break. Of course this made some of the code convoluted, e.g., | ||||
contrast | ||||
int test = 1; | ||||
while (test) | ||||
{ | ||||
function (); | ||||
if (-1 == some_function ()) | ||||
test = 0; | ||||
if (test) | ||||
some_other_function (); | ||||
} | ||||
with: | ||||
while (1) | ||||
{ | ||||
function (); | ||||
if (-1 == some_function ()) break; | ||||
some_other_function (); | ||||
} | ||||
I have since concluded that many text-book authors never actually | ||||
wrote anything non-trivial. Whenever I work on MOST, I try to make | ||||
some changes in an effort to clean it up. ] | ||||
End of changes. 2 change blocks. | ||||
0 lines changed or deleted | 4 lines changed or added |