From owner-freebsd-ports@FreeBSD.ORG Wed Mar 20 00:27:48 2013 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id AE27EB68; Wed, 20 Mar 2013 00:27:48 +0000 (UTC) (envelope-from dnebdal@gmail.com) Received: from mail-la0-x22c.google.com (mail-la0-x22c.google.com [IPv6:2a00:1450:4010:c03::22c]) by mx1.freebsd.org (Postfix) with ESMTP id 1096FEE2; Wed, 20 Mar 2013 00:27:47 +0000 (UTC) Received: by mail-la0-f44.google.com with SMTP id eb20so2111393lab.3 for ; Tue, 19 Mar 2013 17:27:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=bwwISh6a5yQjWLLEUW/6ICzXI3t8o3uuzoB0VCHWbQU=; b=XStvVu/hu5sAQrU4Qn2jAYksXbj0rV7VnrHtIO9YDjbX+Z87lKGGKpCJ4veZ0H2cDT qbHcHEcc+aL6ffrfHAKUe2BEEnl5PsMa62Fm1VWglOyz+R6MwmFVc4JbuqWRps43D6YK WHs6Gx11ILKdBBnnc1Ysg3SvCEotT3NbmovH8EomwEuLEM7SEq0pcJMM4dZT92JDStxk rKDrQXerhqEYbgVdBEYHLqtm5lr1wVBuWDRmzLhwpb4ePgIpeqsnZMCm505QMapq26LN IOgzcb0A968EVkabU7ttyx2JvXpiibRzWBEvuji+uu3oj1BBNo3vVjgHISQanRzDBHfO El7A== MIME-Version: 1.0 X-Received: by 10.152.112.138 with SMTP id iq10mr3680879lab.55.1363739267082; Tue, 19 Mar 2013 17:27:47 -0700 (PDT) Received: by 10.112.80.133 with HTTP; Tue, 19 Mar 2013 17:27:46 -0700 (PDT) In-Reply-To: <20130314095529.GH53963@ithaqua.etoilebsd.net> References: <20130314095529.GH53963@ithaqua.etoilebsd.net> Date: Wed, 20 Mar 2013 01:27:46 +0100 Message-ID: Subject: Re: [CFT] New dialog for ports From: Daniel Nebdal To: Baptiste Daroussin Content-Type: text/plain; charset=ISO-8859-1 Cc: ports@freebsd.org X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Mar 2013 00:27:48 -0000 On Thu, Mar 14, 2013 at 10:55 AM, Baptiste Daroussin wrote: > Hi all, > > Ilya A. Arkhipov wrote dialog4ports which has just been added into the ports > tree ports-mgmt/dialog4ports, this is intended to be a replacement for dialog(1) > designed specifically for the options, in particular for optionsng. > > It uses libdialog (recent version) and extend it with a new widget able to deal > with both normal and radio options in the same window. > > dialog4ports will live forever in ports so that it can easily be updated and get > support for new features on all supported arches at the same time. > > It bundles libdialog on FreeBSD versions that doesn't have a recent libdialog in > base (read 8.x) > > dialog4ports also support a new feature: it has a help dialog to be able to > print a human readable help text if possible. > > Here is a patch to the ports tree that makes it use dialog4ports by default. > What it does is: > When make config is requested and dialog4ports is not installed yet the ports > tree will install dialog4ports first. > > New feature for maintainer, if a pkg-help file is found inside the port > directory then dialog will show to the user a help file is available et propose > him to hint F1 or ^E to show the said help file > > http://people.freebsd.org/~bapt/d4p.diff > > Please test! > > regards, > Bapt I just found a niggle: I have LANG=en_US.UTF-8 , NCURSES_NO_UTF8_ACS=1, TERM=xterm, and I'm using putty to connect to a FreeBSD-10 machine running a snapshot from february with ports from an hour ago. Putty is set to Translation: UTF-8, and "use unicode line drawing code points". With those settings, dialog gives me nice line drawing characters (for some reason). If I unset NCURSES_NO_UTF8_ACS, all boxes are drawn using random letters instead. (jlmqx, to be exact.) The problem: ports config dialogs are _always_ drawn with the same random letters, and I haven't found any setting or combination of settings that works. This is probably more of a mis-configuration on my side than a dialog4ports problem, but still - it's slightly odd that it acts different than dialog. :)