I need to text on same line.

Howdy :slight_smile:

I am using the Arduino IDE. I want return the cursor to home postion with a line feed. The attached screen shots shows the Serial.print code. I am using the IDE screen monitor to display/enter data.

As you can see I'm using the "\r" char to home,expect it does not work. The data just appends to the last string.

So the question is what I am doing wrong?

Rocket Nut

Nothing wrong. Serial monitor isn't that advanced. I guess you can use any terminal program you want that can handle control codes.

Welcome,

Use another Serial monitor, such as RealTerm. It's not pretty, but much more powerful and will display as you want :slight_smile:

Is the serial monitor set to break on carriage return? I think by default it breaks on CRLF not just CR, but there's a dropdown menu for that.

Why not just do Serial.println(); instead of Serial.print("\r"); ?

So the question is what I am doing wrong?

Posting the same question twice within ten minutes.

(don't look for the other one, I deleted it)

AWOL:
Posting the same question twice within ten minutes.

(don't look for the other one, I deleted it)

Yes my bad. Just chalk it up to a newbe learning how things work.