From 92d1275f42843cb16f3983d2785f048ca4b5434e Mon Sep 17 00:00:00 2001 From: "John \"Elwin\" Edwards" Date: Sun, 26 Feb 2017 14:58:49 -0500 Subject: [PATCH] UltraRogue: flush output when exiting. --- urogue/command.c | 1 + urogue/rip.c | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/urogue/command.c b/urogue/command.c index 86f4305..df46fdc 100644 --- a/urogue/command.c +++ b/urogue/command.c @@ -366,6 +366,7 @@ command(void) wclear(cw); wrefresh(cw); endwin(); + printf("\n"); exit(0); } break; diff --git a/urogue/rip.c b/urogue/rip.c index a596dc5..f64e271 100644 --- a/urogue/rip.c +++ b/urogue/rip.c @@ -377,6 +377,12 @@ score(long amount, int lvl, int flags, int monst) /*ARGSUSED*/ } fclose(fd_score); + + if (flags != SCOREIT) { + printf("[Press RETURN to exit]\n"); + fflush(stdout); + getchar(); + } } void