summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-04-27 05:44:22 +0800
committerptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-04-27 05:44:22 +0800
commitfc2bed655050d32fc6f4c98c26f4d89361be88b8 (patch)
tree5da872403e86742f90308f0fbc3e0f7ac678c01f /include
parenta08baf738de7959e912f5b12314da85eaea5a3c9 (diff)
downloadpttbbs-fc2bed655050d32fc6f4c98c26f4d89361be88b8.tar
pttbbs-fc2bed655050d32fc6f4c98c26f4d89361be88b8.tar.gz
pttbbs-fc2bed655050d32fc6f4c98c26f4d89361be88b8.tar.bz2
pttbbs-fc2bed655050d32fc6f4c98c26f4d89361be88b8.tar.lz
pttbbs-fc2bed655050d32fc6f4c98c26f4d89361be88b8.tar.xz
pttbbs-fc2bed655050d32fc6f4c98c26f4d89361be88b8.tar.zst
pttbbs-fc2bed655050d32fc6f4c98c26f4d89361be88b8.zip
rewrite
i_read() i_read_key() thread() select_mode() git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1863 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'include')
-rw-r--r--include/modes.h23
1 files changed, 13 insertions, 10 deletions
diff --git a/include/modes.h b/include/modes.h
index 1a180055..cc4e8ad8 100644
--- a/include/modes.h
+++ b/include/modes.h
@@ -128,21 +128,24 @@
#define RS_FORWARD 0x01 /* backward */
#define RS_TITLE 0x02 /* author/title */
-#define RS_RELATED 0x04
+#define RS_KEYWORD 0x04
#define RS_FIRST 0x08 /* find first article */
#define RS_CURRENT 0x10 /* match current read article */
-#define RS_THREAD 0x20 /* search the first article */
+#define RS_MARK 0x20 /* search the first article */
#define RS_AUTHOR 0x40 /* search author's article */
#define RS_NEWPOST 0x80 /* search new posts */
-#define CURSOR_FIRST (RS_RELATED | RS_TITLE | RS_FIRST)
-#define CURSOR_NEXT (RS_RELATED | RS_TITLE | RS_FORWARD)
-#define CURSOR_PREV (RS_RELATED | RS_TITLE)
-#define RELATE_FIRST (RS_RELATED | RS_TITLE | RS_FIRST | RS_CURRENT)
-#define RELATE_NEXT (RS_RELATED | RS_TITLE | RS_FORWARD | RS_CURRENT)
-#define RELATE_PREV (RS_RELATED | RS_TITLE | RS_CURRENT)
-#define THREAD_NEXT (RS_THREAD | RS_FORWARD)
-#define THREAD_PREV (RS_THREAD)
+#define CURSOR_FIRST (RS_TITLE | RS_FIRST)
+#define CURSOR_NEXT (RS_TITLE | RS_FORWARD)
+#define CURSOR_PREV (RS_TITLE)
+#define RELATE_FIRST (RS_TITLE | RS_FIRST | RS_CURRENT)
+#define RELATE_NEXT (RS_TITLE | RS_FORWARD | RS_CURRENT)
+#define RELATE_PREV (RS_TITLE | RS_CURRENT)
+#define NEWPOST_NEXT (RS_NEWPOST | RS_FORWARD)
+#define NEWPOST_PREV (RS_NEWPOST)
+#define AUTHOR_NEXT (RS_AUTHOR | RS_FORWARD)
+#define AUTHOR_PREV (RS_AUTHOR)
+
enum {STRIP_ALL = 0, ONLY_COLOR, NO_RELOAD};