From: Eric S. Raymond Date: Mon, 18 Apr 2005 09:22:02 +0000 (+0000) Subject: Try to handle message scrolling in curses. X-Git-Tag: 2.0~312 X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=5713361f64d054a03c2c8b49493ac8e601fe94a7;p=super-star-trek.git Try to handle message scrolling in curses. --- diff --git a/io.c b/io.c index fd50f61..4181529 100644 --- a/io.c +++ b/io.c @@ -121,7 +121,10 @@ void skip(int i) { while (i-- > 0) { if (game.options & OPTION_CURSES) { - proutn("\n"); + if (curwnd == message_window && getcury(curwnd) == getmaxy(curwnd)) + pause_game(0); + else + proutn("\n"); } else { linecount++; if (linecount >= rows)