summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2007-12-21 18:36:17 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2007-12-21 18:36:17 +0800
commitfbcab98509f954bfebaef37085e34ea9ecf1dfb8 (patch)
tree66885a0f7d62f634ca716aa74400615d8fc8bb14 /include
parent12a7296bac13fc1d7d3540ef0b474002ae023234 (diff)
downloadpttbbs-fbcab98509f954bfebaef37085e34ea9ecf1dfb8.tar
pttbbs-fbcab98509f954bfebaef37085e34ea9ecf1dfb8.tar.gz
pttbbs-fbcab98509f954bfebaef37085e34ea9ecf1dfb8.tar.bz2
pttbbs-fbcab98509f954bfebaef37085e34ea9ecf1dfb8.tar.lz
pttbbs-fbcab98509f954bfebaef37085e34ea9ecf1dfb8.tar.xz
pttbbs-fbcab98509f954bfebaef37085e34ea9ecf1dfb8.tar.zst
pttbbs-fbcab98509f954bfebaef37085e34ea9ecf1dfb8.zip
- change screen APIs to ncurses-like names
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3717 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'include')
-rw-r--r--include/proto.h39
1 files changed, 22 insertions, 17 deletions
diff --git a/include/proto.h b/include/proto.h
index b56690cf..c0e5a134 100644
--- a/include/proto.h
+++ b/include/proto.h
@@ -560,27 +560,32 @@ int reversi_personal(void);
int reversi_watch(void);
ChessInfo* reversi_replay(FILE* fp);
-/* screen/pfterm */
-void initscr(void);
-int resizescr(int rows, int cols);
-void getyx(int *y, int *x);
-void move(int y, int x);
-void move_ansi(int y, int x);
+/* screen/pfterm (ncurses-like) */
+void initscr (void);
+int resizeterm (int rows, int cols);
+void getyx (int *y, int *x);
+void move (int y, int x);
+void clear (void);
+void clrtoeol (void);
+void clrtobot (void);
+void clrtoln (int ln);
+void refresh (void);
+void redrawwin (void);
+void scroll (void);
+void rscroll (void);
+int instr (char *str);
+int innstr (char *str, int n);
+void scr_dump (screen_backup_t *buf);
+void scr_restore(const screen_backup_t *buf);
+// non-curses
void outc(unsigned char ch);
void outs(const char *str);
-void clear(void);
-void clrtoeol(void);
-void clrtobot(void);
-void clrtoline(int line);
-void refresh(void);
-void redoscr(void);
+int inansistr(char *str, int n);
+void move_ansi(int y, int x);
+void region_scroll_up(int top, int bottom);
+// deprecated
void standout(void);
void standend(void);
-void scroll(void);
-void rscroll(void);
-void region_scroll_up(int top, int bottom);
-void screen_backup(screen_backup_t *buf);
-void screen_restore(const screen_backup_t *buf);
#define HAVE_GRAYOUT
void grayout(int start, int end, int level);