Libtermui is a terminal driver library. It is fully standalone and lightweight. It does not rely on termcap or curses libraries. It can drive terminals on a TTY or through a telnet connection directly on a TCP socket. It is fully re-entrant, and can be used to drive multiple terminals from different threads. It includes a getline feature (similar to the one in readline) and some console user interface facilities.
Cancan is a text-based, interactive utility similar to telnet, but with a number of extensions useful for MUD playing. Another use might be to provide line editing, aliases, etc., for those services that have a simple telnet interface. Cancan features aliases, actions, key bindings, text highlighting, substitutions, and line editing with history and completion.