X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f Message-ID: <20020119025300.92509.qmail@web13904.mail.yahoo.com> Date: Fri, 18 Jan 2002 18:53:00 -0800 (PST) From: Chris Amos Subject: Re: scanf & 320*200 To: djgpp AT delorie DOT com In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk > >Hi > > > >am *trying* to read a string from centre of screen, vga mode (320 > * > 200) - > > > >i know i'm missing important info but not sure what - > >if it's possible to printf, or sprintf, with textout or > textout_centre etc > >in (320 * 200), why not scanf, possibly using FILE to set the stream > >pointer? > > > >any clues would be useful > > > >thanks > > I assume you are using allegro. 'textout_centre' Im not aware of any routines in the library that allow a scanf user input from any video modes other than textmode. You need to write your own scanf routine for allegro. It's easy to do. Just put all KB input into a 255 char buffer and update the screen with the char buffer. When the ascii code for shows up, just pass all of the previous chars to the designated array and RETURN *p; ===== ~ Twisted Matrix aka. Christoph A. Amos ~ URL: http://qbrpg.qb45.com ICQ: 74628745 *Not active right now __________________________________________________ Do You Yahoo!? Send FREE video emails in Yahoo! Mail! http://promo.yahoo.com/videomail/