summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-01-13 08:55:09 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-01-13 08:55:09 +0800
commitaf8f62d5f4f18a60ad4230b38a74e1f26f71ce30 (patch)
tree55cc2b0ac5c3b9d8d8c97786ef04b5886232d02d /include
parent3037e00cf92dbe072c02ab46e930007fef201d54 (diff)
downloadpttbbs-af8f62d5f4f18a60ad4230b38a74e1f26f71ce30.tar
pttbbs-af8f62d5f4f18a60ad4230b38a74e1f26f71ce30.tar.gz
pttbbs-af8f62d5f4f18a60ad4230b38a74e1f26f71ce30.tar.bz2
pttbbs-af8f62d5f4f18a60ad4230b38a74e1f26f71ce30.tar.lz
pttbbs-af8f62d5f4f18a60ad4230b38a74e1f26f71ce30.tar.xz
pttbbs-af8f62d5f4f18a60ad4230b38a74e1f26f71ce30.tar.zst
pttbbs-af8f62d5f4f18a60ad4230b38a74e1f26f71ce30.zip
- enable ncurses 'typeahead' API
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3832 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'include')
-rw-r--r--include/common.h4
-rw-r--r--include/proto.h1
2 files changed, 5 insertions, 0 deletions
diff --git a/include/common.h b/include/common.h
index b3228ac5..fb59b749 100644
--- a/include/common.h
+++ b/include/common.h
@@ -250,6 +250,10 @@
#define GRAYOUT_NORM (1)
#define GRAYOUT_COLORNORM (+2)
+/* Typeahead */
+#define TYPEAHEAD_NONE (-1)
+#define TYPEAHEAD_STDIN (0)
+
/* ----------------------------------------------------- */
/* Macros */
/* ----------------------------------------------------- */
diff --git a/include/proto.h b/include/proto.h
index 92413619..5136abaa 100644
--- a/include/proto.h
+++ b/include/proto.h
@@ -583,6 +583,7 @@ void clrtoln (int ln);
void newwin (int nlines, int ncols, int y, int x);
void refresh (void);
void doupdate (void);
+int typeahead (int fd);
void redrawwin (void);
void scroll (void);
void rscroll (void);