From: "deckerben" Newsgroups: comp.os.msdos.djgpp References: Subject: Re: redirecting io in ncurses Date: Sun, 23 Jun 2002 14:23:00 +0200 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Lines: 26 Message-ID: <3d15bda6$0$26977$9b622d9e@news.freenet.de> NNTP-Posting-Host: 213.6.64.170 X-Trace: 1024834982 news.freenet.de 26977 213.6.64.170 X-Complaints-To: abuse AT freenet DOT de To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com > I am writing a program which provides a telnet connection. Now I would like > to use ncurses to implement an UI over the telnet connection. How could I > redirect the io of ncurses to my network functions? Is there some kind of > hook in ncurses for this? Is there some way I can use a feature of DJGPP to > do this? > > Regards, > Florian First, I have ported Ncurses to DJGPP successfuly for Python, but I have never tried a sort of 'remote-app-server'. But, I am not sure that a ncurses hook is needed... I think that a network wrapper is the solution, because ncurses library just generates terminal output and the .exe says where the output should go. It's just text, really. I think more important is that the network signal is understood correctly, because ncurses apps crash when signal returns are wrong. The best person to ask is dickey AT invisible-island DOT net . He's a good guy, and is very responsive to technical questions that help move the library forward. Ben