diff options
author | Paul Janzen <pjanzen@cvs.openbsd.org> | 2002-07-26 19:52:04 +0000 |
---|---|---|
committer | Paul Janzen <pjanzen@cvs.openbsd.org> | 2002-07-26 19:52:04 +0000 |
commit | 313d98327cb9fb20558df398376aa1fd87f1ac71 (patch) | |
tree | c4fdf28e5eeb22b28eb3cf01f2c06403c91d45ba /games | |
parent | c8f1160fb863c2b2a47cd178a07d20d17fc7e1d2 (diff) |
We're in curses, so use getch() rather than getchar().
Diffstat (limited to 'games')
-rw-r--r-- | games/rogue/inventory.c | 6 | ||||
-rw-r--r-- | games/rogue/message.c | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/games/rogue/inventory.c b/games/rogue/inventory.c index d69158dd611..f0de7e8cd57 100644 --- a/games/rogue/inventory.c +++ b/games/rogue/inventory.c @@ -1,4 +1,4 @@ -/* $OpenBSD: inventory.c,v 1.5 2002/07/18 07:13:57 pjanzen Exp $ */ +/* $OpenBSD: inventory.c,v 1.6 2002/07/26 19:52:03 pjanzen Exp $ */ /* $NetBSD: inventory.c,v 1.3 1995/04/22 10:27:35 cgd Exp $ */ /* @@ -41,7 +41,7 @@ #if 0 static char sccsid[] = "@(#)inventory.c 8.1 (Berkeley) 5/31/93"; #else -static const char rcsid[] = "$OpenBSD: inventory.c,v 1.5 2002/07/18 07:13:57 pjanzen Exp $"; +static const char rcsid[] = "$OpenBSD: inventory.c,v 1.6 2002/07/26 19:52:03 pjanzen Exp $"; #endif #endif /* not lint */ @@ -296,7 +296,7 @@ id_com() messagef(0, "Character you want help for (* for all):"); refresh(); - ch = getchar(); + ch = getch(); switch(ch) { case LIST: diff --git a/games/rogue/message.c b/games/rogue/message.c index df7c6488d61..8e6b33cad99 100644 --- a/games/rogue/message.c +++ b/games/rogue/message.c @@ -1,4 +1,4 @@ -/* $OpenBSD: message.c,v 1.8 2002/07/18 07:13:57 pjanzen Exp $ */ +/* $OpenBSD: message.c,v 1.9 2002/07/26 19:52:03 pjanzen Exp $ */ /* $NetBSD: message.c,v 1.5 1995/04/22 10:27:43 cgd Exp $ */ /* @@ -41,7 +41,7 @@ #if 0 static char sccsid[] = "@(#)message.c 8.1 (Berkeley) 5/31/93"; #else -static const char rcsid[] = "$OpenBSD: message.c,v 1.8 2002/07/18 07:13:57 pjanzen Exp $"; +static const char rcsid[] = "$OpenBSD: message.c,v 1.9 2002/07/26 19:52:03 pjanzen Exp $"; #endif #endif /* not lint */ @@ -219,7 +219,7 @@ rgetchar() int ch; for(;;) { - ch = getchar(); + ch = getch(); switch(ch) { case '\022': |