diff options
-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 |