I'm trying to get command line editing on a program that reads directly
from sockets. (Basically, you telnet to a port, and are given a
command prompt) I've used fdopen() on the socket fd, and handed
rl_instream and rl_outstream the resulting FILE *.
readline gets the data, but it seems terminal cooked. None of the
history or editing commands work, and there are double-echos on the
socket.
So, how do I convince readline that the socket is indeed a terminal, and
that raw (vs cooked) io can occur?
Any help would be appreciated.
Sent via Deja.com http://www.deja.com/
Before you buy.