user8519: I'm testing out an accelerometer and I want to know if there's a way to make it so that the serial monitor will update the values without printing a new line. Ideally the serial monitor would say something like:
Accelerometer X: $xval
Accelerometer y: $yval

and then instead of printing two new lines each time, it just updates the values. Is there anyway to do that in Arduino? Thanks.

user8046: You might want to look into processing. You can use that to view the accelerometers position in 3d and see the values changing if that's what you want. The official Arduino site talks about it here.  Here is a great tutorial on it.

user368: No. The serial monitor does not support terminal handling. Either use a serial communications program that does and use those features, or write a custom client that will only update those values in its interface.

user4143: The ultra-basic "serial monitor" in the Arduino IDE cannot do what you want.
Instead you need to either write a special client program, or use a more standard serial terminal program, such as Tera Term (Windows), Minicom (Linux), etc.
These standard serial terminal programs use a special sequence of characters called ANSI escape codes which manipulate the display, doing such things as setting colours, moving the cursor around, etc.
More information on ANSI escape codes can be found here: http://en.wikipedia.org/wiki/ANSI_escape_code

8519: <p>I'm testing out an accelerometer and I want to know if there's a way to make it so that the serial monitor will update the values without printing a new line. Ideally the serial monitor would say something like:</p>

<pre><code>Accelerometer X: $xval
Accelerometer y: $yval
</code></pre>

<p>and then instead of printing two new lines each time, it just updates the values. Is there anyway to do that in Arduino? Thanks.</p>
 8046: <p>You might want to look into <a href="https://processing.org/" rel="nofollow">processing</a>. You can use that to view the accelerometers position in 3d and see the values changing if that's what you want. The official Arduino site talks about it <a href="http://playground.arduino.cc/interfacing/processing" rel="nofollow">here</a>.  Here is a great <a href="https://learn.sparkfun.com/tutorials/connecting-arduino-to-processing" rel="nofollow">tutorial</a> on it.</p>
 368: <p>No. The serial monitor does not support terminal handling. Either use a serial communications program that does and use those features, or write a custom client that will only update those values in its interface.</p>
 4143: <p>The ultra-basic "serial monitor" in the Arduino IDE cannot do what you want.</p>

<p>Instead you need to either write a special client program, or use a more standard serial terminal program, such as Tera Term (Windows), Minicom (Linux), etc.</p>

<p>These standard serial terminal programs use a special sequence of characters called <em>ANSI escape codes</em> which manipulate the display, doing such things as setting colours, moving the cursor around, etc.</p>

<p>More information on ANSI escape codes can be found here: <a href="http://en.wikipedia.org/wiki/ANSI_escape_code">http://en.wikipedia.org/wiki/ANSI_escape_code</a></p>
