summaryrefslogtreecommitdiffstats
path: root/mbbsd/pmore.c
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-06-08 20:54:15 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-06-08 20:54:15 +0800
commitcf8dee5043a6b6593de2fdb5d1b57a59b46ebd27 (patch)
tree4508de0cbd0788e5779829fc1a4b8cc173398b3c /mbbsd/pmore.c
parent49ab5387843086e5051f260870022eaeb1907a7a (diff)
downloadpttbbs-cf8dee5043a6b6593de2fdb5d1b57a59b46ebd27.tar
pttbbs-cf8dee5043a6b6593de2fdb5d1b57a59b46ebd27.tar.gz
pttbbs-cf8dee5043a6b6593de2fdb5d1b57a59b46ebd27.tar.bz2
pttbbs-cf8dee5043a6b6593de2fdb5d1b57a59b46ebd27.tar.lz
pttbbs-cf8dee5043a6b6593de2fdb5d1b57a59b46ebd27.tar.xz
pttbbs-cf8dee5043a6b6593de2fdb5d1b57a59b46ebd27.tar.zst
pttbbs-cf8dee5043a6b6593de2fdb5d1b57a59b46ebd27.zip
towards new experience: Fn Key Bindings, a trial.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2807 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/pmore.c')
-rw-r--r--mbbsd/pmore.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/mbbsd/pmore.c b/mbbsd/pmore.c
index ea100416..e3ec9c05 100644
--- a/mbbsd/pmore.c
+++ b/mbbsd/pmore.c
@@ -1417,7 +1417,7 @@ static const char * const pmore_help[] = {
"(k/↑) (j/↓/Enter) 上捲/下捲一行",
"(^B)(PgUp)(BackSpace) 上捲一頁",
"(^F)(PgDn)(Space)(→) 下捲一頁",
- "(,/</S-Tab)(./>/TAB) 左/右捲動",
+ "(,/</S-TAB)(./>/TAB) 左/右捲動",
"(0/g/Home) ($/G/End) 檔案開頭/結尾",
"(;/:) 跳至某行/某頁",
"數字鍵 1-9 跳至輸入的頁數或行號",
@@ -1432,7 +1432,7 @@ static const char * const pmore_help[] = {
"(\\) 切換顯示原始內容", // this IS already aligned!
"(w/W/l) 切換自動折行/折行符號/分隔線顯示方式",
"(p/o) 播放動畫/切換傳統模式(狀態列與折行方式)",
- "(q/←) (h/H/?) 結束/本說明畫面",
+ "(q/←) (h/H/?/F1) 結束/本說明畫面",
#ifdef DEBUG
"(d) 切換除錯(debug)模式",
#endif
@@ -1888,9 +1888,10 @@ pmore(char *fpath, int promptend)
//if(mf.xpos == 0 || mf.trunclines)
mf.xpos = (mf.xpos/8+1)*8;
break;
- case 'Z':
- case '<':
/* acronym form shift-tab, ^[[Z */
+ /* however some terminals does not send that. */
+ case KEY_STAB:
+ case '<':
mf.xpos = (mf.xpos/8-1)*8;
if(mf.xpos < 0) mf.xpos = 0;
break;
@@ -2028,7 +2029,7 @@ pmore(char *fpath, int promptend)
}
break;
- case 'h': case 'H':
+ case 'h': case 'H': case KEY_F1:
case '?':
// help
show_help(pmore_help);