diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-05-26 01:04:47 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-05-26 01:04:47 +0000 |
commit | 959f20497708ba4bb64bbbeb7561b6cf694316ec (patch) | |
tree | fdffe8fd62b29a4aa2d461e4dccf9268bcf714d0 /games/snake | |
parent | 729a9d7ceffba9e7e741540048479eed9907601e (diff) |
sync 0521
Diffstat (limited to 'games/snake')
-rw-r--r-- | games/snake/snake/move.c | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/games/snake/snake/move.c b/games/snake/snake/move.c index 5a90795d96f..3a7d61d63fa 100644 --- a/games/snake/snake/move.c +++ b/games/snake/snake/move.c @@ -1,4 +1,4 @@ -/* $NetBSD: move.c,v 1.11 1995/04/29 01:17:12 mycroft Exp $ */ +/* $NetBSD: move.c,v 1.12 1996/05/19 20:22:09 pk Exp $ */ /* * Copyright (c) 1980, 1993 @@ -37,7 +37,7 @@ #if 0 static char sccsid[] = "@(#)move.c 8.1 (Berkeley) 7/19/93"; #else -static char rcsid[] = "$NetBSD: move.c,v 1.11 1995/04/29 01:17:12 mycroft Exp $"; +static char rcsid[] = "$NetBSD: move.c,v 1.12 1996/05/19 20:22:09 pk Exp $"; #endif #endif /* not lint */ @@ -642,14 +642,23 @@ getcap() if (xPC) PC = *xPC; - NDlength = strlen(ND); - BSlength = strlen(BS); if ((CM == 0) && - (HO == 0 | UP==0 || BS==0 || ND==0)) { + (HO == 0 || UP == 0 || BS == 0 || ND == 0)) { fprintf(stderr, "Terminal must have addressible "); fprintf(stderr, "cursor or home + 4 local motions\n"); exit(5); } + if (ND == 0) { + fprintf(stderr, "Terminal must have `nd' capability\n"); + exit(5); + } + NDlength = strlen(ND); + if (BS == 0) { + fprintf(stderr, "Terminal must have `bs' or `bc' capability\n"); + exit(5); + } + BSlength = strlen(BS); + if (tgetflag("os")) { fprintf(stderr, "Terminal must not overstrike\n"); exit(5); |