--- lbbs/src/screen.c 2025/06/17 02:06:48 1.99 +++ lbbs/src/screen.c 2025/06/21 02:15:18 1.102 @@ -14,26 +14,25 @@ * * ***************************************************************************/ -#define _POSIX_C_SOURCE 200809L - -#include "screen.h" #include "bbs.h" #include "common.h" -#include "str_process.h" -#include "log.h" -#include "io.h" #include "editor.h" #include "file_loader.h" -#include +#include "io.h" +#include "log.h" +#include "login.h" +#include "screen.h" +#include "str_process.h" #include +#include +#include #include -#include #include -#include -#include -#include +#include #include +#include #include +#include #define ACTIVE_BOARD_HEIGHT 8 @@ -495,6 +494,11 @@ int display_file(const char *filename, i return KEY_NULL; } + if (user_online_update("VIEW_FILE") < 0) + { + log_error("user_online_update(VIEW_FILE) error\n"); + } + ret = display_data(p_data, line_total, p_line_offsets, eof_exit, display_file_key_handler, DATA_READ_HELP); if (detach_file_shm(p_shm) < 0)