bug-ncurses
[Top][All Lists]
Advanced

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

Re: Launching a new Terminal?


From: Hei Chan
Subject: Re: Launching a new Terminal?
Date: Sat, 2 Feb 2013 01:37:10 -0800 (PST)

Hi Mike,

Thanks for sharing your code.

I see how your code opens a pseudo terminal and links with xterm.

I see that newterm() returns SCREEN*.  How can I tell ncurses which SCREEN* to use if I have multiple.

Thanks in advance.


Cheers,
Hei


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



reply via email to

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