--- lbbs/include/screen.h 2025/05/02 03:34:58 1.2 +++ lbbs/include/screen.h 2025/05/29 13:17:33 1.10 @@ -1,8 +1,7 @@ /*************************************************************************** screen.h - description ------------------- - begin : Mon Oct 18 2004 - copyright : (C) 2004 by Leaflet + copyright : (C) 2004-2025 by Leaflet email : leaflet@leafok.com ***************************************************************************/ @@ -10,7 +9,7 @@ * * * 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 2 of the License, or * + * the Free Software Foundation; either version 3 of the License, or * * (at your option) any later version. * * * ***************************************************************************/ @@ -18,8 +17,7 @@ #ifndef _SCREEN_H_ #define _SCREEN_H_ -extern int screen_rows; -extern int screen_cols; +#define CTRL_SEQ_CLR_LINE "\033[K" extern void moveto(int row, int col); @@ -39,13 +37,13 @@ extern int str_input(char *buffer, int b extern int get_data(int row, int col, char *prompt, char *buffer, int buffer_length, int echo_mode); -extern int display_file(const char *filename); +extern int display_data(const void *p_data, long line_total, const long *p_line_offsets, int begin_line, int wait); -extern int display_file_ex(const char *filename, int begin_line, int wait); +extern int display_file(const char *filename, int begin_line, int wait); -extern int show_top(char *status); +extern int show_top(const char *str_left, const char *str_center, const char *str_right); -extern int show_bottom(char *msg); +extern int show_bottom(const char *msg); extern int show_active_board();