kar
kar

Reputation:

Blinking letters in c++

I am developing programs in c++ on linux platform (g++ compiler) . Where in one point I want my output character to blink on the terminal. How can I do it?

Upvotes: 1

Views: 1420

Answers (3)

pankaj
pankaj

Reputation:

install vtoo it can help you

Upvotes: 0

Chris Boyle
Chris Boyle

Reputation: 11551

From looking at Wikipedia, the string \e[5mfoo\e[m produces a blinking "foo" in xterm or in the Linux console (as in Ctrl-Alt-F1). Worth noting that gnome-terminal doesn't respond to it (just produces a plain foo), and neither xterm nor gnome-terminal nor tty1 respond to 6 (blink rapid), at least on my system (Ubuntu 9.04).

Upvotes: 3

Alan Haggai Alavi
Alan Haggai Alavi

Reputation: 74262

ncurses library will be of help.

Upvotes: 5

Related Questions