title: Split a console into two different parts in C
body: <p>How do I split a console into two parts? I'm trying to build a simple chat in C and I'd like to have the output on the top of the console and the input on one line at the bottom. I would assign the output handling to one thread and the input handling to another thread. For example:</p>
  <pre><code>Connected to server!
  User1: Hello!
  User2: How are you?
  
  
  Write something here: simple TCP chat
  </code></pre>
  <hr />
  <pre><code>User1: Hello!
  User2: How are you?
  You: simple TCP chat
  
  Write something here: 
  </code></pre>
  <p>Is it even possible to achieve something like this in plain C?
  Thank you in advance!</p>
  <p>PS: This question has already been asked some time ago, but the code is in C#, not C.</p>