saving message history (trunk only)
On September 11, 2003 "<Someone>" wrote: > When we're going to have a different save file format, could > the last messages in the message history be saved as well, so > ^P would work the same before and after saving (possibly > including a few less messages to make room for the startup > messages?). This seemed like a reasonable request. This patch: - adds the core support required. - adds the tty supporting routines.
This commit is contained in:
@@ -2288,6 +2288,8 @@ E void FDECL(setmnotwielded, (struct monst *,struct obj *));
|
||||
E void FDECL(choose_windows, (const char *));
|
||||
E char FDECL(genl_message_menu, (CHAR_P,int,const char *));
|
||||
E void FDECL(genl_preference_update, (const char *));
|
||||
E char *FDECL(genl_getmsghistory, (BOOLEAN_P));
|
||||
E void FDECL(genl_putmsghistory, (const char *));
|
||||
|
||||
/* ### wizard.c ### */
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* Incrementing EDITLEVEL can be used to force invalidation of old bones
|
||||
* and save files.
|
||||
*/
|
||||
#define EDITLEVEL 3
|
||||
#define EDITLEVEL 4
|
||||
|
||||
#define COPYRIGHT_BANNER_A \
|
||||
"NetHack, Copyright 1985-2003"
|
||||
|
||||
@@ -65,6 +65,8 @@ struct window_procs {
|
||||
|
||||
void FDECL((*win_outrip), (winid,int));
|
||||
void FDECL((*win_preference_update), (const char *));
|
||||
char * FDECL((*win_getmsghistory), (BOOLEAN_P));
|
||||
void FDECL((*win_putmsghistory), (const char *));
|
||||
};
|
||||
|
||||
extern NEARDATA struct window_procs windowprocs;
|
||||
@@ -134,6 +136,8 @@ extern NEARDATA struct window_procs windowprocs;
|
||||
|
||||
#define outrip (*windowprocs.win_outrip)
|
||||
#define preference_update (*windowprocs.win_preference_update)
|
||||
#define getmsghistory (*windowprocs.win_getmsghistory)
|
||||
#define putmsghistory (*windowprocs.win_putmsghistory)
|
||||
|
||||
/*
|
||||
* WINCAP
|
||||
|
||||
@@ -222,6 +222,10 @@ E void NDECL(tty_end_screen);
|
||||
|
||||
E void FDECL(genl_outrip, (winid,int));
|
||||
|
||||
E char *FDECL(tty_getmsghistory, (BOOLEAN_P));
|
||||
E void FDECL(tty_putmsghistory, (const char *));
|
||||
|
||||
|
||||
#ifdef NO_TERMS
|
||||
# ifdef MAC
|
||||
# ifdef putchar
|
||||
|
||||
Reference in New Issue
Block a user