--- lbbs/include/screen.h 2025/07/02 04:17:33 1.16 +++ lbbs/include/screen.h 2025/11/04 14:58:55 1.21 @@ -1,18 +1,10 @@ -/*************************************************************************** - screen.h - description - ------------------- - copyright : (C) 2004-2025 by Leaflet - email : leaflet@leafok.com - ***************************************************************************/ - -/*************************************************************************** - * * - * This program is free software; you can redistribute it and/or modify * - * it under the terms of the GNU General Public License as published by * - * the Free Software Foundation; either version 3 of the License, or * - * (at your option) any later version. * - * * - ***************************************************************************/ +/* SPDX-License-Identifier: GPL-3.0-or-later */ +/* + * screen + * - advanced telnet-based user interactive input / output features + * + * Copyright (C) 2004-2025 Leaflet + */ #ifndef _SCREEN_H_ #define _SCREEN_H_ @@ -41,11 +33,12 @@ extern void clrtobot(int line_begin); extern void clearscr(); extern int press_any_key(); +extern int press_any_key_ex(const char *msg, int sec); 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 max_display_len, int 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 // 1 : Prompt for any key at EOF, then exit