summaryrefslogtreecommitdiffstats
path: root/mbbsd
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2009-09-19 18:37:15 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2009-09-19 18:37:15 +0800
commita9d6026bf93cc34608ecf8582ab1a3252288e80a (patch)
tree67717dd21b938ac06bba2814e05485bc335873f8 /mbbsd
parentbd3316da2d8ded6c812bc1a38fee6c2fabab1a61 (diff)
downloadpttbbs-a9d6026bf93cc34608ecf8582ab1a3252288e80a.tar
pttbbs-a9d6026bf93cc34608ecf8582ab1a3252288e80a.tar.gz
pttbbs-a9d6026bf93cc34608ecf8582ab1a3252288e80a.tar.bz2
pttbbs-a9d6026bf93cc34608ecf8582ab1a3252288e80a.tar.lz
pttbbs-a9d6026bf93cc34608ecf8582ab1a3252288e80a.tar.xz
pttbbs-a9d6026bf93cc34608ecf8582ab1a3252288e80a.tar.zst
pttbbs-a9d6026bf93cc34608ecf8582ab1a3252288e80a.zip
* refine order song init query ui
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4861 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r--mbbsd/register.c17
-rw-r--r--mbbsd/visio.c34
2 files changed, 45 insertions, 6 deletions
diff --git a/mbbsd/register.c b/mbbsd/register.c
index c26d7df0..569ff246 100644
--- a/mbbsd/register.c
+++ b/mbbsd/register.c
@@ -659,13 +659,18 @@ new_register(void)
newuser.pager = PAGER_ON;
strlcpy(newuser.lasthost, fromhost, sizeof(newuser.lasthost));
- // XXX enable this when we complete the user flag of ADBANNER_USONG_FLAG.
#ifdef ADBANNER_USONG_FLAG
- clear();
- prints( "\n\t�b�ϥ� BBS ���L�{���A�z�i��|�b�e���W��ݨ�@�ǰʺA�����ʬݪO�i�ܡA\n"
- "\n\t�䤺�e�O�}�񵹦U�ϥΪ̥ӽЪ��A�ҥH�]�t�D�ӷ~�����ʰT���B�U�بϥΪ̪�\n"
- "\n\t�߱��I���άF�v���סF���o�Ǥ�r�P�Ϲ��ä��N������߳��C\n");
- if (vans("�аݱz�Ʊ�ݨ즹���ϥΪ̤߱��I���ܡH [y/N]: ") == 'y')
+ vs_hdr("�ʺA�ݪO�߱��I����ܳ]�w");
+ // draw a box here
+ outs(
+ "\n\n\t�b�ϥ� BBS ���L�{���A�z�i��|�b�e���W�覹�Ϭݨ�@�ǰʺA���T���i�ܡA"
+ "\n\n\t�䤺�e�O�}�񵹦U�ϥΪ̻P���q����ӽЪ��A�ҥH�|�]�t�D�ӷ~�����ʸ�T�B"
+ "\n\n\t�ӦۦU�ϥΪ̪��߱��I���B�F�v�ʨ��׻P�U�دd���C"
+ "\n\n\n\n"
+ "\n\n\t" ANSI_COLOR(1) "�����ѨϥΪ̦ۦ�o������r�P�Ϲ��ä��N������߳��C"
+ ANSI_RESET "\n");
+ vs_rectangle_simple(1, 1, 78, MAX_ADBANNER_HEIGHT);
+ if (vans("�аݱz�Ʊ�ݨ즹���Ӧۨ䥦�ϥΪ̪��߱��I���P�d���ܡH [y/N]: ") == 'y')
newuser.uflag |= ADBANNER_USONG_FLAG;
#endif
diff --git a/mbbsd/visio.c b/mbbsd/visio.c
index bbc29ee8..4f6909d8 100644
--- a/mbbsd/visio.c
+++ b/mbbsd/visio.c
@@ -509,6 +509,40 @@ vbarlr(const char *l, const char *r)
outs(ANSI_RESET);
}
+void
+vs_rectangle_simple(int l, int t, int r, int b)
+{
+ int ol = l;
+
+ assert( l + 4 <= r &&
+ t + 2 <= b);
+
+ // draw top line
+ move(t++, ol); l = ol+2;
+ outs("�z");
+ while (l < r-2) { outs("�w"); l+= 2; }
+ outs("�{");
+ if (l+2 < r) outs(" ");
+
+ while (t < b)
+ {
+ move(t++, ol); l = ol+2;
+ outs("�x");
+ // while (l < r-2) { outs(" "); l+= 2; }
+ l += (r-l-1)/2*2;
+ move_ansi(t-1, l);
+ outs("�x");
+ if (l+2 < r) outs(" ");
+ }
+
+ // draw bottom line
+ move(t++, ol); l = ol+2;
+ outs("�|");
+ while (l < r-2) { outs("�w"); l+= 2; }
+ outs("�}");
+ if (l+2 < r) outs(" ");
+}
+
// ---- THEMED FORMATTING OUTPUT -------------------------------------
/**