Try to handle message scrolling in curses.
authorEric S. Raymond <esr@thyrsus.com>
Mon, 18 Apr 2005 09:22:02 +0000 (09:22 +0000)
committerEric S. Raymond <esr@thyrsus.com>
Mon, 18 Apr 2005 09:22:02 +0000 (09:22 +0000)
io.c

diff --git a/io.c b/io.c
index fd50f61ab570bd2dfaf4eb925f390197981f1db9..418152969d23cfedcbee5771ab242b293af3ce17 100644 (file)
--- 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)