From owner-freebsd-questions@FreeBSD.ORG Thu Mar 19 23:59:23 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 27A20106566C for ; Thu, 19 Mar 2009 23:59:23 +0000 (UTC) (envelope-from erikt@midgard.homeip.net) Received: from ch-smtp02.sth.basefarm.net (ch-smtp02.sth.basefarm.net [80.76.149.213]) by mx1.freebsd.org (Postfix) with ESMTP id D49C58FC0C for ; Thu, 19 Mar 2009 23:59:22 +0000 (UTC) (envelope-from erikt@midgard.homeip.net) Received: from c83-255-48-78.bredband.comhem.se ([83.255.48.78]:59179 helo=falcon.midgard.homeip.net) by ch-smtp02.sth.basefarm.net with smtp (Exim 4.68) (envelope-from ) id 1LkS8X-0007G9-7W for freebsd-questions@freebsd.org; Fri, 20 Mar 2009 00:58:59 +0100 Received: (qmail 46955 invoked from network); 20 Mar 2009 00:58:54 +0100 Received: from owl.midgard.homeip.net (10.1.5.7) by falcon.midgard.homeip.net with SMTP; 20 Mar 2009 00:58:54 +0100 Received: (qmail 54703 invoked by uid 1001); 20 Mar 2009 00:58:54 +0100 Date: Fri, 20 Mar 2009 00:58:54 +0100 From: Erik Trulsson To: Polytropon Message-ID: <20090319235854.GA54530@owl.midgard.homeip.net> References: <20090320001352.caa9cc9e.freebsd@edvax.de> <8D8F5660-B420-45D9-902E-13CEA49B53C9@mac.com> <20090320003631.506c5a5c.freebsd@edvax.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20090320003631.506c5a5c.freebsd@edvax.de> User-Agent: Mutt/1.5.18 (2008-05-17) X-Originating-IP: 83.255.48.78 X-Scan-Result: No virus found in message 1LkS8X-0007G9-7W. X-Scan-Signature: ch-smtp02.sth.basefarm.net 1LkS8X-0007G9-7W af50e65c0152f4776e2deb32732bf2d0 Cc: FreeBSD Questions Subject: Re: Text mode dialog library like TSO X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Mar 2009 23:59:23 -0000 On Fri, Mar 20, 2009 at 12:36:31AM +0100, Polytropon wrote: > On Thu, 19 Mar 2009 16:22:01 -0700, Chuck Swiger wrote: > > Consider looking at dialog(3), which rides on top of ncurses. > > There's also a CLI utility by the same name handy for shell-scripting > > purposes. > > Allthough dialog does come with the basic means I did describe, > it looks a bit... bulky? I don't want to sound impolite, but > consider the width of > > +------------+ > Name: | | > +------------+ > > to > > Name: ____________ > > which would be more... elegant. But "man dialog" is very interesting. > It even offers functionalities (lists, yes/no buttons etc.) that > I haven't thought of. > > Thank you, I'll take this into mind. Another alternative might be the form(3) library which also is built on top of ncurses. It seems to be a bit more cumbersome to use than dialog(3) but is probably somewhat closer to what you were looking for. If you look around a bit on the web you can probably find several tutorials and references for both curses as well as the form, menu. and panel libraries that are usually included with most curses implementations (including ncurses.) See for example http://tldp.org/HOWTO/NCURSES-Programming-HOWTO/ -- Erik Trulsson ertr1013@student.uu.se