From 718e2751fe628826872f2de8464a1845bce406ed Mon Sep 17 00:00:00 2001 From: Joe Wreschnig Date: Thu, 4 Apr 2013 13:16:23 +0200 Subject: [PATCH] Terminals have changed a bit since 1981. --- main.c | 4 ++-- rip.c | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/main.c b/main.c index 59240e0..7e27bd3 100644 --- a/main.c +++ b/main.c @@ -88,9 +88,9 @@ char **envp; atoi(getenv("SEED")) : lowtime + getpid()); if (wizard) - 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; init_player(); /* Roll up the rogue */ diff --git a/rip.c b/rip.c index 352313d..77bf78d 100644 --- a/rip.c +++ b/rip.c @@ -71,6 +71,8 @@ register char monst; move(LINES-1, 0); draw(stdscr); score(purse, 0, monst); + getch(); + endwin(); exit(0); } @@ -355,6 +357,8 @@ total_winner() mvprintw(c - 'a' + 1, 0," %5d Gold Peices ", oldpurse); refresh(); score(purse, 2, 0); + getch(); + endwin(); exit(0); } -- 2.30.2