title: How can I wait for a string from a server with IdTCPClient?
body: <p>I have a problem with IdTelnet (indy 10.1). I can't read the data from a server in Unicode mode. and now I want to write the telnet terminal with IdTCPClient.</p>
  
  <p>The server sometimes send one line and sometimes more and more lines. But there is not a fixed time between sending.</p>
  
  <p>Now my problem is that when I must read data from InBuffer.</p>
  
  <p>Or when I must use the ReadLn function to read the data from the server, how many times must I run the ReadLn?</p>