summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2007-12-19 23:39:37 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2007-12-19 23:39:37 +0800
commit60c7059c312f02d1dd5738d7e9c2872a1a123657 (patch)
treea1e4ec9e7c788fcbfaf22882e7629823faeb4067 /include
parentacf58ca18005d3ed917cbc80a33baeec9d44335f (diff)
downloadpttbbs-60c7059c312f02d1dd5738d7e9c2872a1a123657.tar
pttbbs-60c7059c312f02d1dd5738d7e9c2872a1a123657.tar.gz
pttbbs-60c7059c312f02d1dd5738d7e9c2872a1a123657.tar.bz2
pttbbs-60c7059c312f02d1dd5738d7e9c2872a1a123657.tar.lz
pttbbs-60c7059c312f02d1dd5738d7e9c2872a1a123657.tar.xz
pttbbs-60c7059c312f02d1dd5738d7e9c2872a1a123657.tar.zst
pttbbs-60c7059c312f02d1dd5738d7e9c2872a1a123657.zip
- isolate low level termial i/o api calls, prepare for pfterm
(piaip's flat terminal system) git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3710 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'include')
-rw-r--r--include/proto.h43
1 files changed, 19 insertions, 24 deletions
diff --git a/include/proto.h b/include/proto.h
index 2746a05b..849a8d42 100644
--- a/include/proto.h
+++ b/include/proto.h
@@ -228,6 +228,8 @@ void addsignature(FILE *fp, int ifuseanony);
void auto_backup(void);
void restore_backup(void);
char *ask_tmpbuf(int y);
+void edit_outs(const char *text);
+void edit_outs_n(const char *text, int n);
/* fav */
void fav_set_old_folder(fav_t *fp);
@@ -335,7 +337,13 @@ int ochar(int c);
/* kaede */
char *Ptt_prints(char *str, size_t size, int mode);
-char *my_ctime(const time4_t *t, char *ans, int len);
+void prints(const char *fmt, ...) GCC_CHECK_FORMAT(1,2);
+void mouts(int y, int x, const char *str);
+void outmsg(const char *msg);
+void outmsglr(const char *msg, int llen, const char *rmsg, int rlen);
+void outs_n(const char *str, int n);
+void outslr(const char *left, int leftlen, const char *right, int rightlen);
+void out_lines(const char *str, int line);
/* lovepaper */
int x_love(void);
@@ -552,43 +560,30 @@ int reversi_personal(void);
int reversi_watch(void);
ChessInfo* reversi_replay(FILE* fp);
-/* screen */
-void mouts(int y, int x, const char *str);
+/* 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);
+void outc(unsigned char ch);
void outs(const char *str);
-void outs_n(const char *str, int n);
-void outslr(const char *left, int leftlen, const char *right, int rightlen);
-void clrtoeol(void);
void clear(void);
-void refresh(void);
+void clrtoeol(void);
void clrtobot(void);
-void outmsg(const char *msg);
-void outmsglr(const char *msg, int llen, const char *rmsg, int rlen);
-void prints(const char *fmt, ...) GCC_CHECK_FORMAT(1,2);
-void region_scroll_up(int top, int bottom);
-void outc(unsigned char ch);
-void redoscr(void);
-void redoln(void);
void clrtoline(int line);
+void refresh(void);
+void redoscr(void);
void standout(void);
void standend(void);
-void edit_outs(const char *text);
-void edit_outs_n(const char *text, int n);
-void outch(unsigned char c);
-void rscroll(void);
void scroll(void);
-void getyx(int *y, int *x);
-void initscr(void);
-void out_lines(const char *str, int line);
+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_SCREEN_GRAYOUT
-void grayout_line(int y, int level);
void grayout_lines(int start, int end, int level);
-
/* stuff */
#define isprint2(ch) ((ch & 0x80) || isprint(ch))
#define not_alpha(ch) (ch < 'A' || (ch > 'Z' && ch < 'a') || ch > 'z')