title: How to blink particular text continuously all time during input and output?
body: <p>Here is my code which blinks 'Welcome' after user enter his name. </p>
  
  <p>'Welcome' does not blink when user is writing his name. As user hits enter then caret goes into the while loop. Then caret position is set back to the coordinates of 'Welcome' &amp; cout prints 'Welcome' with 5 colors again &amp; again so it seems that 'Welcome' is blinking.</p>
  
  <p>But I want that 'Welcome' blinks continuously as the program starts.</p>
  
  <p>So more likely this question also ask - can we have two caret/cursor at the same time ?</p>
  
  <pre><code>#include &lt;iostream&gt;
  #include &lt;conio.h&gt; 
  #include &lt;windows.h&gt;
   using namespace std;
   int main(int argc, char** argv)
   {
     int x,y,i;char name[10];
     textcolor(10);
     x=wherex();y=wherey();       //corrdinates of caret will be stored in x &amp; y.
     cout&lt;&lt;"\t\t\t\tWelcome\n";
     textcolor(15);
     cout&lt;&lt;"\nEnter your name\n";
     gets(name);
     while(1)
     {
        for(i=10;i&lt;15;i++)
        {
           textcolor(i);
           gotoxy(x,y);          //Transferring caret to the coordinates stored in x &amp; y.
           cout&lt;&lt;"\t\t\t\tWelcome";
           Sleep(300);
        }
     }
     return 0;
   }
  </code></pre>