identifying via menu

From the newsgroup:  identifying by menu pops up multiple menus in
succession if the player picks fewer invent entries than are being
granted, but the second and subsequent ones could cover up the
message window and hide the feedback from prior ones.

If multiple popup menus are needed when identifying, issue --More--
before each menu after the first.  The code seemed to be trying to
do this already, but it should have used wait_synch() rather than
mark_synch(), or perhaps used display_nhwindow(WIN_MESSAGE, TRUE)
instead of either one of those.  For curses, both mark_synch() and
wait_synch() were no-ops.  Now they do something.  X11's behavior
wasn't right either; it seemed to be lagging one message behind
(something I had noticed recently and then forgotten about; I still
don't remember the context then so don't know whether this fixes
that earlier situation).
This commit is contained in:
PatR
2023-01-09 23:34:32 -08:00
parent 1755d27bf8
commit 7c72c1f141
7 changed files with 33 additions and 12 deletions

View File

@@ -182,9 +182,16 @@ curses_got_input(void)
}
int
curses_block(boolean noscroll) /* noscroll - blocking because of msgtype
* = stop/alert else blocking because
* window is full, so need to scroll after */
curses_got_output(void)
{
return turn_lines;
}
int
curses_block(
boolean noscroll) /* noscroll - blocking because of MSGTYPE=STOP/ALERT
* else blocking because window is full, so need to
* scroll after */
{
static const char resp[] = " \r\n\033"; /* space, enter, esc */
static int prev_x = -1, prev_y = -1, blink = 0;