Operating System - HP-UX
1752808 Members
5680 Online
108789 Solutions
New Discussion юеВ

Interrupt, kill and quit key assignments not working

 
SOLVED
Go to solution
Scott G. Gallup
Advisor

Interrupt, kill and quit key assignments not working

I have a rp4440 server running HP-UX 11.23 64bit OS. I connect to the server with a Accuterm terminal emulator software. The system does not recognize interrupt (^U), quit (^\) or kill (^C). Does not matter if I map the control characters to keys or just type the control character - the system does not respond to the key. The erase control key (^H) does work. I have a rp4440 running HP-UX 11.11 64 bit OS which does not have this issue. All the control keys work as they should.
6 REPLIES 6
James R. Ferguson
Acclaimed Contributor

Re: Interrupt, kill and quit key assignments not working

Hi Scott:

# stty -a

...will show you what your system thinks the key sequences will do.

Regards!

...JRF...
Tim Nelson
Honored Contributor

Re: Interrupt, kill and quit key assignments not working

Please post the output of stty command
Should look something like the below.

# stty
speed 38400 baud; evenp hupcl
intr = ^C; erase = ^H; kill = ^U;
eol2 = ^@;
susp = ^@; dsusp = ^@;
-inpck -istrip icrnl -ixany ixoff onlcr
-iexten echo echoe echok



Scott G. Gallup
Advisor

Re: Interrupt, kill and quit key assignments not working

I looked at the stty -a output from both machines and they are essentially the same. On the HP-UX 11.23 box min = 4 and time = 0 on the HP-UX 11.11 box min = 1 and time = 1. I have no idea if that is significant. I will include output from both machines.

HP-UX 11.23
speed 9600 baud; line = 0;
rows = 0; columns = 0
min = 4; time = 0;
intr = ^U; quit = ^\; erase = ^H; kill = ^C
eof = ^D; eol = ^@; eol2 ; swtch
stop = ^S; start = ^Q; susp ; dsusp
werase ; lnext
parenb -parodd cs7 -cstopb hupcl -cread -clocal -loblk -crts
-ignbrk brkint ignpar -parmrk -inpck istrip -inlcr -igncr icrnl -iuclc
ixon -ixany -ixoff -imaxbel -rtsxoff -ctsxon -ienqak
isig icanon -iexten -xcase echo echoe echok -echonl -noflsh
-echoctl -echoprt -echoke -flusho -pendin
opost -olcuc onlcr -ocrnl -onocr -onlret -ofill -ofdel -tostop tab3

HP-UX 11.11
speed 9600 baud; line = 0;
rows = 0; columns = 0
min = 1; time = 1;
intr = ^U; quit = ^\; erase = ^H; kill = ^C
eof = ^D; eol = ^@; eol2 ; swtch
stop = ^S; start = ^Q; susp ; dsusp
werase ; lnext
parenb -parodd cs7 -cstopb hupcl -cread -clocal -loblk -crts
-ignbrk brkint ignpar -parmrk -inpck istrip -inlcr -igncr icrnl -iuclc
ixon -ixany -ixoff -imaxbel -rtsxoff -ctsxon -ienqak
isig icanon -iexten -xcase echo echoe echok -echonl -noflsh
-echoctl -echoprt -echoke -flusho -pendin
opost -olcuc onlcr -ocrnl -onocr -onlret -ofill -ofdel -tostop tab3

Thanks in advance for any thoughts, ideas, etc. I will assign points to all replies in a little bit.
OldSchool
Honored Contributor
Solution

Re: Interrupt, kill and quit key assignments not working

according to "man 7 termio" the
time and min settings interact, and impact keyboard buffering (among other things).

as a test, login and do

stty min 1
stty time 1

and see if the keys behave properly. If they do, add the above to the appropriate login files....(.profile, .bashrc or whatever)
Dennis Handly
Acclaimed Contributor

Re: Interrupt, kill and quit key assignments not working

>interrupt (^U), quit (^\) or kill (^C).

Typically ^C is interrupt and ^U is kill.
And ^D is susp.
Scott G. Gallup
Advisor

Re: Interrupt, kill and quit key assignments not working

Hi OldSchool,

I tried the test you suggested but was not successful. I am a bit mystified.