]> git.cameronkatri.com Git - bsdgames-darwin.git/commitdiff
Change deprecated curses function calls to new equivalents.
authorblymn <blymn@NetBSD.org>
Thu, 6 Dec 2001 12:15:37 +0000 (12:15 +0000)
committerblymn <blymn@NetBSD.org>
Thu, 6 Dec 2001 12:15:37 +0000 (12:15 +0000)
phantasia/main.c

index 034a2c49358eefb785c0fe6740b9cb62fc06f841..d8e9a7a8d708421bdb407084844e1e7eae073ee3 100644 (file)
@@ -1,4 +1,4 @@
-/*     $NetBSD: main.c,v 1.9 1999/09/13 17:15:43 jsm Exp $     */
+/*     $NetBSD: main.c,v 1.10 2001/12/06 12:15:37 blymn Exp $  */
 
 /*
  * Phantasia 3.3.2 -- Interterminal fantasy game
@@ -981,7 +981,7 @@ playinit()
 
        initscr();              /* turn on curses */
        noecho();               /* do not echo input */
-       crmode();               /* do not process erase, kill */
+       cbreak();               /* do not process erase, kill */
        clear();
        refresh();
        Windows = TRUE;         /* mark the state */
@@ -994,7 +994,7 @@ cleanup(doexit)
        if (Windows) {
                move(LINES - 2, 0);
                refresh();
-               nocrmode();
+               nocbreak();
                endwin();
        }
        fclose(Playersfp);