Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 3 Nov 2003 22:15:20 -0800
From:      Chris Pressey <cpressey@catseye.mine.nu>
To:        "Tim Hoban" <tim@e-easy.com.au>
Cc:        laszlof@vonostingroup.com
Subject:   Re: Freebsd-games patches...
Message-ID:  <20031103221520.5c0a07e7.cpressey@catseye.mine.nu>
In-Reply-To: <00f601c3a285$a5228980$030aa8c0@corp.eeasy.com.au>
References:  <1067916211.2673.6.camel@star.vonostingroup.com> <00f601c3a285$a5228980$030aa8c0@corp.eeasy.com.au>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 4 Nov 2003 14:42:17 +1100
"Tim Hoban" <tim@e-easy.com.au> wrote:

> > -----Original Message-----
> > From: Frank Laszlo [mailto:laszlof@vonostingroup.com] 
> > Sent: Tuesday, 4 November 2003 14:24
> > To: Tim Hoban
> > Cc: ports@freebsd.org
> > Subject: Re: Freebsd-games patches...
> > 
> > 
> > umm, why is the absolute path to that file in the src anyways?
> > it should be in an include file as a variable, and changed by the
> > configure script.
> > 
> > -Frank Laszlo
> > 
> 
> Dunno. Here's a fix with a variable.

FYI, the version of hack in the base system has another problem - that
is, it relies on the obsolete terminal capability 'bs' and thus won't
work with the recent xterm termcap changes.  I imagine the version in
ports has the same problem.

Quick patch from Erik Trulsson to fix this is included below, see
recent thread on stable@ for the full discussion.



Index: games/hack/hack.termcap.c
===================================================================
RCS file: /ncvs/src/games/hack/Attic/hack.termcap.c,v
retrieving revision 1.10
diff -u -4 -r1.10 hack.termcap.c
--- games/hack/hack.termcap.c	16 Nov 1999 10:26:38 -0000	1.10
+++ games/hack/hack.termcap.c	4 Nov 2003 00:15:45 -0000
@@ -35,10 +35,8 @@
 		flags.nonull = 1;
 	if(pc = tgetstr("pc", &tbufptr))
 		PC = *pc;
 	if(!(BC = tgetstr("bc", &tbufptr))) {
-		if(!tgetflag("bs"))
-			error("Terminal must backspace.");
 		BC = tbufptr;
 		tbufptr += 2;
 		*BC = '\b';
 	}



-Chris



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031103221520.5c0a07e7.cpressey>