title: In-Place Update for print()-Function
body: <p>basically I want to do the following:</p>
  
  <p>let's say I have two methods:</p>
  
  <pre><code>def printA(i: Int){
     print("Value A: " + i)
  }
  
  def printB(j: Int){
     print("Value B: " + j)
  }
  </code></pre>
  
  <p>Now - for example - I use this both methods do print out some results for a computation. I want that both values can be updated without printing a new line each time (when using println()) or concatenating the new values the the older ones (when using print()).</p>
  
  <p>The output behind ":" should be updated for both lines idependently.</p>
  
  <p>In Python I would use placeholders:</p>
  
  <pre><code>def printA(i):
      print '\rValue A: %d' % (i),
      sys.stdout.flush()
  </code></pre>
  
  <p>The comma prevents Python to insert "\n". For Scala it should quite work the same way with carriage return ("\r").</p>
  
  <p>The Problem is, that I now want to update to prints idependently but carriage return destroys the whole output and so only the last line is printed.</p>
  
  <p>Is there any solution to do this in scala?</p>
  
  <p>Thanks for your help!</p>
  
  <p>Regards</p>