summaryrefslogtreecommitdiff
path: root/src/ui.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui.c')
-rw-r--r--src/ui.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/ui.c b/src/ui.c
index e6c0d63..04938c5 100644
--- a/src/ui.c
+++ b/src/ui.c
@@ -389,7 +389,11 @@ void ui_display_wnd_final_scores(const player_list_t *pl, const uint8_t num_play
}
wrefresh(w_final_scores);
- while (KEY_RETURN != wgetch(w_final_scores));
+
+ int key;
+ do {
+ key = wgetch(w_final_scores);
+ } while (KEY_RETURN != key && KEY_ESCAPE != key);
}
uint8_t ui_choose_card(hand_t *h)