--- lbbs/include/screen.h 2025/11/04 13:49:50 1.20 +++ lbbs/include/screen.h 2025/11/05 02:33:30 1.22 @@ -3,16 +3,21 @@ * screen * - advanced telnet-based user interactive input / output features * - * Copyright (C) 2004-2025 by Leaflet + * Copyright (C) 2004-2025 Leaflet */ #ifndef _SCREEN_H_ #define _SCREEN_H_ +#include "io.h" #include -#define CTRL_SEQ_CLR_LINE "\033[K" -#define MSG_EXT_MAX_LEN 400 +extern const char CTRL_SEQ_CLR_LINE[]; + +enum display_constant_t +{ + MSG_EXT_MAX_LEN = 400, +}; struct display_ctx_t { @@ -37,7 +42,7 @@ extern int press_any_key_ex(const char * extern void set_input_echo(int echo); -extern int str_input(char *buffer, int buffer_length, int echo_mode); +extern int str_input(char *buffer, int buffer_length, enum io_echo_t echo_mode); extern int get_data(int row, int col, char *prompt, char *buffer, int buffer_length, int max_display_len); // eof_exit = 0 : Do not exit at EOF