/[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.104 by sysadm, Sat Nov 8 08:22:38 2025 UTC Revision 1.105 by sysadm, Sat Nov 8 09:05:59 2025 UTC
# Line 206  int bbs_charset_select() Line 206  int bbs_charset_select()
206          int ch;          int ch;
207    
208          snprintf(msg, sizeof(msg),          snprintf(msg, sizeof(msg),
209                           "\rChoose character set in 3 seconds [UTF-8, GBK]: [U/g]");                           "\rChoose character set in 5 seconds, (U)UTF-8, (G)GBK [U]: ");
210    
211          while (!SYS_server_exit)          while (!SYS_server_exit)
212          {          {
213                  ch = press_any_key_ex(msg, 3);                  ch = press_any_key_ex(msg, 5);
214                  switch (toupper(ch))                  switch (toupper(ch))
215                  {                  {
216                  case KEY_NULL:                  case KEY_NULL:
# Line 234  int bbs_charset_select() Line 234  int bbs_charset_select()
234          }          }
235    
236          snprintf(msg, sizeof(msg),          snprintf(msg, sizeof(msg),
237                           "\rChoose wide-character display in 3 seconds [Fixed, Dynamic]: [F/d]");                           "\r请在5秒内选择宽字符显示规则, (D)动态, (F)固定? [D]: ");
238    
239          while (!SYS_server_exit)          while (!SYS_server_exit)
240          {          {
241                  ch = press_any_key_ex(msg, 3);                  ch = press_any_key_ex(msg, 5);
242                  switch (toupper(ch))                  switch (toupper(ch))
243                  {                  {
244                  case KEY_NULL:                  case KEY_NULL:
245                          return -1;                          return -1;
246                  case KEY_TIMEOUT:                  case KEY_TIMEOUT:
247                  case CR:                  case CR:
                 case 'F':  
                         UTF8_fixed_width = 1;  
                         break;  
248                  case 'D':                  case 'D':
249                          UTF8_fixed_width = 0;                          UTF8_fixed_width = 0;
250                          break;                          break;
251                    case 'F':
252                            UTF8_fixed_width = 1;
253                            break;
254                  default:                  default:
255                          continue;                          continue;
256                  }                  }


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

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