bug-ncurses
[Top][All Lists]
Advanced

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

Re: (no subject)


From: Dan Nelson
Subject: Re: (no subject)
Date: Sat, 9 Nov 2002 20:47:40 -0600
User-agent: Mutt/1.5.1i

In the last episode (Nov 10), Reddy Rohan said:
> I am using ncurses to write a simple editor cum emulator application
> 
> everything is fine while using multiple ncurses screen-terminals(1)
> on single gnome-terminal I am also able to display different ncurses
> screen-terminals(1) on different already created gnome-terminals (by
> opening device files /dev/pts/n)(2) in case (2) asll worked fine i
> could read and write to all terminals just by using set_term(SCREEN*)
> 
> except that i am not able to do the following:
>
> I want to use more than one gnome-terninal for display BUT i want to
> CREATE the gnome terminal from within the program by calling a
> function AND also get a file pointer or the newly creatred device
> file's path and name. so that i can use the pointer to display my
> ncurses screen.(3)

Take a look at the -S flag to xterm, which allows you to point xterm at
a pty and file descriptor to use as input/output instead of it forking
a shell.  You can create the pty with openpty().

I don't know if gnome-terminal has an equivalent flag.

-- 
        Dan Nelson
        address@hidden




reply via email to

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