Make sure all output appears when exiting
This commit is contained in:
parent
67250dfc74
commit
9f9abbf368
3 changed files with 8 additions and 2 deletions
|
|
@ -189,6 +189,7 @@ command()
|
||||||
wclrtoeol(cw);
|
wclrtoeol(cw);
|
||||||
draw(cw);
|
draw(cw);
|
||||||
endwin();
|
endwin();
|
||||||
|
printf("See you soon, %s!\n", whoami);
|
||||||
exit(0);
|
exit(0);
|
||||||
}
|
}
|
||||||
when '.' : ; /* Rest command */
|
when '.' : ; /* Rest command */
|
||||||
|
|
|
||||||
|
|
@ -145,9 +145,9 @@ char **envp;
|
||||||
dnum = lowtime + md_getpid();
|
dnum = lowtime + md_getpid();
|
||||||
|
|
||||||
if (wizard || env)
|
if (wizard || env)
|
||||||
printf("Hello %s, welcome to dungeon #%d", whoami, dnum);
|
printf("Hello %s, welcome to dungeon #%d\n", whoami, dnum);
|
||||||
else
|
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);
|
fflush(stdout);
|
||||||
seed = dnum;
|
seed = dnum;
|
||||||
|
|
|
||||||
|
|
@ -78,6 +78,11 @@ death(int monst)
|
||||||
move(LINES-1, 0);
|
move(LINES-1, 0);
|
||||||
draw(stdscr);
|
draw(stdscr);
|
||||||
score(purse, 0, monst);
|
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);
|
exit(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue