Make sure all output appears when exiting

This commit is contained in:
John "Elwin" Edwards 2009-10-23 01:38:53 +00:00
parent 67250dfc74
commit 9f9abbf368
3 changed files with 8 additions and 2 deletions

View file

@ -78,6 +78,11 @@ death(int monst)
move(LINES-1, 0);
draw(stdscr);
score(purse, 0, monst);
/* Make sure all the output gets through ssh and
anything else that might be in the way. */
printf("[Press return to exit]\n");
fflush(NULL);
getchar();
exit(0);
}