title: How to implement tab completion on the telnet client side
body: <p>I have a server which opens a connections for a telnet client, like
  for example:
  I run the server <code>./server</code> and in another window I run telnet client as telnet localhost 9999,
  as I run the telnet client, I will get new CLI prompt as CLI>>.</p>
  
  <p>From this prompt I need custom tab completion, but many of the blog says we can really dont have readline feature implemented on the telnet side, if so we have go for our own client.</p>
  
  <p>How do I achieve it? Any related help would be greatly appreciated. I am using linux(Ubuntu) and C language. </p>