Terminals have changed a bit since 1981.
authorJoe Wreschnig <joe.wreschnig@gmail.com>
Thu, 4 Apr 2013 11:16:23 +0000 (13:16 +0200)
committerJoe Wreschnig <joe.wreschnig@gmail.com>
Thu, 4 Apr 2013 11:16:23 +0000 (13:16 +0200)
main.c
rip.c

diff --git a/main.c b/main.c
index 59240e017048a1901b5e8bbb218ee1b136fad596..7e27bd3707f995d522977833ff6162348b05513e 100644 (file)
--- a/main.c
+++ b/main.c
@@ -88,9 +88,9 @@ char **envp;
        atoi(getenv("SEED")) :\r
        lowtime + getpid());\r
     if (wizard)\r
-       printf("Hello %s, welcome to dungeon #%d", whoami, dnum);\r
+       printf("Hello %s, welcome to dungeon #%d\n", whoami, dnum);\r
     else\r
-       printf("Hello %s, just a moment while I dig the dungeon...", whoami);\r
+       printf("Hello %s, just a moment while I dig the dungeon...\n", whoami);\r
     fflush(stdout);\r
     seed = dnum;\r
     init_player();                     /* Roll up the rogue */\r
diff --git a/rip.c b/rip.c
index 352313d68a2d2849f42e61d6da82d0b9af49a23c..77bf78d82dbbcbfd6e3f9ef8d9a5398c01e493ad 100644 (file)
--- a/rip.c
+++ b/rip.c
@@ -71,6 +71,8 @@ register char monst;
     move(LINES-1, 0);\r
     draw(stdscr);\r
     score(purse, 0, monst);\r
+    getch();\r
+    endwin();\r
     exit(0);\r
 }\r
 \r
@@ -355,6 +357,8 @@ total_winner()
     mvprintw(c - 'a' + 1, 0,"   %5d  Gold Peices          ", oldpurse);\r
     refresh();\r
     score(purse, 2, 0);\r
+    getch();\r
+    endwin();\r
     exit(0);\r
 }\r
 \r