summaryrefslogtreecommitdiffstats
path: root/mbbsd/kaede.c
diff options
context:
space:
mode:
Diffstat (limited to 'mbbsd/kaede.c')
-rw-r--r--mbbsd/kaede.c17
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