tty: msg_window display anomaly

If you interrupt nethack (^C) in tty windowport mode while a pompt is
displayed and and msg_window=true, it can display the full message history
at an unexpected time.  Detect this and display only the topl, as expected.
This commit is contained in:
cohrs
2002-02-03 07:46:05 +00:00
parent f057848eea
commit bdf25aff97
2 changed files with 2 additions and 3 deletions
+1 -1
View File
@@ -29,7 +29,7 @@ tty_doprev_message()
winid prevmsg_win;
int i;
if (iflags.prevmsg_window) {
if (iflags.prevmsg_window && !ttyDisplay->inread) {
prevmsg_win = create_nhwindow(NHW_MENU);
putstr(prevmsg_win, 0, "Message History");
putstr(prevmsg_win, 0, "");