From 761f24e6af4c4691bcc0bcabba0197c0426d233d Mon Sep 17 00:00:00 2001 From: kcwu Date: Fri, 5 Nov 2004 22:09:09 +0000 Subject: 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 --- include/proto.h | 3 +++ include/pttstruct.h | 1 + 2 files changed, 4 insertions(+) (limited to 'include') 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; -- cgit v1.2.3