7 #define MSG_ERROR ((char *) -1)
9 #define MSG_ERROR "Error: "
11 Dlg_head
*message (int error
, char *header
, char *text
, ...);
13 int query_dialog (char *header
, char *text
, int flags
, int count
, ...);
19 } /* dialog options */;
21 /* The refresh stack */
22 typedef struct Refresh
{
23 void (*refresh_fn
)(void *);
29 /* We search under the stack until we find a refresh function that covers */
30 /* the complete screen, and from this point we go up refreshing the */
31 /* individual regions */
34 REFRESH_COVERS_PART
, /* If the refresh fn convers only a part */
35 REFRESH_COVERS_ALL
/* If the refresh fn convers all the screen */
38 void push_refresh (void (*new_refresh
)(void *), void *data
, int flags
);
39 void pop_refresh (void);
40 void do_refresh (void);
41 void my_wputs (int y
, int x
, char *text
);
42 char *input_dialog (char *header
, char *text
, char *def_text
);
43 char *input_expand_dialog (char *header
, char *text
, char *def_text
);
45 extern Refresh
*refresh_list
;
47 #endif /* __DIALOG_H */