From owner-freebsd-ports@FreeBSD.ORG Wed Jun 18 09:35:25 2003 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6A3BD37B404 for ; Wed, 18 Jun 2003 09:35:25 -0700 (PDT) Received: from mail.inka.de (quechua.inka.de [193.197.184.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 322A843FAF for ; Wed, 18 Jun 2003 09:35:24 -0700 (PDT) (envelope-from mailnull@mips.inka.de) Received: from kemoauc.mips.inka.de (uucp@) by mail.inka.de with gbsmtp id 19Sfu7-0005LF-01; Wed, 18 Jun 2003 18:35:23 +0200 Received: from kemoauc.mips.inka.de (localhost [127.0.0.1]) by kemoauc.mips.inka.de (8.12.9/8.12.6) with ESMTP id h5IGSMih027760 for ; Wed, 18 Jun 2003 18:28:22 +0200 (CEST) (envelope-from mailnull@localhost.mips.inka.de) Received: (from mailnull@localhost) by kemoauc.mips.inka.de (8.12.9/8.12.9/Submit) id h5IGSMO3027759 for freebsd-ports@freebsd.org; Wed, 18 Jun 2003 18:28:22 +0200 (CEST) From: naddy@mips.inka.de (Christian Weisgerber) Date: Wed, 18 Jun 2003 16:28:21 +0000 (UTC) Message-ID: References: <20030618145100.GA16272@chaos.obstruction.com> Originator: naddy@mips.inka.de (Christian Weisgerber) To: freebsd-ports@freebsd.org Subject: Re: Nethack, xterm, 5.1-RELEASE X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Jun 2003 16:35:25 -0000 Guy Middleton wrote: > I install the nethack34 port on 5.1-RELEASE, then try to run it in an xterm, > it says "Terminal must backspace" and quits. This is due to the removal of the "bs" attribute from the xterm termcap entry. "bs" has been classified as obsolete forever. I'm not certain what the proper fix is, though. Hmm. I guess the subsequent check for "cm" is enough to filter out unusable terminals. (The thought of somebody still working with a 30-year old homebrew terminal that supports cursor movement but no absolute positioning is just a tad too ridiculous to entertain seriously.) How are things if we simply remove the offending check? --- win/tty/termcap.c.orig Wed Jun 18 18:21:29 2003 +++ win/tty/termcap.c Wed Jun 18 18:21:51 2003 @@ -217,10 +217,6 @@ error("Terminal must backspace."); # else if(!(BC = Tgetstr("bc"))) { /* termcap also uses bc/bs */ -# ifndef MINIMAL_TERM - if(!tgetflag("bs")) - error("Terminal must backspace."); -# endif BC = tbufptr; tbufptr += 2; *BC = '\b'; -- Christian "naddy" Weisgerber naddy@mips.inka.de