From a76ca91e320884b3b4ef1a9f6bb538ae10850583 Mon Sep 17 00:00:00 2001 From: piaip Date: Thu, 10 Jan 2008 18:01:34 +0000 Subject: - enable t_column width of content. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3819 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/kaede.c | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) (limited to 'mbbsd') 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 -- cgit v1.2.3