Mail Archives: djgpp/2002/01/18/21:54:11
> >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 -