Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 11 Mar 2004 18:51:56 +0100 (CET)
From:      Jens Schweikhardt <schweikh@FreeBSD.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/64113: [PATCH] make games/freebsd-games hack(1) work again
Message-ID:  <200403111751.i2BHpu2f006146@hal9000.schweikhardt.net>
Resent-Message-ID: <200403111800.i2BI0Svt016902@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         64113
>Category:       ports
>Synopsis:       [PATCH] make games/freebsd-games hack(1) work again
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Mar 11 10:00:28 PST 2004
>Closed-Date:
>Last-Modified:
>Originator:     Jens Schweikhardt
>Release:        FreeBSD 5.2-CURRENT i386
>Organization:
FreeBSD
>Environment:
System: FreeBSD hal9000.schweikhardt.net 5.2-CURRENT FreeBSD 5.2-CURRENT #0: Wed Feb 18 19:22:21 CET 2004 toor@hal9000.schweikhardt.net:/share/HEAD/obj/share/HEAD/src/sys/HAL9000 i386


>Description:
	This patch, along with my recent commit to termcap.src makes
	hack(1) work again (and not bail out with "Terminal must backspace.")

>How-To-Repeat:
	run hack from games/freebsd-games
>Fix:

Put this patch in games/freebsd-games/files/patch-hack::hack.termcap.c

--- hack/hack.termcap.c.orig	Sat Mar  6 22:18:53 2004
+++ hack/hack.termcap.c	Thu Mar 11 18:42:47 2004
@@ -35,7 +35,8 @@
 		flags.nonull = 1;
 	if(pc = tgetstr("pc", &tbufptr))
 		PC = *pc;
-	if(!(BC = tgetstr("bc", &tbufptr))) {
+	if(!(BC = tgetstr("bc", &tbufptr))
+	 &&!(BC = tgetstr("le", &tbufptr))) {
 		if(!tgetflag("bs"))
 			error("Terminal must backspace.");
 		BC = tbufptr;

>Release-Note:
>Audit-Trail:
>Unformatted:



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