From owner-freebsd-questions@FreeBSD.ORG Mon May 12 10:05:46 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 51DCD37B401 for ; Mon, 12 May 2003 10:05:46 -0700 (PDT) Received: from nina.la3sg.net (la3sg.net [217.13.29.172]) by mx1.FreeBSD.org (Postfix) with ESMTP id D9E0143F75 for ; Mon, 12 May 2003 10:05:44 -0700 (PDT) (envelope-from tina@nina.la3sg.net) Received: from nina.la3sg.net (tina@localhost.la3sg.net [127.0.0.1]) by nina.la3sg.net (8.12.8p1/8.12.8) with ESMTP id h4CH5jmL010028; Mon, 12 May 2003 19:05:45 +0200 (CEST) (envelope-from tina@nina.la3sg.net) Received: (from tina@localhost) by nina.la3sg.net (8.12.8p1/8.12.8/Submit) id h4CH5jcK010027; Mon, 12 May 2003 19:05:45 +0200 (CEST) Date: Mon, 12 May 2003 19:05:44 +0200 From: Kjell Midtseter To: Katinka Mills Message-ID: <20030512170544.GB9151@nina.la3sg.net> References: <200305122135.27573.Malcolm.Kay@internode.on.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.1i cc: freebsd-questions Subject: Re: C Graphics Tutorial X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: kmidtset@c2i.net List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 May 2003 17:05:46 -0000 On Monday, 12 May 2003 at 21:45:23 +0800, Katinka Mills wrote: > > > > -----Original Message----- > > From: Malcolm Kay [mailto:Malcolm.Kay@internode.on.net] > > Sent: Monday, 12 May 2003 8:05 PM > > To: Katinka Mills; freebsd-questions > > Subject: Re: C Graphics Tutorial > > > > > > On Mon, 12 May 2003 20:27, Katinka Mills wrote: > > > > -----Original Message----- > > > > From: pischelletto [mailto:pischelletto2000@yahoo.com] > > > > Sent: Monday, 12 May 2003 2:43 PM > > > > To: Katinka Mills > > > > Cc: freebsd-questions > > > > Subject: Re: C Graphics Tutorial > > > > > > > > > I am not after making great 3D Graphics or any stuff > > > > > like that, just simple > > > > > graphics like make the screen blue, put a boarder > > > > > around etc etc. > > > > > > > > try to use allegro or sdl, there are very popular > > > > multiplatform graphic library. > > > > On the official site you can find also many links > > > > to various tutorial. > > > > http://www.talula.demon.co.uk/allegro/ > > > > http://www.libsdl.org/index.php > > > > > > From what I see, these are ment for running under X > > > > > > all I want to do is make a program that uses graphics like "sysinstall" > > > does, nothing flash. > > > > > > > I believe cusrses/ncurses may be what you want -- but no > > geometrical shapes. > > > > Take a look at: > > # man ncurses > > > > Malcolm > > Thanks Malcolm > > This looks exactly like what I was after :o) (I just want to make a program > that I wrote (to exercise a Parallel port for development of a parallel port > interface for DMX 512 (watchout for my FreeBSD lighting desk :o) (and home > automation software) ;o) > > Regards, > > Kat. > --- I have been playing around with home automation and FreeBSD also. My approach has been to write programs in C or PHP4 scripts that run as daemons or as cron jobs. These programs generates html pages. I use gd2 under PHP4 and MRTG to generate graphic curves. Now I can take up any of the generated pages using any web browser. I believe this approach saves me on development time, and adds extra flexibility. I can read my electric meter regardless of where I am in the world and report the reading back to my electric company on the first of every month. Regards from Kjell