Re: Controlling an Xterm from a C++ Program
From: Chuck Dillon (cdillon_at_nimblegen.com)
Date: 09/30/03
- Next message: mike.9: "Re: execve : a value missing?"
- Previous message: Kenny McCormack: "Re: exit()"
- In reply to: Dennis: "Controlling an Xterm from a C++ Program"
- Next in thread: Andrew Gabriel: "Re: Controlling an Xterm from a C++ Program"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 30 Sep 2003 08:54:21 -0500
Dennis wrote:
> Hi,
>
> As the subject states, is it possible to control an xterm running on a
> linux/unix desktop from another standalone program? For example, suppose I
> have program running inside an xterm on the desktop. From another
> piece of software I would like to be able to control when that xterm
> pops up or is minimized (iconified). I would guess that I would need to capture the
> PID of the xterm at startup, and then maybe send a signal telling it
> to popup/popdown? Is something like this possible? Or maybe someone
> has a another suggestion.
>
> Thanks in advance for any guidance.
>
> Dennis
Of course it depends on what all you need to control. But two
approaches are...
1) Given the pty that the xterm is using another program can direct
escapce sequences to it.
B) Given the X window id of the xterm another program can initiate
iconify and open state changes via X11 calls.
But you have to devise a way to get the pty or window id of the xterm.
-- ced
-- Chuck Dillon Senior Software Engineer NimbleGen Systems Inc.
- Next message: mike.9: "Re: execve : a value missing?"
- Previous message: Kenny McCormack: "Re: exit()"
- In reply to: Dennis: "Controlling an Xterm from a C++ Program"
- Next in thread: Andrew Gabriel: "Re: Controlling an Xterm from a C++ Program"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|