Operating System - HP-UX
1832872 Members
2536 Online
110048 Solutions
New Discussion

Block dtterm Window -> New menu option

 
SOLVED
Go to solution
Charles Kennedy
New Member

Block dtterm Window -> New menu option

Greetings!

I'm using mwm under HP-UX 10.20. We converted several utility scripts to run in dtterm windows. However, users are able to open a new dtterm window (with command line interface) via the Window -> New menu option. I need to block all command line access, hence the need to disable this menu option.

Ideally, I'd just remove that one menu entry, but can't see how that's done.

I have figured out how to disable the popup menu, and how to hide the menu bar. But you can toggle the menu bar back on via the window menu button. So I removed the window menu button from the title bar, and redefined the shortcut keys (meta-Space and Shift-Esc) so they beep instead of opening the menu.

However, you can still open the window menu by left clicking on the icon! I have defined button 1 down, up, and click all to perform the beep. Now I get what sounds like a triple beep, but the menu is still displayed!

Note that we converted to dtterm because xterm didn't support color, and hpterm had some had some incompatibilities with some xterm escape sequences.
2 REPLIES 2
Alex Glennie
Honored Contributor
Solution

Re: Block dtterm Window -> New menu option

Try :

dtterm -xrm "*Window*sensitive: False"

if this is acceptable set as a resource : see man dtterm for details etc.
Charles Kennedy
New Member

Re: Block dtterm Window -> New menu option

Thanks! Excellent solution.

Only one minor problem. The man page for dtterm doesn't say anything about the "sensitive" resource--nor could I find it in any obviously related man page. (I tried the man pages for dtterm, dtwm, dtwmrc, mwm, and even X.) For future reference, where can I find the documentation on this resource?