From owner-freebsd-hackers Fri Jul 6 1:30:42 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from relay1.ntu-kpi.kiev.ua (www.ntu-kpi.kiev.ua [212.111.192.161]) by hub.freebsd.org (Postfix) with ESMTP id 3BC3337B407; Fri, 6 Jul 2001 01:30:35 -0700 (PDT) (envelope-from simon@comsys.ntu-kpi.kiev.ua) Received: from comsys.ntu-kpi.kiev.ua (eth0.comsys.ntu-kpi.kiev.ua [10.0.1.184]) by relay1.ntu-kpi.kiev.ua (Postfix) with ESMTP id 85A6F2EF06; Fri, 6 Jul 2001 11:30:29 +0300 (EEST) Received: from pm5149 (pm514-9.comsys.ntu-kpi.kiev.ua [10.18.54.109]) by comsys.ntu-kpi.kiev.ua (8.11.3/8.11.3) with SMTP id f668PHc02759; Fri, 6 Jul 2001 11:25:17 +0300 (EEST) Message-ID: <000901c105ec$61664e80$6d36120a@comsys.ntukpi.kiev.ua> From: "Andrey Simonenko" To: "Eric Melville" Cc: References: <01c201c10468$b6a71e40$6d36120a@comsys.ntukpi.kiev.ua> <20010705143339.A98165@FreeBSD.org> Subject: Re: Status of dialog(1) and libdialog. Date: Fri, 6 Jul 2001 11:22:14 +0400 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2014.211 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG ----- Original Message ----- From: Eric Melville Newsgroups: lucky.freebsd.hackers Sent: Friday, July 06, 2001 1:34 AM Subject: Re: Status of dialog(1) and libdialog. > I'm currently working on libdialog, hopefully making the interface a bit > more sensible. I'd like to see what you're up too, hopefully we're not > duplicating efforts. Currently the plan is to commit this stuff in a day > or two. > I did and tested following: 1. DialogX and DialogY by default are equal to -1 and mean center of the screen as it should be, because 0 means left top corner of screen. 2. All boxes in libdialog analyse DialogX and DialogY, box size, and COLS and LINES. And there is problem, then sizes and positions of a box is corrected. 3. Almost completely print_autowrap() function was rewrittent. Now it correctly wraps words (even it works with box with width equal to 2 characters, and can work with width equal to 1 character, but I removed this feature). I a bit changed interface to this function: a line always is wraped if it has \n or \\n, if rawmode == 1, then \\n is outputed as two characters 4. dialog_msgbox() and dialog_gauge() were almost completely rewritten. Now, it's possible to pass empty prompt to these functions. In dialog_gauge() it is possible to pass prompt, which takes some lines. It understands any height of window and prompt is correctly wraped. 5. In dialog(1) I added --dialogx, --dialogy, --gauge, --fselect, --dselect, --noyes. Unfortunatelly --fselect has some bugs in implementation and has to be fixed, --dselect doesn't work propertly at all. Currently I try to fix dialog_inputbox(). Problems with size and position of box already are fixed. Now I want to make line_edit() function more better and fix problems with line size, unsafe strcpy() calls, etc. The problem which took a lot of time is really print_autowrap() function, which can broke ncurses window. So, some of parts in this function were completely removed and now it can work with any width and height of window. Unfortunately strheight() and strwidth() functions incorrectly work and can't tell expected width and height of window (it was before my modifications and it is now with my modifications). I hope that I don't forget something. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message