diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-06-06 02:51:33 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-06-06 02:51:33 +0800 |
commit | 9676c9c3ec69d2da5410d7d14f8c766954d9b255 (patch) | |
tree | 7c15b7d573b53e95bc5311814909880cee25fc68 | |
parent | b8ce82427f2618f14f0f9b3bd7a3ae07f1620649 (diff) | |
download | pttbbs-9676c9c3ec69d2da5410d7d14f8c766954d9b255.tar pttbbs-9676c9c3ec69d2da5410d7d14f8c766954d9b255.tar.gz pttbbs-9676c9c3ec69d2da5410d7d14f8c766954d9b255.tar.bz2 pttbbs-9676c9c3ec69d2da5410d7d14f8c766954d9b255.tar.lz pttbbs-9676c9c3ec69d2da5410d7d14f8c766954d9b255.tar.xz pttbbs-9676c9c3ec69d2da5410d7d14f8c766954d9b255.tar.zst pttbbs-9676c9c3ec69d2da5410d7d14f8c766954d9b255.zip |
pmore: left-right widenav: make hotkeys more readable.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2772 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | mbbsd/pmore.c | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/mbbsd/pmore.c b/mbbsd/pmore.c index 25249ed1..cea54237 100644 --- a/mbbsd/pmore.c +++ b/mbbsd/pmore.c @@ -1294,7 +1294,7 @@ static const char * const pmore_help[] = { "(k/↑) (j/↓/Enter) 上捲/下捲一行", "(^B)(PgUp)(BackSpace) 上捲一頁", "(^F)(PgDn)(Space)(→) 下捲一頁", - "(z/S-Tab) (x/TAB) 左/右捲動", + "(,/</S-Tab)(./>/TAB) 左/右捲動", "(0/g/Home) ($/G/End) 檔案開頭/結尾", "(;/:) 跳至某行/某頁", "數字鍵 1-9 跳至輸入的行號", @@ -1309,7 +1309,7 @@ static const char * const pmore_help[] = { // "(\\/w/W) 切換顯示原始內容/自動折行/折行符號", // this IS already aligned! "(\\) 切換顯示原始內容", // this IS already aligned! "(w/W/l) 切換自動折行/折行符號/分隔線顯示方式", - "(p/o) 重播動畫/切換傳統模式(狀態列與折行方式)", + "(p/o) 播放動畫/切換傳統模式(狀態列與折行方式)", "(q/←) (h/H/?) 結束/本說明畫面", #ifdef DEBUG "(d) 切換除錯(debug)模式", @@ -1707,13 +1707,20 @@ pmore(char *fpath, int promptend) break; /* Compound Navigation */ + case '.': + mf.startx ++; + break; + case ',': + mf.startx --; + if(mf.startx < 0) mf.startx = 0; + break; case '\t': - case 'x': - if(mf.startx == 0 || mf.trunclines) + case '>': + //if(mf.startx == 0 || mf.trunclines) mf.startx = (mf.startx/8+1)*8; break; case 'Z': - case 'z': + case '<': /* acronym form shift-tab, ^[[Z */ mf.startx = (mf.startx/8-1)*8; if(mf.startx < 0) mf.startx = 0; |