changeset 267:911f0aa6e758

UltraRogue: flush output when exiting.
author John "Elwin" Edwards
date Sun, 26 Feb 2017 14:58:49 -0500
parents 08489644940b
children 4ab49e42dd6a
files urogue/command.c urogue/rip.c
diffstat 2 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/urogue/command.c	Sun Feb 19 19:56:43 2017 -0500
+++ b/urogue/command.c	Sun Feb 26 14:58:49 2017 -0500
@@ -366,6 +366,7 @@
                         wclear(cw);
                         wrefresh(cw);
                         endwin();
+			printf("\n");
                         exit(0);
                     }
                     break;
--- a/urogue/rip.c	Sun Feb 19 19:56:43 2017 -0500
+++ b/urogue/rip.c	Sun Feb 26 14:58:49 2017 -0500
@@ -377,6 +377,12 @@
     }
 
     fclose(fd_score);
+
+    if (flags != SCOREIT) {
+        printf("[Press RETURN to exit]\n");
+        fflush(stdout);
+        getchar();
+    }
 }
 
 void