So I have been wondering how to do this for some time, and I thought who better to ask then the SO community.

I apologize in advance if this is a little vague, but I will do my best to get my question across.

We all remember the first time we got caught in a infinite loop with a print statement. The terminal fills up fast, and soon all you see it a bunch of scrolling text...

How do I make it not scroll? What I mean is ... How do I overwrite the line that has already been written.

How can I make my infinite loop with a one line print statement(no more than one new line) only print on one line. Where the terminal does not scroll.

```
Instead of ....
    This is an infinite loop
    This is an infinite loop
    This is an infinite loop

You just have one line that updates every iteration of the loop.
    This is an infinite loop

```

Thanks for reading, comment if this made absolutely no since. I'll try to clarify in a cloudy world...

PS - What I am doing right now is in C, but it wouldn't hurt to know how to do this in other languages.

Question (0.1)
==============

What if you wanted to update multiple lines in place?
=====================================================

```
printf("This is some text\n");
printf("This is more text\n");

```

That would give me two lines and I want to update both of them, but not scroll.