diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/proto.h | 3 | ||||
-rw-r--r-- | include/pttstruct.h | 1 |
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; |