DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   C++ (http://www.daniweb.com/forums/forum8.html)
-   -   blink a text?? (http://www.daniweb.com/forums/thread34554.html)

stackOverflow Oct 27th, 2005 11:19 am
blink a text??
 
Hello everyone,

Just wanted to know how can i blink a text in C/C++. Should use any graphics function. And i'm supposed to use a TC 3.0 :rolleyes:

SpS Oct 27th, 2005 12:52 pm
Re: blink a text??
 
Blinking text in DOS, compiled with Turbo C
#include <conio.h>
#include <stdio.h>
int main()
{
int color;
textattr(128 + 10);
cprintf("This is blinking text\n");
return 0;
}

stackOverflow Oct 27th, 2005 8:25 pm
Re: blink a text??
 
Thanks a lot for the help, it works. But i was just wondering if the same can be done in graphical mode using graphics.h. Any help will be appreciated. Thanks.

Asif_NSU Oct 28th, 2005 3:00 am
Re: blink a text??
 
Quote:

Originally Posted by sunnypalsingh
Blinking text in DOS, compiled with Turbo C
#include <conio.h>
#include <stdio.h>
int main()
{
int color;
textattr(128 + 10);
cprintf("This is blinking text\n");
return 0;
}

Nice copy from the web ;)

SpS Oct 28th, 2005 5:50 am
Re: blink a text??
 
So...

Asif_NSU Oct 28th, 2005 4:36 pm
Re: blink a text??
 
Quote:

Originally Posted by sunnypalsingh
So...

So it's a nice copy from the web :)

Nevermind, just ignore what I said.

stackOverflow Oct 28th, 2005 10:01 pm
Re: blink a text??
 
Hi again,

I just wanted to know if i can blink a text in graphics mode also .. only because i want to set the font size and change font color.

And i think thats ok if it is from the web, atleast somebody is trying to help me out!


All times are GMT -4. The time now is 1:36 am.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC