Operating System - HP-UX
1821985 Members
3367 Online
109638 Solutions
New Discussion юеВ

tweaking xterm on-the-fly

 
Marc Ahrendt
Super Advisor

tweaking xterm on-the-fly

is there a way to execute a command within a xterm that will make the xterm itself convert into an icon?

basically i want a user to run a script in the xterm that will start another Xwindow and also make the original xterm convert into an icon ...as so to cleanup to CDE environment without losing this xterm (needed still)


hola
4 REPLIES 4
Mark Ellzey
Valued Contributor

Re: tweaking xterm on-the-fly

Marc,

Try the '-iconic' switch when starting the new xterm. This tells xterm to start as an icon, rather than as a window.

See: man xterm for more information.

Regards,
Mark
Pete Randall
Outstanding Contributor

Re: tweaking xterm on-the-fly

The -iconic option will start the new xwindow as an icon. I don't think there is a way to turn an existing window into an icon from the command line.


Pete

Pete
Marc Ahrendt
Super Advisor

Re: tweaking xterm on-the-fly

thx mark and pete for the comments, but i was aware of the "iconic" xterm option ...which is not what i am looking for

pete, you mat be correct in that from within an existing xterm session is there no way to convert the window to an icon ...but i am still hoping someone knows how to tweak xterm characteristics after the xterm is executed (seems you can by using your mouse and the Ctrl key so i am thinking there is some x-commands out there that can do the same)
hola
Gregory Fruth
Esteemed Contributor

Re: tweaking xterm on-the-fly

I believe the iconic/non-iconic property of
a window is actually controlled by the
window manager, which in your case is dtwm.
You will need to figure out how to get dtwm
to iconify or de-iconify the window. Perhaps
you can use dtaction or ttsnoop to send such
a message to dtwm. In a dtwmrc file the
function f.minimize iconifies a window
(see "man dtwmrc"). Perhaps there's a way
to call f.minimize programatically.