summaryrefslogtreecommitdiffstats
path: root/games/backgammon/common_source/init.c
diff options
context:
space:
mode:
authorpjanzen <pjanzen@openbsd.org>2001-06-23 23:49:53 +0000
committerpjanzen <pjanzen@openbsd.org>2001-06-23 23:49:53 +0000
commitd62ad8d8e4630fe5032aba908bd1eb14b5565bd6 (patch)
tree446c7f3b8cc7bc868ba2c61718e74b152a8987ed /games/backgammon/common_source/init.c
parentuse ether_input_mbuf (diff)
downloadwireguard-openbsd-d62ad8d8e4630fe5032aba908bd1eb14b5565bd6.tar.xz
wireguard-openbsd-d62ad8d8e4630fe5032aba908bd1eb14b5565bd6.zip
termios -> curses
Diffstat (limited to 'games/backgammon/common_source/init.c')
-rw-r--r--games/backgammon/common_source/init.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/games/backgammon/common_source/init.c b/games/backgammon/common_source/init.c
index 7de84135f24..88f2dea2fd5 100644
--- a/games/backgammon/common_source/init.c
+++ b/games/backgammon/common_source/init.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: init.c,v 1.4 2001/02/18 03:32:52 pjanzen Exp $ */
+/* $OpenBSD: init.c,v 1.5 2001/06/23 23:50:03 pjanzen Exp $ */
/*
* Copyright (c) 1980, 1993
@@ -37,12 +37,10 @@
#if 0
static char sccsid[] = "@(#)init.c 8.1 (Berkeley) 5/31/93";
#else
-static char rcsid[] = "$OpenBSD: init.c,v 1.4 2001/02/18 03:32:52 pjanzen Exp $";
+static char rcsid[] = "$OpenBSD: init.c,v 1.5 2001/06/23 23:50:03 pjanzen Exp $";
#endif
#endif /* not lint */
-#include <termios.h>
-
/*
* variable initialization.
*/
@@ -63,13 +61,11 @@ int pnum = 2; /* color of player:
2 = not yet init'ed */
int acnt = 0; /* length of args */
int aflag = 1; /* flag to ask for rules or instructions */
-int bflag = 0; /* flag for automatic board printing */
int cflag = 0; /* case conversion flag */
int hflag = 1; /* flag for cleaning screen */
int mflag = 0; /* backgammon flag */
int raflag = 0; /* 'roll again' flag for recovered game */
int rflag = 0; /* recovered game flag */
-int tflag = 0; /* cursor addressing flag */
int iroll = 0; /* special flag for inputting rolls */
int rfl = 0;
@@ -89,8 +85,6 @@ int board[26];
char cin[100];
int colen;
int cturn;
-int curc;
-int curr;
int d0;
int dice[2];
int dlast;
@@ -107,4 +101,3 @@ int p[5];
int rscore;
int table[6][6];
int wscore;
-struct termios old, noech, traw;