| 17 |
#ifndef _SCREEN_H_ |
#ifndef _SCREEN_H_ |
| 18 |
#define _SCREEN_H_ |
#define _SCREEN_H_ |
| 19 |
|
|
| 20 |
|
#include <stddef.h> |
| 21 |
|
|
| 22 |
#define CTRL_SEQ_CLR_LINE "\033[K" |
#define CTRL_SEQ_CLR_LINE "\033[K" |
| 23 |
|
|
| 24 |
extern void moveto(int row, int col); |
typedef int (*display_data_key_handler)(int *key, char *msg, size_t msg_len); |
| 25 |
|
|
| 26 |
|
extern void moveto(int row, int col); |
| 27 |
extern void clrtoeol(); |
extern void clrtoeol(); |
|
|
|
| 28 |
extern void clrline(int line_begin, int line_end); |
extern void clrline(int line_begin, int line_end); |
|
|
|
| 29 |
extern void clrtobot(int line_begin); |
extern void clrtobot(int line_begin); |
|
|
|
| 30 |
extern void clearscr(); |
extern void clearscr(); |
| 31 |
|
|
| 32 |
extern int press_any_key(); |
extern int press_any_key(); |
| 34 |
extern void set_input_echo(int echo); |
extern void set_input_echo(int echo); |
| 35 |
|
|
| 36 |
extern int str_input(char *buffer, int buffer_length, int echo_mode); |
extern int str_input(char *buffer, int buffer_length, int echo_mode); |
|
|
|
| 37 |
extern int get_data(int row, int col, char *prompt, char *buffer, int buffer_length, int echo_mode); |
extern int get_data(int row, int col, char *prompt, char *buffer, int buffer_length, int echo_mode); |
| 38 |
|
|
| 39 |
extern int display_file_ex(const char *filename, int begin_line, int wait); |
extern int display_data(const void *p_data, long line_total, const long *p_line_offsets, int begin_line, int wait, |
| 40 |
|
display_data_key_handler key_handler, const char *help_filename); |
| 41 |
extern int show_top(const char *str_left, const char *str_center); |
extern int display_file(const char *filename, int begin_line, int wait); |
| 42 |
|
|
| 43 |
|
extern int show_top(const char *str_left, const char *str_center, const char *str_right); |
| 44 |
extern int show_bottom(const char *msg); |
extern int show_bottom(const char *msg); |
| 45 |
|
|
| 46 |
extern int show_active_board(); |
extern int show_active_board(); |