summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-11-06 06:09:09 +0800
committerkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-11-06 06:09:09 +0800
commit761f24e6af4c4691bcc0bcabba0197c0426d233d (patch)
treef0951ec853524f391fdc7785f11744ea42c13212 /include
parent0e4f3ac7f8a565f8aebf8a337f648a36d3ab86fe (diff)
downloadpttbbs-761f24e6af4c4691bcc0bcabba0197c0426d233d.tar
pttbbs-761f24e6af4c4691bcc0bcabba0197c0426d233d.tar.gz
pttbbs-761f24e6af4c4691bcc0bcabba0197c0426d233d.tar.bz2
pttbbs-761f24e6af4c4691bcc0bcabba0197c0426d233d.tar.lz
pttbbs-761f24e6af4c4691bcc0bcabba0197c0426d233d.tar.xz
pttbbs-761f24e6af4c4691bcc0bcabba0197c0426d233d.tar.zst
pttbbs-761f24e6af4c4691bcc0bcabba0197c0426d233d.zip
Backup screen without hole. Save 8~11kb for normal user.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2314 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'include')
-rw-r--r--include/proto.h3
-rw-r--r--include/pttstruct.h1
2 files changed, 4 insertions, 0 deletions
diff --git a/include/proto.h b/include/proto.h
index ee39868e..da996846 100644
--- a/include/proto.h
+++ b/include/proto.h
@@ -496,6 +496,9 @@ void scroll(void);
void getyx(int *y, int *x);
void initscr(void);
void out_lines(const char *str, int line);
+void screen_backup(int len, screenline_t *bp, void *buf);
+size_t screen_backupsize(int len, screenline_t *bp);
+void screen_restore(int len, screenline_t *bp, void *buf);
/* stuff */
#define isprint2(ch) ((ch & 0x80) || isprint(ch))
diff --git a/include/pttstruct.h b/include/pttstruct.h
index 5edc79c4..6689e851 100644
--- a/include/pttstruct.h
+++ b/include/pttstruct.h
@@ -499,6 +499,7 @@ typedef struct {
unsigned char emod; /* end of modified data */
unsigned char sso; /* start stand out */
unsigned char eso; /* end stand out */
+ /* data 必需是最後一個欄位, see screen_backup() */
unsigned char data[ANSILINELEN + 1];
} screenline_t;