www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/01/18/21:54:11

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 <homie_dont_play_dat AT yahoo DOT com>
Subject: Re: scanf & 320*200
To: djgpp AT delorie DOT com
In-Reply-To: <Rd218.1068$nA4.137834@monolith.news.easynet.net>
MIME-Version: 1.0
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

> >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 <enter> 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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019