diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-01-11 02:01:34 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-01-11 02:01:34 +0800 |
commit | a76ca91e320884b3b4ef1a9f6bb538ae10850583 (patch) | |
tree | 0409bda987692810c67affc7eed5341207858068 /mbbsd | |
parent | c1adbe09c64e8e252d0d1cfde149be2fd5f31db0 (diff) | |
download | pttbbs-a76ca91e320884b3b4ef1a9f6bb538ae10850583.tar pttbbs-a76ca91e320884b3b4ef1a9f6bb538ae10850583.tar.gz pttbbs-a76ca91e320884b3b4ef1a9f6bb538ae10850583.tar.bz2 pttbbs-a76ca91e320884b3b4ef1a9f6bb538ae10850583.tar.lz pttbbs-a76ca91e320884b3b4ef1a9f6bb538ae10850583.tar.xz pttbbs-a76ca91e320884b3b4ef1a9f6bb538ae10850583.tar.zst pttbbs-a76ca91e320884b3b4ef1a9f6bb538ae10850583.zip |
- enable t_column width of content.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3819 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r-- | mbbsd/kaede.c | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/mbbsd/kaede.c b/mbbsd/kaede.c index d2c5da03..b3d9c0ae 100644 --- a/mbbsd/kaede.c +++ b/mbbsd/kaede.c @@ -110,12 +110,19 @@ outslr(const char *left, int leftlen, const char *right, int rightlen) void out_lines(const char *str, int line) { + int y, x; + getyx(&y, &x); while (*str && line) { - outc(*str); - if (*str == '\n') - line--; - str++; - } + if (*str == '\n') + { + move(++y, 0); + line--; + } else + { + outc(*str); + } + str++; + } } void |