From owner-freebsd-questions Fri Dec 12 11:56:05 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id LAA19577 for questions-outgoing; Fri, 12 Dec 1997 11:56:05 -0800 (PST) (envelope-from owner-freebsd-questions) Received: from teel.info-noire.com (XP11-1-6-10.interlinx.qc.ca [207.253.79.130]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id LAA19527 for ; Fri, 12 Dec 1997 11:55:58 -0800 (PST) (envelope-from alex@gel.usherb.ca) Received: from localhost (alex@localhost) by teel.info-noire.com (8.8.8/8.8.8) with SMTP id OAA03599; Fri, 12 Dec 1997 14:45:03 -0500 (EST) (envelope-from alex@teel.info-noire.com) Date: Fri, 12 Dec 1997 14:45:03 -0500 (EST) From: Alex Boisvert Reply-To: boia01@gel.usherb.ca To: Donn Miller cc: questions@FreeBSD.ORG Subject: Re: libvgl: documentation?? In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Fri, 12 Dec 1997, Donn Miller wrote: > Is there any docs on libvgl (for 2.2.5-RELEASE)? I would like to know how > to write a basic console-mode graphics program. > > Here is my sample program: > > #include > #include > #include > #include > #include > > int main (int argc, char **argv) > { > VGLInit(M_VGA11); > VGLBox(NULL, 10, 10, 30 , 30, 1); > return 0; > } > > I couldn't get it to do anything but return me to the prompt. Or is > -current required to run this? Thanks a lot, When using/trying libvgl, remember that you need read and write access to /dev/mem. There's an example in /usr/share/examples/libvgl. "man libvgl" is your friend. Alex. --- FreeBSD: Decouvrez la puissance de votre PC! www.freebsd.org