[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ncurses on pipes

From: Bob Rossi
Subject: Re: ncurses on pipes
Date: Wed, 13 Jun 2007 09:22:09 -0400
User-agent: Mutt/1.5.13 (2006-08-11)

On Wed, Jun 13, 2007 at 02:47:53PM +0200, Robert Lemmen wrote:
> hi folks,
> i have searched the web and the archive and it looks like this problems
> pops up every now and then, but without any real answer. i want to write
> a network server that allows clients to connect via telnet and be
> confronted with a curses user interface. 

Hi Robert,

I'm wondering if there is a different way to solve this problem. This isn't
an attempt to change your program, but perhaps a different way to look
at the problem. If someone is using a telnet client, they already have a 
working pty on there end.

On the server side, you also have a pty (stdin,stdout). If you fork/exec
a child process (which could be the ncurses application) to deal with
the request, wouldn't that just do what you want without involving the
pipe or socket?

I've seen this done before several times.  For instance, the
sourceforge.net compile farm does this. Also, take a look at
ascii star wars, 'telnet towel.blinkenlights.nl'. I believe that's how
they must have solved this problem. Is that what you are looking to 

Best of luck,
Bob Rossi

reply via email to

[Prev in Thread] Current Thread [Next in Thread]