rlwrap allows you to get command history and advanced editing:
$ rlwrap telnet localhost 4242
More information about formatting options
Post new comment