From: Mike Gran <address@hidden>
To: Hei Chan <address@hidden>; "address@hidden" <address@hidden>
Sent: Friday, February 1, 2013 10:32 PM
Subject: Re: Launching a new Terminal?
> From: Hei Chan <
address@hidden>
>So, two questions:
>- Can ncurses launch multiple terminals and manipulate them?
>- If yes, any tutorial?
I once wrote a program that launched an xterm and then
started ncurses in it. It used newterm.
The whole process is a bit complicated. I had to
create a pty with openpty(), find that pty's stdio and stdin, launch
an xterm that uses that pty, and then run newterm on that
xterm.
You can see some of that code in this program
http://git.savannah.gnu.org/cgit/guile-ncurses.git/tree/tools/shell.c
Hope this helps,
Mike Gran