1829103 Members
2195 Online
109986 Solutions
New Discussion

ctrl-shift-break?

 
SOLVED
Go to solution
Keith Bourdon
Occasional Contributor

ctrl-shift-break?

Hello all,

I have a simple question. How do I disable this built-in key sequence in HP-UX 10.20?

I read another thread where someone mentioned changing the X0pointerkeys file, but all the entries in this file are commented out. Does changing the reset key sequence in this file override the default Xserver reset?

Any help would be appreciated.

Thanks,

Keith.
6 REPLIES 6
A. Clay Stephenson
Acclaimed Contributor

Re: ctrl-shift-break?

Typically Ctrl-Shift-Break generates a SIGQUIT and that is what is important to UNIX processes including the Xserver. Because changing the controlling terminals attributes affects all the controlled processes doing a stty should "fix" you.

Do a stty -a and note the value that "quit" is assigned. stty quit "^-" will set it to undefined so that no signal should be generated.
If it ain't broke, I can fix that.
A. Clay Stephenson
Acclaimed Contributor

Re: ctrl-shift-break?

I should add that "^-" is "^" rather than "^". Depending upon your browser's font that might not be obvious. Man stty for details.
If it ain't broke, I can fix that.
Keith Bourdon
Occasional Contributor

Re: ctrl-shift-break?

Yeah, I tried this and it doesn't seem to work. Thanks anyway...

I've found a hack to solving the problem.

I've modified the X0pointerkeys file to use as one of it's modifiers the Alt_R keysym. Then using xmodmap, I remove the Alt_R modifier. It's a real pain.

Anyone with any better ideas?
Kent Ostby
Honored Contributor

Re: ctrl-shift-break?

Here is what I have from an old HP document:

a. A program can issue the call XHPDisableReset. The program can
be run at session startup and must remain running throughout the
life of the session. That is, if the program that issues the
XHPDisableReset terminates, the Xserver attached a shar file which
contains sample code.

b. /etc/X11/X0pointerkeys can be modified to change the key presses
that will terminate the Xserver. The lines of code that need to be
changed are:
-Use the Stop key to reset the X server.
-If left shift, left_extend, and control are held down while the Stop
key is pressed, the X server will be terminated.

This allows you to change which keys terminate the server.
reset stop
reset_mod1 left_shift
reset_mod2 left_extend
reset_mod3 control

If you merely want to change the keys that will terminate the Xserver,
you need only uncomment/modify any of the above lines to use whatever
keys you need.

Best regards,

Kent M. Ostby
"Well, actually, she is a rocket scientist" -- Steve Martin in "Roxanne"
Mike Stroyan
Honored Contributor
Solution

Re: ctrl-shift-break?

You can prevent any key from matching the reset sequence by using an X0pointerkeys line that reads-

reset nosymbol
Keith Bourdon
Occasional Contributor

Re: ctrl-shift-break?

Thanks.

I've been trying to use XHPlib.h (XHPDisableReset), but can't seem to figure out which library it belongs to. This would have been a suitable solution. Thanks.


Tried the reset nosymbol. Worked like a charm. I'm sure I tried that with a modifier and it didn't work, but the reset line alone with nosymbol (I think I used NoSymbol). That's good enough.

Thanks for your help.

KB.