X-Git-Url: https://jxself.org/git/?p=super-star-trek.git;a=blobdiff_plain;f=io.c;h=8698ab8ec9b68ab23e379a626deb566954f796de;hp=fd50f61ab570bd2dfaf4eb925f390197981f1db9;hb=9f2406f134c8e82a6ef14943c5eaf6ee2bee3af7;hpb=ca19525727deffe6ea0012d35168d9942baa3958 diff --git a/io.c b/io.c index fd50f61..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"); + 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)