Yeah, that is easy, but I would like to be able to run any text-based
program in the ncurses window, even an ncurses program.  Any ideas of how to
do that?

On 1/11/07, Andrew McNabb <[EMAIL PROTECTED]> wrote:

On Thu, Jan 11, 2007 at 12:04:22PM -0700, Daniel Dilts wrote:
> Ok, so far that sounds about right.  I believe I have a book that
details
> how to do that.  However, I still need to figure out how to make the
child
> process use the ncurses window as its output.  I want ncurses in the
child
> process to think that its output window is the size of the window, and
make
> it so that it would (through ncurses render things correctly).
>

I hope that the child process isn't using ncurses.  If it is, it will
have problems, because it will see that standard output is not a
terminal.  This will confuse things.

I assume that the child process is using normal line output.  In this
case, the parent process occasionally reads data from the pipe that's
connected to standard output on the other end.  As it reads data, it can
reformat it and send it on to ncurses.

That's how I'd do it, anyway.

--
Andrew McNabb
http://www.mcnabbs.org/andrew/
PGP Fingerprint: 8A17 B57C 6879 1863 DE55  8012 AB4D 6098 8826 6868


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFFppJOq01gmIgmaGgRAmyBAJ0Wjl9XbUAGjES1yIrxYGB6v4BKmwCfU1mW
atqqCRiIulFg2Zv/THdu43s=
=6Yjj
-----END PGP SIGNATURE-----


--------------------
BYU Unix Users Group
http://uug.byu.edu/

The opinions expressed in this message are the responsibility of their
author.  They are not endorsed by BYU, the BYU CS Department or BYU-UUG.
___________________________________________________________________
List Info: http://uug.byu.edu/cgi-bin/mailman/listinfo/uug-list


--------------------
BYU Unix Users Group http://uug.byu.edu/
The opinions expressed in this message are the responsibility of their
author. They are not endorsed by BYU, the BYU CS Department or BYU-UUG. ___________________________________________________________________
List Info: http://uug.byu.edu/cgi-bin/mailman/listinfo/uug-list

Reply via email to