title: Retrieving the last printed character on console
body: <p>I'd like to get the last character written on the console in python.
  For example I may have several threads which write on the console then in each of the threads I need to know the last character that has been written to the console by other threads. Is there any way?</p>
  
  <p>e.g:
  <code>&gt;&gt; print 'Hello'</code>
  the last character is '\n' in this case
  or</p>
  
  <pre><code>Thread A:
  &gt;&gt;&gt; print 'Hello'
  Thread B:
  &gt;&gt;&gt; print 'Bye'
  Thread C:
  &gt;&gt;&gt; What is the last written character?
  </code></pre>
  
  <p>And it's obvious we can't determine the answer in thread C unless we ask the Console in some way.</p>