X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=win%2Ftty%2Ftopl.c;h=f1bfc9c697d3ab230a0dc459ac27851cd75cce83;hb=39ae31c86163fc4c2f04a7727220b7297f173e10;hp=db999a3ec63ebdb62959c9c09f17593d8981c206;hpb=096152cd7d9acc1d7efcc0b6fa8028bab1ff3200;p=jnethack%2Fsource.git diff --git a/win/tty/topl.c b/win/tty/topl.c index db999a3..f1bfc9c 100644 --- a/win/tty/topl.c +++ b/win/tty/topl.c @@ -1,4 +1,4 @@ -/* NetHack 3.6 topl.c $NHDT-Date: 1549333449 2019/02/05 02:24:09 $ $NHDT-Branch: NetHack-3.6.2-beta01 $:$NHDT-Revision: 1.44 $ */ +/* NetHack 3.6 topl.c $NHDT-Date: 1560608320 2019/06/15 14:18:40 $ $NHDT-Branch: NetHack-3.6 $:$NHDT-Revision: 1.47 $ */ /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */ /*-Copyright (c) Michael Allison, 2009. */ /* NetHack may be freely redistributed. See license for details. */ @@ -153,10 +153,16 @@ const char *str; struct WinDesc *cw = wins[WIN_MESSAGE]; if (!(cw->flags & WIN_STOP)) { + if (ttyDisplay->cury && ttyDisplay->toplin == 2) + tty_clear_nhwindow(WIN_MESSAGE); + cw->curx = cw->cury = 0; home(); cl_end(); addtopl(str); + + if (ttyDisplay->cury && ttyDisplay->toplin != 3) + ttyDisplay->toplin = 2; } } @@ -333,7 +339,7 @@ char c; #endif if (cw == (struct WinDesc *) 0) - panic("Putsym window MESSAGE nonexistant"); + panic("Putsym window MESSAGE nonexistent"); switch (c) { case '\b':