We'll go for always having a moreproc after mhl. If you just want to cat out,
then use `-moreproc cat'. mhl's very basic paging facility will be removed.
file help width)" - 'c[-1,-file]' -f - 'c[-1,-form]' -K mhfile -- scan
compctl -K mhfseq -x 's[+][@]' -K mhcomp -S / -q - \
file help width)" - 'c[-1,-file]' -f - 'c[-1,-form]' -K mhfile -- scan
compctl -K mhfseq -x 's[+][@]' -K mhcomp -S / -q - \
- 's[-]' -k "(draft form moreproc nomoreproc header noheader \
+ 's[-]' -k "(draft form moreproc header noheader \
showproc length width help)" - 'C[-1,-(show|more)proc]' -c - \
'c[-1,-file]' -f - 'c[-1,-form]' -K mhfile - \
'c[-1,-length]' -s '$LINES' - 'c[-1,-width]' -s '$COLUMNS' -- show next prev
showproc length width help)" - 'C[-1,-(show|more)proc]' -c - \
'c[-1,-file]' -f - 'c[-1,-form]' -K mhfile - \
'c[-1,-length]' -s '$LINES' - 'c[-1,-width]' -s '$COLUMNS' -- show next prev
.IR columns ]
.RB [ \-moreproc
.IR program ]
.IR columns ]
.RB [ \-moreproc
.IR program ]
.RI [ files
.IR \&... ]
.RB [ \-version ]
.RI [ files
.IR \&... ]
.RB [ \-version ]
.IR columns ]
.RB [ \-moreproc
.IR program ]
.IR columns ]
.RB [ \-moreproc
.IR program ]
.RI [ files
.IR \&... ]
.RB [ \-version ]
.RI [ files
.IR \&... ]
.RB [ \-version ]
{ "form formfile", 0 },
#define PROGSW 6
{ "moreproc program", 0 },
{ "form formfile", 0 },
#define PROGSW 6
{ "moreproc program", 0 },
-#define NPROGSW 7
- { "nomoreproc", 0 },
-#define LENSW 8
{ "nobody", -6 },
{ NULL, 0 }
};
{ "nobody", -6 },
{ NULL, 0 }
};
int
main(int argc, char **argv)
{
int
main(int argc, char **argv)
{
- int length = 0, nomore = 0;
int i, width = 0, vecp = 0;
char *cp, *folder = NULL, *form = NULL;
char buf[BUFSIZ], *files[MAXARGS];
int i, width = 0, vecp = 0;
char *cp, *folder = NULL, *form = NULL;
char buf[BUFSIZ], *files[MAXARGS];
adios(NULL, "missing argument to %s",
argp[-2]);
continue;
adios(NULL, "missing argument to %s",
argp[-2]);
continue;
- case NPROGSW:
- nomore++;
- continue;
case LENSW:
if (!(cp = *argp++) || *cp == '-')
case LENSW:
if (!(cp = *argp++) || *cp == '-')
folder = getenv("mhfolder");
if (isatty(fileno(stdout))) {
folder = getenv("mhfolder");
if (isatty(fileno(stdout))) {
- if (!nomore && !sc_hardcopy() && moreproc && *moreproc != '\0') {
+ if (!sc_hardcopy() && moreproc && *moreproc != '\0') {
if (mhl_action) {
SIGNAL(SIGINT, SIG_IGN);
SIGNAL2(SIGQUIT, quitser);
if (mhl_action) {
SIGNAL(SIGINT, SIG_IGN);
SIGNAL2(SIGQUIT, quitser);
{ "version", 0 },
#define HELPSW 13
{ "help", 0 },
{ "version", 0 },
#define HELPSW 13
{ "help", 0 },
/*
** switches for moreproc/mhlproc
*/
/*
** switches for moreproc/mhlproc
*/
{ "moreproc program", -4 },
{ "moreproc program", -4 },
-#define NPROGSW 17
- { "nomoreproc", -3 },
-#define LENSW 18
/*
** switches for debugging
*/
/*
** switches for debugging
*/
{ "debug", -5 },
{ NULL, 0 }
};
{ "debug", -5 },
{ NULL, 0 }
};
extern int serialsw;
extern char *progsw;
extern int nolist;
extern int serialsw;
extern char *progsw;
extern int nolist;
-extern int nomore; /* flags for moreproc/header display */
extern char *formsw;
/* mhmisc.c */
extern char *formsw;
/* mhmisc.c */
adios(NULL, "missing argument to %s",
argp[-2]);
continue;
adios(NULL, "missing argument to %s",
argp[-2]);
continue;
- case NPROGSW:
- nomore++;
- continue;
case LENSW:
case WIDTHSW:
case LENSW:
case WIDTHSW:
char *progsw = NULL;
/* flags for moreproc/header display */
char *progsw = NULL;
/* flags for moreproc/header display */
char *formsw = NULL;
pid_t xpid = 0;
char *formsw = NULL;
pid_t xpid = 0;
vec[vecp++] = "-nobody";
vec[vecp++] = ct->c_file;
vec[vecp++] = "-nobody";
vec[vecp++] = ct->c_file;
- /*
- ** If we've specified -(no)moreproc,
- ** then just pass that along.
- */
- if (nomore) {
- vec[vecp++] = "-nomoreproc";
- } else if (progsw) {
+ /* If we've specified -moreproc, then just pass that along. */
+ if (progsw) {
vec[vecp++] = "-moreproc";
vec[vecp++] = progsw;
}
vec[vecp++] = "-moreproc";
vec[vecp++] = progsw;
}
{ "form formfile", 0 },
#define PROGSW 5
{ "moreproc program", 0 },
{ "form formfile", 0 },
#define PROGSW 5
{ "moreproc program", 0 },
-#define NPROGSW 6
- { "nomoreproc", 0 },
-#define LENSW 7
{ "showproc program", 0 },
{ "showproc program", 0 },
{ "showmimeproc program", 0 },
{ "showmimeproc program", 0 },
{ "file file", -4 }, /* interface from showfile */
{ "file file", -4 }, /* interface from showfile */
{ "help", 0 },
{ NULL, 0 }
};
{ "help", 0 },
{ NULL, 0 }
};
ambigsw(cp, switches);
done(1);
case UNKWNSW:
ambigsw(cp, switches);
done(1);
case UNKWNSW:
vec[vecp++] = --cp;
continue;
vec[vecp++] = --cp;
continue;