diff options
author | Paul Janzen <pjanzen@cvs.openbsd.org> | 2002-05-31 05:11:38 +0000 |
---|---|---|
committer | Paul Janzen <pjanzen@cvs.openbsd.org> | 2002-05-31 05:11:38 +0000 |
commit | f78a5eeb5ae05049cc08ee1635f12a5d81b9a938 (patch) | |
tree | 7d741d2bdafc7eabd6e4a4a0edc1ee6a39e2e5bc | |
parent | 2f4006bf08ae4d10962d5a3e8c2b4caf5f5af8ec (diff) |
crmode -> cbreak
-rw-r--r-- | games/battlestar/fly.c | 6 | ||||
-rw-r--r-- | games/cribbage/crib.c | 8 | ||||
-rw-r--r-- | games/hangman/setup.c | 6 | ||||
-rw-r--r-- | games/mille/mille.c | 6 | ||||
-rw-r--r-- | games/phantasia/main.c | 10 | ||||
-rw-r--r-- | games/robots/main.c | 6 | ||||
-rw-r--r-- | games/rogue/init.c | 6 | ||||
-rw-r--r-- | games/sail/pl_7.c | 6 |
8 files changed, 27 insertions, 27 deletions
diff --git a/games/battlestar/fly.c b/games/battlestar/fly.c index feac9388cba..6832454ed6a 100644 --- a/games/battlestar/fly.c +++ b/games/battlestar/fly.c @@ -1,4 +1,4 @@ -/* $OpenBSD: fly.c,v 1.9 2002/02/16 21:27:09 millert Exp $ */ +/* $OpenBSD: fly.c,v 1.10 2002/05/31 05:11:32 pjanzen Exp $ */ /* $NetBSD: fly.c,v 1.3 1995/03/21 15:07:28 cgd Exp $ */ /* @@ -38,7 +38,7 @@ #if 0 static char sccsid[] = "@(#)fly.c 8.2 (Berkeley) 4/28/95"; #else -static char rcsid[] = "$OpenBSD: fly.c,v 1.9 2002/02/16 21:27:09 millert Exp $"; +static char rcsid[] = "$OpenBSD: fly.c,v 1.10 2002/05/31 05:11:32 pjanzen Exp $"; #endif #endif /* not lint */ @@ -88,7 +88,7 @@ visual() return (0); } oldsig = signal(SIGINT, succumb); - crmode(); + cbreak(); noecho(); screen(); row = rnd(LINES - 3) + 1; diff --git a/games/cribbage/crib.c b/games/cribbage/crib.c index 4597f436564..a8a2de06381 100644 --- a/games/cribbage/crib.c +++ b/games/cribbage/crib.c @@ -1,4 +1,4 @@ -/* $OpenBSD: crib.c,v 1.9 2001/11/17 06:29:00 pjanzen Exp $ */ +/* $OpenBSD: crib.c,v 1.10 2002/05/31 05:11:37 pjanzen Exp $ */ /* $NetBSD: crib.c,v 1.7 1997/07/10 06:47:29 mikel Exp $ */ /*- @@ -44,7 +44,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)crib.c 8.1 (Berkeley) 5/31/93"; #else -static char rcsid[] = "$OpenBSD: crib.c,v 1.9 2001/11/17 06:29:00 pjanzen Exp $"; +static char rcsid[] = "$OpenBSD: crib.c,v 1.10 2002/05/31 05:11:37 pjanzen Exp $"; #endif #endif /* not lint */ @@ -100,7 +100,7 @@ main(argc, argv) initscr(); (void)signal(SIGINT, rint); - crmode(); + cbreak(); noecho(); Playwin = subwin(stdscr, PLAY_Y, PLAY_X, 0, 0); @@ -121,7 +121,7 @@ main(argc, argv) mvcur(0, COLS - 1, LINES - 1, 0); fflush(stdout); instructions(); - crmode(); + cbreak(); noecho(); clear(); refresh(); diff --git a/games/hangman/setup.c b/games/hangman/setup.c index 73b57fb5036..e16596f31a4 100644 --- a/games/hangman/setup.c +++ b/games/hangman/setup.c @@ -1,4 +1,4 @@ -/* $OpenBSD: setup.c,v 1.4 1999/09/25 20:51:54 pjanzen Exp $ */ +/* $OpenBSD: setup.c,v 1.5 2002/05/31 05:11:37 pjanzen Exp $ */ /* $NetBSD: setup.c,v 1.3 1995/03/23 08:32:59 cgd Exp $ */ /*- @@ -38,7 +38,7 @@ #if 0 static char sccsid[] = "@(#)setup.c 8.1 (Berkeley) 5/31/93"; #else -static char rcsid[] = "$OpenBSD: setup.c,v 1.4 1999/09/25 20:51:54 pjanzen Exp $"; +static char rcsid[] = "$OpenBSD: setup.c,v 1.5 2002/05/31 05:11:37 pjanzen Exp $"; #endif #endif /* not lint */ @@ -56,7 +56,7 @@ setup() static struct stat sbuf; noecho(); - crmode(); + cbreak(); mvaddstr(PROMPTY, PROMPTX, "Guess:"); mvaddstr(GUESSY, GUESSX, "Guessed:"); diff --git a/games/mille/mille.c b/games/mille/mille.c index 68fc3f88c88..4c63ff574d8 100644 --- a/games/mille/mille.c +++ b/games/mille/mille.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mille.c,v 1.11 2002/05/31 03:40:01 pjanzen Exp $ */ +/* $OpenBSD: mille.c,v 1.12 2002/05/31 05:11:37 pjanzen Exp $ */ /* $NetBSD: mille.c,v 1.4 1995/03/24 05:01:48 cgd Exp $ */ /* @@ -44,7 +44,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)mille.c 8.1 (Berkeley) 5/31/93"; #else -static char rcsid[] = "$OpenBSD: mille.c,v 1.11 2002/05/31 03:40:01 pjanzen Exp $"; +static char rcsid[] = "$OpenBSD: mille.c,v 1.12 2002/05/31 05:11:37 pjanzen Exp $"; #endif #endif /* not lint */ @@ -100,7 +100,7 @@ main(ac, av) # else srandom(0); # endif - crmode(); + cbreak(); noecho(); signal(SIGINT, rub); for (;;) { diff --git a/games/phantasia/main.c b/games/phantasia/main.c index 6a718d03fbf..67b3f2852da 100644 --- a/games/phantasia/main.c +++ b/games/phantasia/main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: main.c,v 1.9 2002/05/06 19:48:47 millert Exp $ */ +/* $OpenBSD: main.c,v 1.10 2002/05/31 05:11:37 pjanzen Exp $ */ /* $NetBSD: main.c,v 1.3 1995/04/24 12:24:37 cgd Exp $ */ /* @@ -1149,7 +1149,7 @@ genchar(type) / / RETURN VALUE: none / -/ MODULES CALLED: signal(), wclear(), noecho(), crmode(), initscr(), +/ MODULES CALLED: signal(), wclear(), noecho(), cbreak(), initscr(), / wrefresh() / / GLOBAL INPUTS: *stdscr, ill_sig() @@ -1243,7 +1243,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 */ @@ -1262,7 +1262,7 @@ playinit() / / RETURN VALUE: none / -/ MODULES CALLED: exit(), wmove(), fclose(), endwin(), nocrmode(), wrefresh() +/ MODULES CALLED: exit(), wmove(), fclose(), endwin(), nocbreak(), wrefresh() / / GLOBAL INPUTS: *Energyvoidfp, LINES, *stdscr, Windows, *Monstfp, / *Messagefp, *Playersfp @@ -1282,7 +1282,7 @@ cleanup(doexit) if (Windows) { move(LINES - 2, 0); refresh(); - nocrmode(); + nocbreak(); endwin(); } diff --git a/games/robots/main.c b/games/robots/main.c index 17b19401bd5..6c820218d43 100644 --- a/games/robots/main.c +++ b/games/robots/main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: main.c,v 1.10 2002/05/31 04:21:30 pjanzen Exp $ */ +/* $OpenBSD: main.c,v 1.11 2002/05/31 05:11:37 pjanzen Exp $ */ /* $NetBSD: main.c,v 1.5 1995/04/22 10:08:54 cgd Exp $ */ /* @@ -44,7 +44,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)main.c 8.1 (Berkeley) 5/31/93"; #else -static char rcsid[] = "$OpenBSD: main.c,v 1.10 2002/05/31 04:21:30 pjanzen Exp $"; +static char rcsid[] = "$OpenBSD: main.c,v 1.11 2002/05/31 05:11:37 pjanzen Exp $"; #endif #endif /* not lint */ @@ -143,7 +143,7 @@ main(ac, av) initscr(); signal(SIGINT, quit); - crmode(); + cbreak(); noecho(); nonl(); if (LINES != Y_SIZE || COLS != X_SIZE) { diff --git a/games/rogue/init.c b/games/rogue/init.c index c1d9639dea7..eb7a65a72fe 100644 --- a/games/rogue/init.c +++ b/games/rogue/init.c @@ -1,4 +1,4 @@ -/* $OpenBSD: init.c,v 1.5 1998/09/16 00:44:36 pjanzen Exp $ */ +/* $OpenBSD: init.c,v 1.6 2002/05/31 05:11:37 pjanzen Exp $ */ /* $NetBSD: init.c,v 1.4 1995/04/28 23:49:19 mycroft Exp $ */ /* @@ -41,7 +41,7 @@ #if 0 static char sccsid[] = "@(#)init.c 8.1 (Berkeley) 5/31/93"; #else -static char rcsid[] = "$OpenBSD: init.c,v 1.5 1998/09/16 00:44:36 pjanzen Exp $"; +static char rcsid[] = "$OpenBSD: init.c,v 1.6 2002/05/31 05:11:37 pjanzen Exp $"; #endif #endif /* not lint */ @@ -197,7 +197,7 @@ clean_up(estr) void start_window() { - crmode(); + cbreak(); noecho(); #ifndef BAD_NONL nonl(); diff --git a/games/sail/pl_7.c b/games/sail/pl_7.c index 9ebd23654b4..8d52302dbb0 100644 --- a/games/sail/pl_7.c +++ b/games/sail/pl_7.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pl_7.c,v 1.5 2002/02/19 19:39:36 millert Exp $ */ +/* $OpenBSD: pl_7.c,v 1.6 2002/05/31 05:11:37 pjanzen Exp $ */ /* $NetBSD: pl_7.c,v 1.6 1995/04/22 10:37:17 cgd Exp $ */ /* @@ -38,7 +38,7 @@ #if 0 static char sccsid[] = "@(#)pl_7.c 8.1 (Berkeley) 5/31/93"; #else -static char rcsid[] = "$OpenBSD: pl_7.c,v 1.5 2002/02/19 19:39:36 millert Exp $"; +static char rcsid[] = "$OpenBSD: pl_7.c,v 1.6 2002/05/31 05:11:37 pjanzen Exp $"; #endif #endif /* not lint */ @@ -91,7 +91,7 @@ initscreen() (void) leaveok(stat_w, 1); (void) leaveok(turn_w, 1); noecho(); - crmode(); + cbreak(); } void |