From owner-freebsd-hackers@FreeBSD.ORG Fri Dec 31 18:39:25 2010 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7B2E51065693; Fri, 31 Dec 2010 18:39:25 +0000 (UTC) (envelope-from lists@eitanadler.com) Received: from mail-iy0-f182.google.com (mail-iy0-f182.google.com [209.85.210.182]) by mx1.freebsd.org (Postfix) with ESMTP id 427BC8FC1A; Fri, 31 Dec 2010 18:39:24 +0000 (UTC) Received: by iyb26 with SMTP id 26so11055355iyb.13 for ; Fri, 31 Dec 2010 10:39:24 -0800 (PST) Received: by 10.231.39.199 with SMTP id h7mr1727256ibe.157.1293820763552; Fri, 31 Dec 2010 10:39:23 -0800 (PST) MIME-Version: 1.0 Received: by 10.231.160.65 with HTTP; Fri, 31 Dec 2010 10:39:03 -0800 (PST) In-Reply-To: References: From: Eitan Adler Date: Fri, 31 Dec 2010 13:39:03 -0500 Message-ID: To: Eygene Ryabinkin Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-hackers@freebsd.org Subject: Re: questions relating to ncurses and dialog(1) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 31 Dec 2010 18:39:25 -0000 Thank you. I was stuck for a week on the ncurses issue - but now I don't think I will have that problem anymore. :-} On Fri, Dec 31, 2010 at 5:49 AM, Eygene Ryabinkin wrote: > Thu, Dec 30, 2010 at 07:03:44PM -0500, Eitan Adler wrote: >> 2) The "help" screen just doesn't show up despite having text and a >> border and not generating any errors (which are all checked) > > You're using 'frameCols' while calculating > windowStatList[HELP].rowStart, so your window is starting somewhere > around line 76 at the 80x25 terminal, thus it is just invisible. > Use 'frameRows' and you'll get something that will be top-aligned > with the buttons. > > There's one more thing: the lone 'dialog4ports --hfile=3D' > will dump core, because prev is NULL in this case. > > The attached patch should fix the first item and will apply > a quick-fix for the second one. > -- > Eygene Ryabinkin =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0,,,^..^,,, > [ Life's unfair - but root password helps! =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 | codelabs.ru ] > [ 82FE 06BC D497 C0DE 49EC =C2=A04FF0 16AF 9EAE 8152 ECFB | freebsd.org ] > --=20 Eitan Adler