Date: Fri, 6 Jul 2001 11:22:14 +0400 From: "Andrey Simonenko" <simon@comsys.ntu-kpi.kiev.ua> To: "Eric Melville" <eric@FreeBSD.ORG> Cc: <freebsd-hackers@FreeBSD.ORG> Subject: Re: Status of dialog(1) and libdialog. Message-ID: <000901c105ec$61664e80$6d36120a@comsys.ntukpi.kiev.ua> References: <01c201c10468$b6a71e40$6d36120a@comsys.ntukpi.kiev.ua> <20010705143339.A98165@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
----- Original Message ----- From: Eric Melville <eric@FreeBSD.ORG> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?000901c105ec$61664e80$6d36120a>