1834156 Members
2793 Online
110064 Solutions
New Discussion

Re: xterm question

 
Vasudevan MV
Frequent Advisor

xterm question

Hi,

I am using xterm in my script, the command is "xterm -T Title -geometry 90x30+0+0 -e start.sh".

Ques:
How to control the xterm window resizing & closing xterm using Alt+F4 or Click Close in the Window menu? i.e my script should not allow the user to resize & close the xterm window, only application should close that.

Thanks
Vasu
1 REPLY 1
Steve Steel
Honored Contributor

Re: xterm question

Hi


here is an example for HPterm. Replace HPterm with Xterm or other name


Create a file .Xdefaults in the users home directory and add the
following line.
Dtwm*HPterm*clientFunctions: -close
The window manager control menu is a builtin.
It can be changed in the following way.
Create a readable file .Xdefaults in the users home directory
and add the following line.
Dtwm*HPterm*clientFunctions: -close
This will suppress it.
1: does HPterm in the line:
> Dtwm*HPterm*clientFunctions: -close
have to be replaced by the application name ?, if it concerns an
application window ? YES
2: Where do you got this information ?. I only have the getting started
CDE guide from the internet and a few articles about the CDE structure
and that's all. Where can I find more detailed information, that contain
commands like the ones above.
=======================================================================
clientFunctions (class ClientFunctions)
This resource is used to indicate which dtwm functions are applicable
(or not applicable) to client window. The value for the resource is a
list of functions. If the first function in the list a minus sign in front
of it, then dtwm starts with all functions and subtracts from that set. If
first function in the list has a plus sign in front
of it, then dtwm starts with no functions and builds
up a list. Each function in the list must be
preceded by the appropriate plus or minus sign
separated from the next function by a space.
An application can also specify which functions dtwm
should apply to its windows. If it does so, dtwm
applies only those functions indicated by both
application and the clientFunctions resource.
Otherwise, dtwm applies the functions indicated
the clientFunctions resource. For more information
see the description of XmNmwmFunctions on the
VendorShell(3) reference page.
The following table lists the functions available for this resource:
___________________________________________
Name Description
___________________________________________
all Include all functions (default
value).
none No functions.
resize f.resize+.
move f.move+.
minimize f.minimize+.
maximize f.maximize+.
close f.kill+.
+See dtwmrc(4).
~

steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)