title: Remove input line in telnet session
body: <p>Is it possible to remove the input line in a telnet session from the buffer, so when you press enter, the text you typed is removed, but still sent to the telnet server? </p>
  
  <p>I know there is a way to send a certain char that moves the cursor to the beginning of the line and then overwrite the line with a new one, but since the new line chatacter is put into the buffer, I can't go past that. Is there a way to work around this?</p>
  
  <p>Example: (The second line is user input)</p>
  
  <pre><code>Welcome to my imba text game!
  pick up axe
  </code></pre>
  
  <p>Then you press enter and the screen buffer reads:</p>
  
  <pre><code>Welcome to my imba mud game!
  [You picked up the axe]
  </code></pre>
  
  <p><strong>Update:</strong> </p>
  
  <p>I think the key is to set the telnet client in some mode that does not echo the local input. 
  I found that sending some magic chars to the client can change the mode. I found this example and i don't know what it means but it prevents input from showing in the telnet client. However the input is never sent to the server so it is just half the answer. </p>
  
  <pre><code>socket.send("\377\375\042\377\373\001")
  </code></pre>
  
  <p>Maybe it's because I'm reading input line by line. I would like it to be read as char by char. Don't know how to modify this to do that though:</p>
  
  <pre><code>fileobj = socket.makefile()
  while True:
      line = fileobj.readline()
      ...
  </code></pre>