
vty-ui is: An extensible library of user interface widgets for composing and laying out Vty user interfaces. This library provides a collection of widgets and a type class for rendering widgets to Vty Images. Get it from Hackage: http://hackage.haskell.org/package/vty-ui Or get the source with darcs: http://repos.codevine.org/vty-ui This package is motivated by the desire to create terminal user interfaces easily without having to worry about doing all of the structural book-keeping that so often comes with such an approach. Future releases will probably include more widget composition tools, more interesting widgets, and helper code for building interesting things. For now, the library contains some basic widgets (including horizontal and vertical box layout) and a List widget. See the vty-ui-demo program and source for an interactive demonstration of the available widgets. Future releases may also address performance, as I honestly don't have a very clear idea of how well my approach is going to scale for non-trivial interfaces. Please don't hesitate to send patches, feedback, and criticism directly to me at drcygnus AT gmail DOT com. Lastly, thanks a ton to the authors of Vty. It's a pleasure to use. Enjoy! -- Jonathan Daugherty

On Tue, Sep 29, 2009 at 9:35 PM, Jonathan Daugherty
vty-ui is:
An extensible library of user interface widgets for composing and laying out Vty user interfaces. This library provides a collection of widgets and a type class for rendering widgets to Vty Images.
Cool! I'll be sure to test these out when working on Vty :-D Thanks! Corey O'Connor

On Wed, Sep 30, 2009 at 5:35 AM, Jonathan Daugherty
vty-ui is:
An extensible library of user interface widgets for composing and laying out Vty user interfaces. This library provides a collection of widgets and a type class for rendering widgets to Vty Images.
Am I correct in saying that the collection of widgets contains a single widget type so far? ;-) What are the plans for adding widgets in the future? The list widget looks useful, does it handle multi-line strings (i.e. strings with a "\n")? /M -- Magnus Therning (OpenPGP: 0xAB4DFBA4) magnus@therning.org Jabber: magnus@therning.org http://therning.org/magnus identi.ca|twitter: magthe

Am I correct in saying that the collection of widgets contains a single widget type so far? ;-)
Technically, four; vertical and horizontal boxes, a text string widget, and the List you mentioned. It only has a few types because I was just releasing early. I'm going to start using this in a project and add things as needed.
The list widget looks useful, does it handle multi-line strings (i.e. strings with a "\n")?
It currently only handles single-line strings but I'd actually like to generalize it to take a list of Widget instances (possibly with restrictions). -- Jonathan Daugherty

On Thu, Oct 1, 2009 at 4:23 PM, Jonathan Daugherty
Am I correct in saying that the collection of widgets contains a single widget type so far? ;-)
Technically, four; vertical and horizontal boxes, a text string widget, and the List you mentioned. It only has a few types because I was just releasing early. I'm going to start using this in a project and add things as needed.
Nice. This sure beats how I've been doing it in the past. Out of curiousity, can you talk about what you're doing with it?
The list widget looks useful, does it handle multi-line strings (i.e. strings with a "\n")?
It currently only handles single-line strings but I'd actually like to generalize it to take a list of Widget instances (possibly with restrictions).
Very nice. /M -- Magnus Therning (OpenPGP: 0xAB4DFBA4) magnus@therning.org Jabber: magnus@therning.org http://therning.org/magnus identi.ca|twitter: magthe

# Nice. This sure beats how I've been doing it in the past. Out of # curiousity, can you talk about what you're doing with it? Yeah, I'd like to use this to write an administration tool for my "dbmigrations" package. I started doing it in hscurses and decided I needed to be able to live with the code (and the process of writing it), so now I'm off in the weeds working on a UI library. :) On the way to work this morning I started working on a Scrollable class to generalize the List's scrolling capabilities and support scrolling of any widget rendered in constrained space. We'll see how that goes.. -- Jonathan Daugherty
participants (3)
-
Corey O'Connor
-
Jonathan Daugherty
-
Magnus Therning