If the application happens to be running in a xterm(1) you can use escape sequences. Grab the script esc(1) from http://home.comcast.net/~urbanjost/CLONE/UNIX_SCRIPTS/scripts_xterm/index.html

It lets you resize and reposition the xterm(1) window as well as select occupancy in ctwm(1) and raise and lower
the window with escape sequences. Just works for xterm(1), though.
----- Original Message ----- From: "Frank Steiner" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Tuesday, April 29, 2008 6:04 AM
Subject: [ctwm] Raising a window from an external program


Hi,

I've been using ctwm since 1993 and I'm very glad to see that there is
still a page and even a mailing list for it :-)

I was trying to use wmctrl (http://www.sweb.cz/tripie/utils/wmctrl/)
to focus and raise a specific window from the command line. But according
to the wmctrl page, ctwm doesn't support EWMH, so it doesn't work.

Is there any chance that EWMH will be implemented in ctwm? I'm not sure
how actively ctwm maintained and developed...

Or is anyone aware of some other way to raise and focus a window with a command from outside ctwm, using the id one got from xdpyinfo? I need that to use the external-edit program (http://shreevatsa.wordpress.com/2006/12/29/editing-textareas-in-an-external-editor/)
with ctwm.


cu,
Frank
--
Dipl.-Inform. Frank Steiner   Web:  http://www.bio.ifi.lmu.de/~steiner/
Lehrstuhl f. Bioinformatik    Mail: http://www.bio.ifi.lmu.de/~steiner/m/
LMU, Amalienstr. 17           Phone: +49 89 2180-4049
80333 Muenchen, Germany       Fax:   +49 89 2180-99-4049
* Rekursion kann man erst verstehen, wenn man Rekursion verstanden hat. *


Reply via email to