SCCS-vsn: usr.bin/more/option.c 5.8
SCCS-vsn: usr.bin/more/more.1 5.9
.\" IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
.\" WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
.\"
.\" IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
.\" WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
.\"
-.\" @(#)more.1 5.8 (Berkeley) %G%
+.\" @(#)more.1 5.9 (Berkeley) %G%
.\"
.TH MORE 1
.SH NAME
more \- file perusal filter for crt viewing
.SH SYNOPSIS
.\"
.TH MORE 1
.SH NAME
more \- file perusal filter for crt viewing
.SH SYNOPSIS
-.B "more [-ceinpus] [-t tag] [-x tabs] [-/ pattern] [-#] [file ...]"
+.B "more [-ceinus] [-t tag] [-x tabs] [-/ pattern] [-#] [file ...]"
.SH DESCRIPTION
.I More
is a filter for paging through text one screenful at a time. It
.SH DESCRIPTION
.I More
is a filter for paging through text one screenful at a time. It
Suppressing line numbers with the -n flag will avoid this problem.
Using line numbers means: the line number will be displayed in the
= command, and the v command will pass the current line number to the editor.
Suppressing line numbers with the -n flag will avoid this problem.
Using line numbers means: the line number will be displayed in the
= command, and the v command will pass the current line number to the editor.
-.IP -p
-The -p option gives you a colon (``:'') for a prompt, rather than
-the more verbose traditional prompt.
.IP -s
The -s option causes
consecutive blank lines to be squeezed into a single blank line.
.IP -s
The -s option causes
consecutive blank lines to be squeezed into a single blank line.
-static char sccsid[] = "@(#)option.c 5.7 (Berkeley) %G%";
+static char sccsid[] = "@(#)option.c 5.8 (Berkeley) %G%";
#endif /* not lint */
#include <stdio.h>
#endif /* not lint */
#include <stdio.h>
int squeeze; /* Squeeze multiple blank lines into one */
int tabstop = 8; /* Tab settings */
int tagoption;
int squeeze; /* Squeeze multiple blank lines into one */
int tabstop = 8; /* Tab settings */
int tagoption;
char *firstsearch;
extern int sc_height;
char *firstsearch;
extern int sc_height;
(*a)[0] = '-';
optind = 1; /* called twice, re-init getopt. */
(*a)[0] = '-';
optind = 1; /* called twice, re-init getopt. */
- while ((ch = getopt(argc, argv, "0123456789/:ceinpst:ux:")) != EOF)
+ while ((ch = getopt(argc, argv, "0123456789/:ceinst:ux:")) != EOF)
switch((char)ch) {
case '0': case '1': case '2': case '3': case '4':
case '5': case '6': case '7': case '8': case '9':
switch((char)ch) {
case '0': case '1': case '2': case '3': case '4':
case '5': case '6': case '7': case '8': case '9':
case 'n':
linenums = 0;
break;
case 'n':
linenums = 0;
break;
- case 'p':
- terseprompt = 1;
- break;
case 's':
squeeze = 1;
break;
case 's':
squeeze = 1;
break;
case '?':
default:
fprintf(stderr,
case '?':
default:
fprintf(stderr,
- "usage: less [-ceinpus] [-t tag] [-x tabs] [-/ pattern] [-#] [file ...]\n");
+ "usage: less [-ceinus] [-t tag] [-x tabs] [-/ pattern] [-#] [file ...]\n");
exit(1);
}
return(optind);
exit(1);
}
return(optind);