| 24 |
|
|
| 25 |
struct display_ctx_t |
struct display_ctx_t |
| 26 |
{ |
{ |
| 27 |
int reach_begin; // of data |
int reach_begin; |
| 28 |
int reach_end; // of data |
int reach_end; |
| 29 |
long line_top; // current screen |
long line_top; |
| 30 |
long line_bottom; // current screen |
long line_bottom; |
| 31 |
char msg[MSG_EXT_MAX_LEN]; |
char msg[MSG_EXT_MAX_LEN]; |
| 32 |
}; |
}; |
| 33 |
typedef struct display_ctx_t DISPLAY_CTX; |
typedef struct display_ctx_t DISPLAY_CTX; |
| 50 |
// eof_exit = 0 : Do not exit at EOF |
// eof_exit = 0 : Do not exit at EOF |
| 51 |
// 1 : Prompt for any key at EOF, then exit |
// 1 : Prompt for any key at EOF, then exit |
| 52 |
// 2 : Exit at EOF without prompt |
// 2 : Exit at EOF without prompt |
| 53 |
extern int display_data(const void *p_data, long line_total, const long *p_line_offsets, int begin_line, int eof_exit, |
extern int display_data(const void *p_data, long display_line_total, const long *p_line_offsets, int eof_exit, |
| 54 |
display_data_key_handler key_handler, const char *help_filename); |
display_data_key_handler key_handler, const char *help_filename); |
| 55 |
extern int display_file(const char *filename, int begin_line, int eof_exit); |
extern int display_file(const char *filename, int eof_exit); |
| 56 |
|
|
| 57 |
extern int show_top(const char *str_left, const char *str_center, const char *str_right); |
extern int show_top(const char *str_left, const char *str_center, const char *str_right); |
| 58 |
extern int show_bottom(const char *msg); |
extern int show_bottom(const char *msg); |