954,499 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

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:

stackOverflow
Junior Poster
116 posts since Dec 2004
Reputation Points: 10
Solved Threads: 0
 

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;
}
SpS
Posting Pro
599 posts since Aug 2005
Reputation Points: 70
Solved Threads: 32
 

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.

stackOverflow
Junior Poster
116 posts since Dec 2004
Reputation Points: 10
Solved Threads: 0
 

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 ;)

Asif_NSU
Posting Whiz
353 posts since Apr 2004
Reputation Points: 113
Solved Threads: 3
 

So...

SpS
Posting Pro
599 posts since Aug 2005
Reputation Points: 70
Solved Threads: 32
 
So...


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

Nevermind, just ignore what I said.

Asif_NSU
Posting Whiz
353 posts since Apr 2004
Reputation Points: 113
Solved Threads: 3
 

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!

stackOverflow
Junior Poster
116 posts since Dec 2004
Reputation Points: 10
Solved Threads: 0
 

how to blink output using turbo c++ 4.5

juliajosh
Newbie Poster
1 post since Mar 2010
Reputation Points: 10
Solved Threads: 0
 
how to blink output using turbo c++ 4.5


How about you actuallyread the replies in this thread?

Nick Evan
Not a Llama
Moderator
10,112 posts since Oct 2006
Reputation Points: 4,142
Solved Threads: 403
 

how to make a code on blink text using c++?

danifel
Newbie Poster
1 post since Aug 2010
Reputation Points: 10
Solved Threads: 0
 

*sigh*

Closed for too much bumping & "gimme codez tooo!!1" replies.

Nick Evan
Not a Llama
Moderator
10,112 posts since Oct 2006
Reputation Points: 4,142
Solved Threads: 403
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You