To answer my own question. I discovered via
process.binding('stdio').opentty I could create a pty, and I was able
to pipe the TCP data to its slave part, altough it kinda worked, it
didn't really work readline-ish or feel anything like a terminal. I
just suppose there is so much more to a proper telnet/terminal
implementation than a Raw Stream pushed through a pty and I was just
kinda of naive to try to make it work like that.
On Wed, Oct 12, 2011 at 11:01 PM, Axel Kittenberger <axk...@gmail.com> wrote:
> Hello List. I'm trying to get readline-like functionality to work on
> TCP Sockets. The Readline module works great with process.stdin/out.
> It also understands the commands given via a TCP socket, but there
> isn't any readline functionality on TCP: no tab completion, no arrow
> history etc. I looked into the source of node.js' lib/readline.js, and
> its obvious it doesn't do it, because the TCP connection fails on
> To solve this, shouldn't it be possible to open a pseudo tty and
> In src/node_stdio.cc there seems to be a:
> Kind regards,
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.