I've also come across an aspect of this problem, and have submitted it as a 
bug.  It has been wrongly closed, so I may need to resubmit it.

https://github.com/joyent/node/issues/4239

Regards,

Chris.

On Thursday, 13 October 2011 08:48:32 UTC+1, Axel Kittenberger wrote:
>
> 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.
>
> - Axel
>
> On Wed, Oct 12, 2011 at 11:01 PM, Axel Kittenberger 
> <[email protected]<javascript:>> 
> 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
> > 'isatty'.
> >
> > To solve this, shouldn't it be possible to open a pseudo tty and
> > stream the data through it, so it becomes a tty? I'm just missing any
> > call for this. There is a tty.open() but it must have a process to
> > spawn, it cannot use the other side of the connection to be held by
> > the node.js server again, like doing the shell itself with the
> > readline library.
> >
> > In src/node_stdio.cc there seems to be a:
> >  NODE_SET_METHOD(target, "openpty", OpenPTY);
> > But it isn't available anywhere to the server script, is it?
> >
> > Kind regards,
> > Axel
>
>

-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

Reply via email to