Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>i'm not TOO sure i know exactly what you're on about. but i'll give it a shot. I think the biggest and best way to cause the "blinking" affect (or what i think the blinking affect is) is to use a carriage return. The best way to explain it to you is to show you the Foo Bar experiment. start a new project, and in your Main function, try this.</p> <pre><code>Console.WriteLine("Foo/nBar"); </code></pre> <p>The output will look like this</p> <pre><code>Foo Bar </code></pre> <p>But if you use a carriage return.</p> <pre><code>Console.WriteLine("Foo/rBar"); </code></pre> <p>The output will look like this</p> <pre><code>Bar </code></pre> <p>The reason is that Foo is written, then the carriage return takes you BACK to the start of the line, then Bar is written. All you ever see is Bar. This can be helpful for "Moving" things on one line, instead of rewriting the same things again on multiple lines. A way to do progression would be to use Console.Write(); Try this.</p> <pre><code>Console.Write("Loading"); for(int i = 0; i &lt; 10; i++) { Thread.Sleep(1000); Console.Write("."); } </code></pre> <p>The output should be</p> <pre><code>Loading </code></pre> <p>Followed by a Fullstop every second for 10 seconds.</p> <p>If you combine the Carriage return with the Console.Write(); function you can write multiple things on a single line, clear the line and write something else, or indeed, the same thing just moved slightly. (This would of course need more than i have shown you, like recording where the "object" you are controlling is situated. If you would like a short example i would be happy to do one, just comment and ask me for it :)</p> <p>Edit: I noticed people mentioning colour, which i forgot. If you were doing animation i guess colour would be a must. ForegroundColor and BackgroundColor are where it's at. note that ForegroundColor will apply to the next characters written to the console, it will not completely recolour the Console. /Edit</p> <p>I hope this helps,</p> <p>Skintkingle ;)</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload