• 0

blinking text in DOS


Question

4 answers to this question

Recommended Posts

  • 0

There isn't by default. There is an ansi escape sequence that will give you what you want, but you have to have ansi.sys loaded and cmd.exe doesn't support ansi.sys, only command.com. If you can get that loaded and working, the sequence would be "\e[5m", or "\x1B[5m" or you could set up the ESC char like so:

const char ESC = char( '['-'@' );

and use it like so:

std::cout << ESC << "[5m" << std::flush;

I've not been able to get ansi.sys to work on my machine( 2003 Server ). To load it, you need to add a device( device=%SystemRoot%\system32\ansi.sys ) to your Config.nt file in your windows\system32 directory. Good luck.

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.