From fbcab98509f954bfebaef37085e34ea9ecf1dfb8 Mon Sep 17 00:00:00 2001
From: piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>
Date: Fri, 21 Dec 2007 10:36:17 +0000
Subject: - change screen APIs to ncurses-like names

git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3717 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
---
 include/proto.h | 39 ++++++++++++++++++++++-----------------
 1 file changed, 22 insertions(+), 17 deletions(-)

(limited to 'include')

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);
 
-- 
cgit v1.2.3