diff options
author | mycroft <mycroft@NetBSD.org> | 1995-04-29 00:44:03 +0000 |
---|---|---|
committer | mycroft <mycroft@NetBSD.org> | 1995-04-29 00:44:03 +0000 |
commit | 42430ba7d7a05f98105888cb19f79d9bd7cd22ad (patch) | |
tree | aa3516e56353d97671cf6c67335ebf60a1ca8b61 /backgammon/common_source/table.c | |
parent | 567e3567cfbbfd9940e7ac02313f241710d726c7 (diff) | |
download | bsdgames-darwin-42430ba7d7a05f98105888cb19f79d9bd7cd22ad.tar.gz bsdgames-darwin-42430ba7d7a05f98105888cb19f79d9bd7cd22ad.tar.zst bsdgames-darwin-42430ba7d7a05f98105888cb19f79d9bd7cd22ad.zip |
Use POSIX tty semantics.
Diffstat (limited to 'backgammon/common_source/table.c')
-rw-r--r-- | backgammon/common_source/table.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/backgammon/common_source/table.c b/backgammon/common_source/table.c index c330628d..8c8329db 100644 --- a/backgammon/common_source/table.c +++ b/backgammon/common_source/table.c @@ -1,4 +1,4 @@ -/* $NetBSD: table.c,v 1.3 1995/03/21 15:05:58 cgd Exp $ */ +/* $NetBSD: table.c,v 1.4 1995/04/29 00:44:16 mycroft Exp $ */ /* * Copyright (c) 1980, 1993 @@ -37,7 +37,7 @@ #if 0 static char sccsid[] = "@(#)table.c 8.1 (Berkeley) 5/31/93"; #else -static char rcsid[] = "$NetBSD: table.c,v 1.3 1995/03/21 15:05:58 cgd Exp $"; +static char rcsid[] = "$NetBSD: table.c,v 1.4 1995/04/29 00:44:16 mycroft Exp $"; #endif #endif /* not lint */ @@ -118,11 +118,11 @@ dochar: } } - if (c == tty.sg_erase && ncin > 0) { + if (c == old.c_cc[VERASE] && ncin > 0) { if (tflag) curmove (curr,curc-1); else { - if (tty.sg_erase == '\010') + if (old.c_cc[VERASE] == '\010') writel ("\010 \010"); else writec (cin[ncin-1]); @@ -139,13 +139,13 @@ dochar: goto domove; } - if (c == tty.sg_kill && ncin > 0) { + if (c == old.c_cc[VKILL] && ncin > 0) { if (tflag) { refresh(); curmove (curr,39); ist = -1; goto domove; - } else if (tty.sg_erase == '\010') { + } else if (old.c_cc[VERASE] == '\010') { for (j = 0; j < ncin; j++) writel ("\010 \010"); ist = -1; |