title: Java terminal program output on single line
body: <p>I'm creating a java application that at some point during execution needs to display several outputs on a single line by refreshing. It will need to show each output the wait for the user to confirm. I'm stuck on how to pause the output until enter is pressed. By using the following methond: </p>
  
  <pre><code>System.out.print("Test 1\r");
  System.in.read();
  System.out.print("Test 2\r");
  </code></pre>
  
  <p>however when I use this method the cursor jumps down to a new line, like so</p>
  
  <pre><code>Test 1
  Test 2
  </code></pre>
  
  <p>Does anyone know an easy work around for this?</p>