[閒聊] 關於 more 的變更
我想改變成這種..
瀏覽 第 5/18 頁 ( 25%) 目前顯示: 第 96~118 行
不是改變成上述格式,而是把..
1.目前正在瀏覽第幾頁/全部幾頁
2.目前瀏覽的這一頁是第 n~m 行
把上述兩個資訊顯示出來. 有空就做, 相關檔案
/std/user/more.c 先備份為 /std/user/more.20110722
static private mixed *files;
static private string more_file, *lines, last_regexp, chunkstr;
static private int more_line, from_file, num_lines, direction, chunk;
void write_more_line()
{
receive (sprintf("--More--行數(%d/%d)--按enter繼續--按q離開--",
more_line,num_lines));
}
應該不難,可能會先改成..
--More--頁(1/15)--行(23/337)--按enter繼續/按q離開--
Belldandy.
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 117.19.83.112
推
07/22 12:53, , 1F
07/22 12:53, 1F
→
07/22 12:54, , 2F
07/22 12:54, 2F
→
07/22 12:55, , 3F
07/22 12:55, 3F
→
07/22 15:42, , 4F
07/22 15:42, 4F
mud_sanc 近期熱門文章
PTT遊戲區 即時熱門文章
21
49