From owner-freebsd-questions@FreeBSD.ORG Sat Jun 5 11:40:53 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A87C316A4CE for ; Sat, 5 Jun 2004 11:40:53 -0700 (PDT) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6572943D5A for ; Sat, 5 Jun 2004 11:40:53 -0700 (PDT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.12.10/8.12.10) id i55IelIN008491; Sat, 5 Jun 2004 13:40:47 -0500 (CDT) (envelope-from dan) Date: Sat, 5 Jun 2004 13:40:47 -0500 From: Dan Nelson To: sigsegv@mail.ru Message-ID: <20040605184047.GA42830@dan.emsphone.com> References: <40C185CF.2020709@mail.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <40C185CF.2020709@mail.ru> X-OS: FreeBSD 5.2-CURRENT X-message-flag: Outlook Error User-Agent: Mutt/1.5.6i cc: freebsd-questions@freebsd.org Subject: Re: termcap vs terminfo X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Jun 2004 18:40:53 -0000 In the last episode (Jun 05), sigsegv@mail.ru said: > I've noticed that the base system does not have terminfo, but instead > comes with termcap. Apparently BSD always had termcap and System V > had terminfo. I don't want to start a religious war as to which one > is better, but only want to ask if anyone has experienced problems > when porting ncurses applications from BSD to System V and vice > versa, and what could be done to minimise such problems. FreeBSD's libcurses is ncurses, and it also uses the same terminal descriptions that terminfo-using systems do (just in termcap format), so you shouldn't have any problems. If you want to be portable across all systems, I think some commercial systems' curses libraries don't do color, so you'll have to check for that. -- Dan Nelson dnelson@allantgroup.com