From a9d6026bf93cc34608ecf8582ab1a3252288e80a Mon Sep 17 00:00:00 2001 From: piaip Date: Sat, 19 Sep 2009 10:37:15 +0000 Subject: * refine order song init query ui git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4861 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/visio.c | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) (limited to 'mbbsd/visio.c') 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 ------------------------------------- /** -- cgit v1.2.3