diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2009-09-19 18:37:15 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2009-09-19 18:37:15 +0800 |
commit | a9d6026bf93cc34608ecf8582ab1a3252288e80a (patch) | |
tree | 67717dd21b938ac06bba2814e05485bc335873f8 /mbbsd/visio.c | |
parent | bd3316da2d8ded6c812bc1a38fee6c2fabab1a61 (diff) | |
download | pttbbs-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/visio.c')
-rw-r--r-- | mbbsd/visio.c | 34 |
1 files changed, 34 insertions, 0 deletions
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 ------------------------------------- /** |