Operating System - HP-UX
1833780 Members
2637 Online
110063 Solutions
New Discussion

hpterm -xrm "*overrideRedirect: true"

 
R.Mielen
Advisor

hpterm -xrm "*overrideRedirect: true"

After using:
hpterm -xrm "*overrideRedirect: true"
There are some problems when entering a option
in this window. When an other window is behind
this window i'm unable to enter an option.
Maybe because i can't select this window ??
because op the option givin to hpterm.

Is there a way or a workaround so i can enter
an option in this window?

ThX in advance
I haven't failed, I only found 10,000 way's that won't work
12 REPLIES 12
R.Mielen
Advisor

Re: hpterm -xrm "*overrideRedirect: true"

Maybe it's possible to make 3 button's instead
of the 2 default ok & cancel button's.

But how can i achieve that?
I haven't failed, I only found 10,000 way's that won't work
Bill McNAMARA_1
Honored Contributor

Re: hpterm -xrm "*overrideRedirect: true"

sounds like a bug.

Are you using reflectionX or a native X session.

I'd recommend getting latest Xserver patches.

I'd doubt it'd be the app, especially if it works without the option.

pereal - /opt/mx/bin # swlist -l product | grep Xserver
PHSS_20141 1.0 Xserver cumulative patch
PHSS_23546 1.0 Xserver cumulative patch
Xserver B.11.00 HP-UX X Server

(PS not the latest on my system!)

Later,
Bill
It works for me (tm)
R.Mielen
Advisor

Re: hpterm -xrm "*overrideRedirect: true"

FYI

PHSS_20141 1.0 Xserver cumulative patch
Xserver B.11.00 HP-UX X Server



I haven't failed, I only found 10,000 way's that won't work
Alex Glennie
Honored Contributor

Re: hpterm -xrm "*overrideRedirect: true"

fyi latest Xserver patches ->

11.00 = PHSS_25290
11.11 = PHSS_25263

it maybe worthwhile also adding the Xclients patches too ?

PHSS_25200 or PHSS_26498

Though I'm not totally clear what the current problem is ...

what do you mean by enter an option ? does it work if a window is not behind the hpterm window (hint - hpterm takes a -geometry resource) you could perhaps use it to test ?

using hpterm -xrm ... on my system produces an hpterm top left which I can only seem to input unix commands from using my mouse and cut & pasting them into it .... I suspect this is what's intended, but Rick is probably best placed to confirm this
R.Mielen
Advisor

Re: hpterm -xrm "*overrideRedirect: true"

Hello people,

Wat i mean with enter an option is:
a \c in my script (for the -e option)
Witch allows a user to enter a specific option
like "r" or "q" or "w" with is put in a case
construction for the action regarding the option (sorry my english is not up to date)

but with the hpterm -xrm "*overrideRedirect: true" option i can't always enter a option
in the terminal. Only when there isn't a terminal behind it (and there is always a terminal behind at the user end)

I wrote a simple script for testing like:

hpterm -xrm "*overrideRedirect: true" -d $TERM
-map -geometry 47x13-5+5 -bg "Blue" -fg "Yellow" -tite "Reset IAG" -e $SCRIPT

$SCRIPT:
#!/bin/ksh
echo "Enter option: \c"
line -t 300 | read TIME
echo "Option entered or timeout"

But how can i enter a option here when there are about 4 or 5 other terminals behind it?

Ps i don't think it's a bug but i can try installing the patch.

ThX in advance
I haven't failed, I only found 10,000 way's that won't work
R.Mielen
Advisor

Re: hpterm -xrm "*overrideRedirect: true"

ps

I does work when there is no terminal behind.
But on the user end theres always a terminal behind, sometimes more.
I haven't failed, I only found 10,000 way's that won't work
Steve Steel
Honored Contributor

Re: hpterm -xrm "*overrideRedirect: true"

Hi

This is known to have focussing problems.

Possibly an error but I think the override also kills the focussing.

Why do you need such a strange hpterm.


Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
R.Mielen
Advisor

Re: hpterm -xrm "*overrideRedirect: true"

This is a big action for our customer KPN.
It conserns about all the regions in holland where the communication processes have to be stopped once a week, workaround for a bug ;(
For about 90 systems.

This script has to be uber-idiot proof.
No alt-f4 no ctrl-d no close and it has to be
always on top, it has to remap itself on output
and startover again when someone uses a wrong option. The only way i can accomplish this ( according to my own knowlidge) is by using

hpterm -xrm "*overrideRedirect: true"

Maybe instead of using options than maybe i can
use the button aproach only i need 3 buttons instead of the default ok & cancel of hpterm.

There must be a way.

Kind regards,

R.Mielen
I haven't failed, I only found 10,000 way's that won't work
R.Mielen
Advisor

Re: hpterm -xrm "*overrideRedirect: true"

Can anyone help me (links/info)
any info = welcom thX
I haven't failed, I only found 10,000 way's that won't work
Steve Steel
Honored Contributor

Re: hpterm -xrm "*overrideRedirect: true"

Hi


Look at

http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x7490107d277ad611abdb0090277a778c,00.html

do what it says

Then when you start up your window it suffices
to go over the root window with the mouse to get the focus in the top window.


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

Re: hpterm -xrm "*overrideRedirect: true"

Thx for the info

But this does not solve my prob. ;(
I do not wan't a user to raise the window by
mouse moving. Not everyone has the same style
mngr settings so some have auto raise by move
& some by click.

Maybe there is another way but than i
need to raise my window to the top when it's
not iconified.

The option -map (HPterm) does raise the window
to the top when it is iconified. But when it is
not iconified it does not raise to the top?
Maybe this is doable..atleast i hope!

regards,

I haven't failed, I only found 10,000 way's that won't work
R.Mielen
Advisor

Re: hpterm -xrm "*overrideRedirect: true"

Sorry Alex,

Ment to give you a couple of
points more (",)

(don't know where that 1 pnt came from)

kind regards,
I haven't failed, I only found 10,000 way's that won't work