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

Diff of /lbbs/src/bbs_main.c

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

Revision 1.85 by sysadm, Fri Oct 17 07:07:55 2025 UTC Revision 1.86 by sysadm, Fri Oct 17 11:23:30 2025 UTC
# Line 281  int bbs_center() Line 281  int bbs_center()
281  int bbs_main()  int bbs_main()
282  {  {
283          struct sigaction act = {0};          struct sigaction act = {0};
284            char msg[LINE_BUFFER_LEN];
285    
286          // Set signal handler          // Set signal handler
287          act.sa_handler = SIG_IGN;          act.sa_handler = SIG_IGN;
# Line 333  int bbs_main() Line 334  int bbs_main()
334          // User login          // User login
335          if (SSH_v2)          if (SSH_v2)
336          {          {
337                  prints("\033[1m%s 欢迎使用ssh方式访问 \033[1;33m按任意键继续...\033[m", BBS_username);                  snprintf(msg, sizeof(msg), "\033[1m%s 欢迎使用ssh方式访问 \033[1;33m按任意键继续...\033[m", BBS_username);
338                  iflush();                  press_any_key_ex(msg);
                 igetch_reset();  
                 while (!SYS_server_exit && igetch_t(MAX_DELAY_TIME) == 0)  
                         ;  
339          }          }
340          else if (bbs_login() < 0)          else if (bbs_login() < 0)
341          {          {


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

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