How to implement tab completion on the telnet client side

Viewed 2342

I have a server which opens a connections for a telnet client, like for example: I run the server ./server 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>>.

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.

How do I achieve it? Any related help would be greatly appreciated. I am using linux(Ubuntu) and C language.

3 Answers
Related