From owner-freebsd-ports@FreeBSD.ORG Wed Jul 11 17:23:50 2012 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 54462106566B for ; Wed, 11 Jul 2012 17:23:50 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (wonkity.com [67.158.26.137]) by mx1.freebsd.org (Postfix) with ESMTP id 133818FC0A for ; Wed, 11 Jul 2012 17:23:49 +0000 (UTC) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.14.5/8.14.5) with ESMTP id q6BHNniF082675 for ; Wed, 11 Jul 2012 11:23:49 -0600 (MDT) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.14.5/8.14.5/Submit) with ESMTP id q6BHNnuD082672 for ; Wed, 11 Jul 2012 11:23:49 -0600 (MDT) (envelope-from wblock@wonkity.com) Date: Wed, 11 Jul 2012 11:23:49 -0600 (MDT) From: Warren Block To: ports@freebsd.org Message-ID: User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.7 (wonkity.com [127.0.0.1]); Wed, 11 Jul 2012 11:23:49 -0600 (MDT) Cc: Subject: CFT: ports options dialogwrapper X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Jul 2012 17:23:50 -0000 A few weeks ago, there was talk of how short descriptions of port options were not helpful to users. It also turns out that versions of dialog(1) used before 9.0-RELEASE had a bug that caused too-long descriptions to garble the display. Another annoyance is that the options window does not take advantage of a larger display space. It is hardcoded to assume an 80x24 display. With a vast amount of help from Devin Teske, here is a sh(1) wrapper for dialog(1) that attempts to fix these problems. Note: no changes are made to the ports system or dialog(1). The readme.txt describes installation, example tests, and possible improvements. http://www.wonkity.com/~wblock/dialogwrapper Feedback welcome. Note: there is an alternate version with a much smaller sh script and a larger, separate awk program. I feel this is much more readable and maintainable than the quoting mess of sh(1). However, it is two files, and arguably more code, and I have not tested it much. These files are in the awk-version directory.