From owner-freebsd-stable@FreeBSD.ORG Mon Nov 3 16:22:03 2003 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D0C1D16A4CE for ; Mon, 3 Nov 2003 16:22:03 -0800 (PST) Received: from falcon.midgard.homeip.net (h76n3fls24o1048.bredband.comhem.se [213.67.148.76]) by mx1.FreeBSD.org (Postfix) with SMTP id 6C0A943FB1 for ; Mon, 3 Nov 2003 16:22:01 -0800 (PST) (envelope-from ertr1013@student.uu.se) Received: (qmail 26913 invoked by uid 1001); 4 Nov 2003 00:21:59 -0000 Date: Tue, 4 Nov 2003 01:21:59 +0100 From: Erik Trulsson To: Michael Sierchio , Doug White , freebsd-stable@freebsd.org Message-ID: <20031104002159.GA26897@falcon.midgard.homeip.net> Mail-Followup-To: Michael Sierchio , Doug White , freebsd-stable@freebsd.org References: <3FA6CF61.2040007@tenebras.com> <3FA6D26B.8030707@tenebras.com> <20031103144116.B86138@carver.gumbysoft.com> <3FA6DF58.4090804@tenebras.com> <20031103231726.GA25093@falcon.midgard.homeip.net> <20031103235046.GA25408@falcon.midgard.homeip.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20031103235046.GA25408@falcon.midgard.homeip.net> User-Agent: Mutt/1.5.4i Subject: Re: Serious bug in 4.9-RELEASE X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Nov 2003 00:22:03 -0000 On Tue, Nov 04, 2003 at 12:50:46AM +0100, Erik Trulsson wrote: > On Tue, Nov 04, 2003 at 12:17:26AM +0100, Erik Trulsson wrote: > > On Mon, Nov 03, 2003 at 03:06:00PM -0800, Michael Sierchio wrote: > > > Doug White wrote: > > > >On Mon, 3 Nov 2003, Michael Sierchio wrote: > > > > > > > > > > > >>Michael Sierchio wrote: > > > >> > > > >>>Well, this depends on your point of view. A cvsup, buildworld, > > > >>>kernel, installworld causes: > > > >>> > > > >>>sapphire 214> /usr/games/hack > > > >>>Terminal must backspace. [snip] > Strange that no other program seems to complain. > (Or maybe not so strange. The "bs" capability that /usr/games/hack > insists on is decribed in termcap(5) as an obsolete capability that new > programs shouldn't depend on. It might be that it is /usr/games/hack > that need to be updated to modern conventions.) > > > As a workaround you can run 'hack' with TERM set to 'xterm-r6' Or you can try applying the following patch to source for hack. It probably qualifies as an ugly hack, but considering the name of this game, the age of the code, and the fact that to fix the code properly would probably require a lot of changes, I don't care much. 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'; } -- Erik Trulsson ertr1013@student.uu.se