# HG changeset patch # User edwarj4 # Date 1256261933 0 # Node ID 78df7025783b79d40b94a90c2ede5e790b3b7b2c # Parent d388234c4ce99096830ae1907a23127b5e847f09 Make sure all output appears when exiting diff -r d388234c4ce9 -r 78df7025783b rogue3/command.c --- a/rogue3/command.c Fri Oct 16 14:40:16 2009 +0000 +++ b/rogue3/command.c Fri Oct 23 01:38:53 2009 +0000 @@ -189,6 +189,7 @@ wclrtoeol(cw); draw(cw); endwin(); + printf("See you soon, %s!\n", whoami); exit(0); } when '.' : ; /* Rest command */ diff -r d388234c4ce9 -r 78df7025783b rogue3/main.c --- a/rogue3/main.c Fri Oct 16 14:40:16 2009 +0000 +++ b/rogue3/main.c Fri Oct 23 01:38:53 2009 +0000 @@ -145,9 +145,9 @@ dnum = lowtime + md_getpid(); if (wizard || env) - printf("Hello %s, welcome to dungeon #%d", whoami, dnum); + printf("Hello %s, welcome to dungeon #%d\n", whoami, dnum); else - printf("Hello %s, just a moment while I dig the dungeon...", whoami); + printf("Hello %s, just a moment while I dig the dungeon...\n", whoami); fflush(stdout); seed = dnum; diff -r d388234c4ce9 -r 78df7025783b rogue3/rip.c --- a/rogue3/rip.c Fri Oct 16 14:40:16 2009 +0000 +++ b/rogue3/rip.c Fri Oct 23 01:38:53 2009 +0000 @@ -78,6 +78,11 @@ 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); }