/[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.72 by sysadm, Wed May 28 06:03:58 2025 UTC Revision 1.73 by sysadm, Wed May 28 07:30:23 2025 UTC
# Line 433  cleanup: Line 433  cleanup:
433          return ch;          return ch;
434  }  }
435    
436  int show_top(const char *str_left, const char *str_middle)  int show_top(const char *str_left, const char *str_middle, const char *str_right)
437  {  {
438          char str_left_f[STR_TOP_LEFT_MAX_LEN + 1];          char str_left_f[STR_TOP_LEFT_MAX_LEN + 1];
439          char str_middle_f[STR_TOP_MIDDLE_MAX_LEN + 1];          char str_middle_f[STR_TOP_MIDDLE_MAX_LEN + 1];
# Line 454  int show_top(const char *str_left, const Line 454  int show_top(const char *str_left, const
454          len = split_line(str_middle, STR_TOP_MIDDLE_MAX_LEN, &eol, &str_middle_len);          len = split_line(str_middle, STR_TOP_MIDDLE_MAX_LEN, &eol, &str_middle_len);
455          str_middle_f[len] = '\0';          str_middle_f[len] = '\0';
456    
457          strncpy(str_right_f, BBS_current_section_name, sizeof(str_right_f) - 1);          strncpy(str_right_f, str_right, sizeof(str_right_f) - 1);
458          str_right_f[sizeof(str_right_f) - 1] = '\0';          str_right_f[sizeof(str_right_f) - 1] = '\0';
459          len = split_line(BBS_current_section_name, STR_TOP_RIGHT_MAX_LEN, &eol, &str_right_len);          len = split_line(str_right, STR_TOP_RIGHT_MAX_LEN, &eol, &str_right_len);
460          str_right_f[len] = '\0';          str_right_f[len] = '\0';
461    
462          moveto(1, 0);          moveto(1, 0);
463          clrtoeol();          clrtoeol();
464          prints("\033[1;44;33m%s\033[37m%*s%*s\033[33m ÌÖÂÛÇø [%s]\033[m",          prints("\033[1;44;33m%s\033[37m%*s\033[33m%*s\033[m",
465                     str_left_f, 44 - str_left_len, str_middle_f, 34 - str_middle_len - str_right_len, "", str_right_f);                     str_left_f, 44 - str_left_len, str_middle_f, 36, str_right_f);
466    
467          return 0;          return 0;
468  }  }


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

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