/[LeafOK_CVS]/lbbs/src/screen.c
ViewVC logotype

Diff of /lbbs/src/screen.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.124 by sysadm, Wed Nov 5 02:33:30 2025 UTC Revision 1.126 by sysadm, Fri Nov 7 13:22:57 2025 UTC
# Line 592  int display_data(const void *p_data, lon Line 592  int display_data(const void *p_data, lon
592          loop = 1;          loop = 1;
593          while (!SYS_server_exit && loop)          while (!SYS_server_exit && loop)
594          {          {
595                  if (eof_exit > 0 && line_current >= display_line_total && display_line_total <= screen_row_total)                  if (eof_exit > 0 && line_current >= display_line_total)
596                  {                  {
597                          if (eof_exit == 1)                          if (eof_exit == 1)
598                          {                          {
# Line 802  cleanup: Line 802  cleanup:
802          return ch;          return ch;
803  }  }
804    
805  static int display_file_key_handler(int *p_key, DISPLAY_CTX *p_ctx)  int display_file_key_handler(int *p_key, DISPLAY_CTX *p_ctx)
806  {  {
807          switch (*p_key)          switch (*p_key)
808          {          {
# Line 894  int show_bottom(const char *msg) Line 894  int show_bottom(const char *msg)
894          int len;          int len;
895          int len_username;          int len_username;
896          char str_tm_online[LINE_BUFFER_LEN];          char str_tm_online[LINE_BUFFER_LEN];
897            int len_str_tm_online;
898    
899          len_str_time = (int)get_time_str(str_time, sizeof(str_time));          len_str_time = (int)get_time_str(str_time, sizeof(str_time));
900    
# Line 923  int show_bottom(const char *msg) Line 924  int show_bottom(const char *msg)
924                                   "\033[36m%d\033[33m:\033[36m%.2d",                                   "\033[36m%d\033[33m:\033[36m%.2d",
925                                   tm_online->tm_hour, tm_online->tm_min);                                   tm_online->tm_hour, tm_online->tm_min);
926          }          }
927            len_str_tm_online = str_length(str_tm_online, 1);
928    
929          moveto(SCREEN_ROWS, 0);          moveto(SCREEN_ROWS, 0);
930          clrtoeol();          clrtoeol();
931          prints("\033[1;44;33m时间[\033[36m%s\033[33m]%s%*s \033[33m用户[\033[36m%s\033[33m][%s\033[33m]\033[m",          prints("\033[1;44;33m时间[\033[36m%s\033[33m]%s%*s \033[33m用户[\033[36m%s\033[33m][%s\033[33m]\033[m",
932                     str_time, msg_f, 61 - len_str_time - len_msg - len_username, "", BBS_username, str_tm_online);                     str_time, msg_f, 65 - len_str_time - len_msg - len_username - len_str_tm_online, "", BBS_username, str_tm_online);
933    
934          return 0;          return 0;
935  }  }


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

webmaster@leafok.com
ViewVC Help
Powered by ViewVC 1.3.0-beta1