Esempio n. 1
0
static int bbsnet_refresh(struct _select_def *conf)
{

    int n;
    clear();
    prints("┏━━━━━━━━━━━━━━━\033[1;35m 月  光  宝  盒 \033[m━━━━━━━━━━━━━━━┓");
    for (n = 1; n < 22; n++) {
        move(n,0);
        prints("┃                                                                            ┃");
    }
    move(22,0);
    prints("┃                                                               \033[1;36m按\033[1;33mCtrl+C\033[1;36m退出\033[m ┃");
    move(23,0);
    prints("┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛");
    move(20,2);
    prints("───\033[1;36m般若波羅密\033[m───────\033[1;36m般-若-波-羅-蜜~~\033[m───────\033[1;36m般若波羅密\033[m───");
    for (n = 0; n < conf->item_count; n++) {
        locate(n);
        prints("\033[1;32m %c.\033[m%s", str[n], host2[n]);
    }
    bbsnet_selchange(conf,conf->pos);
    return 0;
}
Esempio n. 2
0
File: bbsnet.c Progetto: wyat/kbs
static int bbsnet_refresh(struct _select_def *conf)
{
    clear();
    move(0,0);
    prints("  ◎ %s ◎",sectiontitle[sectionindex-1]);
    move(1,0);
    outs("╭══════════════════════════════════════╮");
    /*
    for (i=2;i<19;i++) {
     move(i,0);
     outs("║");
     move(i,78);
     outs("║");
    }
    */
    move(19,0);
    outs("║——————————————————————————————————————║");
    bbsnet_selchange(conf,conf->pos);
    move(22,0);
    outs("╰══════════════════════════════════════╯");
    move(23,0);
    outs("\033[1;36m[\x1b[1;32m?\x1b[m]求助 [\x1b[1;32mCtrl+C\x1b[m]退出 [\x1b[1;32mCtrl+L\x1b[m]重绘萤幕 [\x1b[1;32m空格\x1b[m]切换目录 [\x1b[1;32m^\x1b[m]第一个 [\x1b[1;32m$\x1b[m]最后一个\033[0;37m\033[m");
    return 0;
}