3 * Just invoke another "less" to display the help file.
5 * {{ This makes this function very simple, and makes changing the
6 * help file very easy, but it may present difficulties on
7 * (non-Unix) systems which do not supply the "system()" function. }}
17 extern int output_mode;
20 extern char *progname;
28 helpfile = find_helpfile();
31 error("Cannot find help file", NULL_PARG);
35 putenv("LESS=-+v -+E -+s -mHPmHELP -- ?eEND -- Press g to see "
36 "it again:Press RETURN for more., or q when done ");
37 cmd = (char *) ecalloc(strlen(helpfile) + strlen(progname) + 50,
40 sprintf(cmd, "-%s %s", progname, helpfile);
42 sprintf(cmd, "-%s -qVW4,4,76,23,Help %s", progname, helpfile);
44 cmd = (char *) ecalloc(strlen(helpfile) + strlen(progname) + 150,
47 "-%s -m -H -+E -+s '-PmHELP -- ?eEND -- Press g to see it again:Press RETURN for more., or q when done ' %s",
52 error("End of help", NULL_PARG);