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

Diff of /lbbs/src/bbs_net.c

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

Revision 1.12 by sysadm, Sat May 7 09:28:12 2005 UTC Revision 1.13 by sysadm, Sat May 7 12:08:28 2005 UTC
# Line 264  bbsnet_connect (int n) Line 264  bbsnet_connect (int n)
264          }          }
265        if (result < 0)        if (result < 0)
266          {          {
267            log_error ("select() error!\n");            log_error ("select() error (%d) !\n", result);
268            loop = 0;            loop = 0;
269          }          }
270        if (result > 0)        if (result > 0)
# Line 314  bbsnet_refresh () Line 314  bbsnet_refresh ()
314    clearscr ();    clearscr ();
315    moveto (1, 0);    moveto (1, 0);
316    prints    prints
317      ("?q?T?T?T?T?T?T?T?T?T?T?T?T?T?T?T?T?T?T?T?T?T?T?T?T?T?T?T?T?T?T?T?T?T?T?T?T?T?T?r");      ("╭══════════════════════════════════════╮");
318    for (i = 2; i < 19; i++)    for (i = 2; i < 19; i++)
319      {      {
320        moveto (i, 0);        moveto (i, 0);
321        prints ("?U");        prints ("║");
322        moveto (i, 79);        moveto (i, 79);
323        prints ("?U");        prints ("║");
324      }      }
325    moveto (19, 0);    moveto (19, 0);
326    prints    prints
327      ("?U——————————————————————————————————————?U");      ("║——————————————————————————————————————║");
328    moveto (22, 0);    moveto (22, 0);
329    prints    prints
330      ("?t?T?T?T?T?T?T?T?T?T?T?T?T?T?T?T?T?T?T?T?T?T?T?T?T?T?T?T?T?T?T?T?T?T?T?T?T?T?T?s");      ("╰══════════════════════════════════════╯");
331    moveto (23, 0);    moveto (23, 0);
332    prints (" [\x1b[1;32mCtrl+C\x1b[m]退出");    prints (" [\x1b[1;32mCtrl+C\x1b[m]退出");
333    
334    iflush ();    iflush ();
335    
336    return 0;    return 0;
# Line 340  bbsnet_selchange (int new_pos) Line 341  bbsnet_selchange (int new_pos)
341  {  {
342    moveto (20, 0);    moveto (20, 0);
343    clrtoeol ();    clrtoeol ();
344    prints ("?U\x1b[1m单位:\x1b[1;33m%-18s\x1b[m  站名:\x1b[1;33m%s\x1b[m",    prints ("║\x1b[1m单位:\x1b[1;33m%-18s\x1b[m  站名:\x1b[1;33m%s\x1b[m",
345            bbsnet_conf[new_pos].host2, bbsnet_conf[new_pos].host1);            bbsnet_conf[new_pos].host2, bbsnet_conf[new_pos].host1);
346    moveto (20, 79);    moveto (20, 79);
347    prints ("?U");    prints ("║");
348    moveto (21, 0);    moveto (21, 0);
349    clrtoeol ();    clrtoeol ();
350    prints ("?U\x1b[1m连往:\x1b[1;33m%-20s", bbsnet_conf[new_pos].ip);    prints ("║\x1b[1m连往:\x1b[1;33m%-20s", bbsnet_conf[new_pos].ip);
351    if (bbsnet_conf[new_pos].port != 23)    if (bbsnet_conf[new_pos].port != 23)
352      prints ("  %d", bbsnet_conf[new_pos].port);      prints ("  %d", bbsnet_conf[new_pos].port);
353    prints ("\x1b[m");    prints ("\x1b[m");
354    moveto (21, 79);    moveto (21, 79);
355    prints ("?U");    prints ("║");
356    iflush ();    iflush ();
357    
358    return 0;    return 0;


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

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