summaryrefslogtreecommitdiffstats
path: root/backgammon/common_source/back.h
diff options
context:
space:
mode:
authormycroft <mycroft@NetBSD.org>1995-04-29 00:44:03 +0000
committermycroft <mycroft@NetBSD.org>1995-04-29 00:44:03 +0000
commit42430ba7d7a05f98105888cb19f79d9bd7cd22ad (patch)
treeaa3516e56353d97671cf6c67335ebf60a1ca8b61 /backgammon/common_source/back.h
parent567e3567cfbbfd9940e7ac02313f241710d726c7 (diff)
downloadbsdgames-darwin-42430ba7d7a05f98105888cb19f79d9bd7cd22ad.tar.gz
bsdgames-darwin-42430ba7d7a05f98105888cb19f79d9bd7cd22ad.tar.zst
bsdgames-darwin-42430ba7d7a05f98105888cb19f79d9bd7cd22ad.zip
Use POSIX tty semantics.
Diffstat (limited to 'backgammon/common_source/back.h')
-rw-r--r--backgammon/common_source/back.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/backgammon/common_source/back.h b/backgammon/common_source/back.h
index 567c936b..b1be7582 100644
--- a/backgammon/common_source/back.h
+++ b/backgammon/common_source/back.h
@@ -1,4 +1,4 @@
-/* $NetBSD: back.h,v 1.4 1995/04/24 12:22:06 cgd Exp $ */
+/* $NetBSD: back.h,v 1.5 1995/04/29 00:44:10 mycroft Exp $ */
/*
* Copyright (c) 1980, 1993
@@ -35,7 +35,7 @@
* @(#)back.h 8.1 (Berkeley) 5/31/93
*/
-#include <sgtty.h>
+#include <termios.h>
#include <stdlib.h>
#include <string.h>
@@ -118,10 +118,7 @@ char **colorptr; /* color of current player */
char **Colorptr; /* color of current player, capitalized */
int colen; /* length of color of current player */
-struct sgttyb tty; /* tty information buffer */
-int old; /* original tty status */
-int noech; /* original tty status without echo */
-int raw; /* raw tty status, no echo */
+struct termios old, noech, raw;/* original tty status */
int curr; /* row position of cursor */
int curc; /* column position of cursor */