X-Git-Url: https://jxself.org/git/?p=super-star-trek.git;a=blobdiff_plain;f=io.c;h=8698ab8ec9b68ab23e379a626deb566954f796de;hp=d34184206dda81290214e4fbd52f0bd0b06046a9;hb=0ddb264313c09bbefa443bb9d67b7bb95fcf58c8;hpb=0494866db0a61c4111d1fb15836cea9b8c1a9d97 diff --git a/io.c b/io.c index d341842..8698ab8 100644 --- a/io.c +++ b/io.c @@ -121,7 +121,14 @@ void skip(int i) { while (i-- > 0) { if (game.options & OPTION_CURSES) { - proutn("\n\r"); + if (curwnd == message_window && linecount >= getmaxy(curwnd) - 3) { + pause_game(0); + clrscr(); + } else { + proutn("\n"); + if (curwnd == message_window) + linecount++; + } } else { linecount++; if (linecount >= rows) @@ -218,6 +225,7 @@ void clrscr (void) wmove(curwnd,0,0); wrefresh(curwnd); } + linecount = 0; } void textcolor (int color)