bug-ncurses
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: borders around form fields


From: Thomas Dickey
Subject: Re: borders around form fields
Date: Sat, 02 Dec 2006 12:12:17 -0500
User-agent: Mutt/1.5.13 (2006-08-11)

On Fri, Nov 24, 2006 at 02:22:38PM +0000, Will Parsons wrote:
> 
> I am trying to convert a test program that presently just uses stdio for 
> its user interaction to have a visually appealing interface using ncurses.
> For some of the data that needs to be entered by the user, it would make
> sense to make use of the forms library, but for aesthestic reasons, I 
> would like to use shaded borders around the entry fields, like those that 
> can be seen e.g. in the FreeBSD sysinstall screen for adding a new user.  
> (I think the FreeBSD sysinstall utility uses "dialog", but this is not 
> suitable for my use since my program is not a shell script.)

FreeBSD uses a fork of dialog, which has some pros/cons.  Except for a
couple of widgets that I've not implemented, this is preferable:

        http://invisible-island.net/dialog/

See also

        http://invisible-island.net/cdk/
> 
> There doesn't seems to be any API for drawing a border around individual
> fields, so how can accomplish this without re-inventing the logic already
> built into the forms library?

...or extending the current forms library (hard to do transparently,
but I suppose the various struct's could be added to).

-- 
Thomas E. Dickey <address@hidden>
http://invisible-island.net
ftp://invisible-island.net

Attachment: signature.asc
Description: Digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]