diff options
author | 1996-10-14 15:23:53 +0000 | |
---|---|---|
committer | 1996-10-14 15:23:53 +0000 | |
commit | d0edb99dec75359ca063475ad1161f23069cfce9 (patch) | |
tree | 32504aafa9eac18bd9b77e066c854796fed177b4 | |
parent | support standalone. (diff) | |
download | wireguard-openbsd-d0edb99dec75359ca063475ad1161f23069cfce9.tar.xz wireguard-openbsd-d0edb99dec75359ca063475ad1161f23069cfce9.zip |
Control-F - move forward one screenful.
-rw-r--r-- | usr.bin/more/more.1 | 4 | ||||
-rw-r--r-- | usr.bin/more/more.c | 10 |
2 files changed, 9 insertions, 5 deletions
diff --git a/usr.bin/more/more.1 b/usr.bin/more/more.1 index 7746f0e0846..f0471de3eff 100644 --- a/usr.bin/more/more.1 +++ b/usr.bin/more/more.1 @@ -1,4 +1,4 @@ -.\" $OpenBSD: more.1,v 1.6 1996/10/14 09:26:47 etheisen Exp $ +.\" $OpenBSD: more.1,v 1.7 1996/10/14 15:23:53 etheisen Exp $ .\" Copyright (c) 1980 The Regents of the University of California. .\" All rights reserved. .\" @@ -249,7 +249,7 @@ window size. .IP \fIi\|\fPs skip \fIi\|\fP lines and print a screenful of lines .PP -.IP \fIi\|\fPf +.IP \fIi\|\fPf\ or\ \fIi\|\fP^F skip \fIi\fP screenfuls and print a screenful of lines .PP .IP \fIi\|\fPb diff --git a/usr.bin/more/more.c b/usr.bin/more/more.c index 42468e47d3e..7c14add7f6a 100644 --- a/usr.bin/more/more.c +++ b/usr.bin/more/more.c @@ -1,4 +1,4 @@ -/* $OpenBSD: more.c,v 1.5 1996/10/14 09:01:01 etheisen Exp $ */ +/* $OpenBSD: more.c,v 1.6 1996/10/14 15:23:54 etheisen Exp $ */ /*- * Copyright (c) 1980 The Regents of the University of California. * All rights reserved. @@ -1058,10 +1058,12 @@ register FILE *f; ret(dlines); /* XXX - Maybe broken on dumb terminals */ } + /* 4.3BSD more - Display next [count] lines of text */ case ' ': case 'z': if (nlines == 0) nlines = dlines; - else if (comchar == 'z') dlines = nlines; + else if (comchar == 'z') + dlines = nlines; ret (nlines); case 'd': case ctrl('D'): @@ -1071,7 +1073,9 @@ register FILE *f; case 'Q': end_it (); case 's': - case 'f': + /* POSIX.2 Move forward one screenfull */ + case 'f': /* POSIX.2 [count]f */ + case ctrl('F'): /* [count]control-F */ if (nlines == 0) nlines++; if (comchar == 'f') nlines *= dlines; |