diff options
author | etheisen <etheisen@cvs.openbsd.org> | 1996-10-14 15:23:55 +0000 |
---|---|---|
committer | etheisen <etheisen@cvs.openbsd.org> | 1996-10-14 15:23:55 +0000 |
commit | 403ad3ee6286c4cc0d5ac2aa69380310d3914889 (patch) | |
tree | 9df7b1e07531dc7cd57aff201cc802207da33b84 /usr.bin/more/more.c | |
parent | 93d475296b9e85f8446382ec288b6a074815c564 (diff) |
Control-F - move forward one screenful.
Diffstat (limited to 'usr.bin/more/more.c')
-rw-r--r-- | usr.bin/more/more.c | 10 |
1 files changed, 7 insertions, 3 deletions
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; |