diff options
author | wens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-06-04 15:47:33 +0800 |
---|---|---|
committer | wens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-06-04 15:47:33 +0800 |
commit | 77fc10e4db19075fdc0b48bd5e584fa854d430a5 (patch) | |
tree | 9532c230ce14af31a7340ee84828ec2b5fb27d81 /mbbsd/more.c | |
parent | 32582a2d08802d587212960804a100e9ff9935bb (diff) | |
download | pttbbs-77fc10e4db19075fdc0b48bd5e584fa854d430a5.tar pttbbs-77fc10e4db19075fdc0b48bd5e584fa854d430a5.tar.gz pttbbs-77fc10e4db19075fdc0b48bd5e584fa854d430a5.tar.bz2 pttbbs-77fc10e4db19075fdc0b48bd5e584fa854d430a5.tar.lz pttbbs-77fc10e4db19075fdc0b48bd5e584fa854d430a5.tar.xz pttbbs-77fc10e4db19075fdc0b48bd5e584fa854d430a5.tar.zst pttbbs-77fc10e4db19075fdc0b48bd5e584fa854d430a5.zip |
Add keys for previous/next article
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4339 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/more.c')
-rw-r--r-- | mbbsd/more.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/mbbsd/more.c b/mbbsd/more.c index d1487a5d..09013e03 100644 --- a/mbbsd/more.c +++ b/mbbsd/more.c @@ -219,6 +219,13 @@ int more(const char *fpath, int promptend) case KEY_LEFT: case 'q': abort = FULLUPDATE; break; + + case 'b': + abort = READ_PREV; + break; + case 'f': + abort = READ_NEXT; + break; } if (lineno + (t_lines-1) >= lines) lineno = lines-(t_lines-1); |