--- lbbs/include/screen.h 2025/06/08 09:25:24 1.14 +++ lbbs/include/screen.h 2025/07/02 04:17:33 1.16 @@ -20,14 +20,14 @@ #include #define CTRL_SEQ_CLR_LINE "\033[K" -#define MSG_EXT_MAX_LEN 200 +#define MSG_EXT_MAX_LEN 400 struct display_ctx_t { - int reach_begin; // of data - int reach_end; // of data - long line_top; // current screen - long line_bottom; // current screen + int reach_begin; + int reach_end; + long line_top; + long line_bottom; char msg[MSG_EXT_MAX_LEN]; }; typedef struct display_ctx_t DISPLAY_CTX; @@ -45,7 +45,7 @@ extern int press_any_key(); extern void set_input_echo(int echo); extern int str_input(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); +extern int get_data(int row, int col, char *prompt, char *buffer, int buffer_length, int max_display_len, int echo_mode); // eof_exit = 0 : Do not exit at EOF // 1 : Prompt for any key at EOF, then exit