openbsd-ports/games/slash/patches/patch-win_tty_termcap_c
espie f9fa1eecc8 Repair slash port.
- base on nethack 3.2.2, bump to 3.3.0 will have to wait (probably better
to port slash'em instead),
- use hackdata to avoid conflicts with nethack,
- proper packaging,
- x11/no x11 flavor,
- install recover,
- change manpages to differentiate from nethack,
- grab enough TERMINFO to handle color correctly (from nethack 3.3.0)
2000-04-16 21:18:59 +00:00

15 lines
545 B
Plaintext

$OpenBSD: patch-win_tty_termcap_c,v 1.1 2000/04/16 21:19:08 espie Exp $
--- win/tty/termcap.c.orig Fri Apr 14 15:15:20 2000
+++ win/tty/termcap.c Fri Apr 14 15:19:54 2000
@@ -827,7 +827,9 @@ init_hilite()
hilites[c] = HI;
hilites[CLR_GRAY] = hilites[NO_COLOR] = (char *)0;
- if (tgetnum("Co") < 8 || (setf = tgetstr("Sf", (char **)0)) == (char *)0)
+ if (tgetnum("Co") < 8
+ || ((setf = tgetstr("Sf", (char **)0)) == (char *)0
+ && (setf = tgetstr("AF", (char **)0)) == (char *)0))
return;
for (c = 0; c < CLR_MAX / 2; c++) {