From: mert0407 AT sable DOT ox DOT ac DOT uk (George Foot) Newsgroups: comp.os.msdos.djgpp Subject: Re: Text Mode with allegro Date: 16 Oct 1997 16:40:52 GMT Organization: Oxford University, England Lines: 20 Message-ID: <625g2k$m5g$1@news.ox.ac.uk> References: <6257hd$1anj$1 AT power DOT ci DOT uv DOT es> <34464e87 DOT 2254098 AT news DOT jet DOT es> NNTP-Posting-Host: sable.ox.ac.uk To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk On Thu, 16 Oct 1997 17:32:42 GMT in comp.os.msdos.djgpp Grzegorz Adam Hankiewicz (gregorio AT jet DOT es) wrote: : >I am using allegro : >I change to graphics mode with set_gfx_mode(GFX_AUTODETECT,640,480,0,0); : >then I change to text mode with set_gfx_mode(GFX_TEXT,80,25,0,0); : >but I use the function clrscr() and it does not work. : > : >I am doing anything wrong ? : Yes. All of Allegro's function are written ONLY for graphical modes, : like 320x200, 640x480, etc. The GFX_TEXT mode is there only to come : back to text mode when your program using graphics has ended. ... however, clrscr() is a conio function, right? :) To the original poster: Try calling textmode (the conio function) after telling Allegro to restore text mode. I'm not sure whether this will help, though. -- George Foot Merton College, Oxford