1844831 Members
2197 Online
110233 Solutions
New Discussion

changing the kill key

 
Robert O'Brien
Occasional Contributor

changing the kill key

Hi, a very basic question but it's something that hasn't affected me for over 10 years.
I'm using HP-UX 10.20 and 11.00 boxes and I need to use "@" in a command. Historically this is the KILL key and I've various things to reset the kill key
stty kill ^X
using ^ and X separately and ^X (one char)
tset -k^X
And I've also tried export TERM=vt100 My login terminal is xterm
but still no "@" sign

Any thoughts?
thanks in advance
-robert-
ask a question and look stupid for 5 minutes. Don't and remain stupid for life.
6 REPLIES 6
Carlos Fernandez Riera
Honored Contributor

Re: changing the kill key


do:

stty -a

Look up @ on the list and change the correct parameter with stty.

stty intr ^C ??????


unsupported
Carlos Fernandez Riera
Honored Contributor

Re: changing the kill key


while you correct the problem you are enable to write

sqlplus user/user \@sqlfile.sql

Regards.
unsupported
James R. Ferguson
Acclaimed Contributor

Re: changing the kill key

Hi Robert:

'stty -a' will show you your currenty terminal settings.

Beware of characters like "@", #, /, !, _, backspace, ^U, ^D, or & as part of your login name or arguments thereto. 'getty' will interpret these as control protocol signals (see 'man getty').

...JRF...
Robert O'Brien
Occasional Contributor

Re: changing the kill key

thanks for quick replies. Did run stty -a as suggested and it appears that "kill" field is getting set to whatever I specify but every time I press "@" key, command line is killed.
My username only contains letters and as far as I can tell, getty doesn't try anything odd either.
-robert-

$ stty -a
speed 9600 baud; line = 0;
rows = 48; columns = 80
min = 1; time = 0;
intr = ^C; quit = ^\; erase = DEL; kill = ^B
eof = ^D; eol = ^@; eol2 ; swtch
stop = ^S; start = ^Q; susp ; dsusp
werase ; lnext
-parenb -parodd cs8 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
$
$ echo $TERM
vt100
ask a question and look stupid for 5 minutes. Don't and remain stupid for life.
Carlos Fernandez Riera
Honored Contributor

Re: changing the kill key

Thats what i said.

If i recall well a stty eol '' will define eol as undef. Every way seee man stty.


Regards.
unsupported
Carlos Fernandez Riera
Honored Contributor

Re: changing the kill key

sorry: two single quote.
unsupported