LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   C Shell issue (https://www.linuxquestions.org/questions/linux-newbie-8/c-shell-issue-609492/)

ursravi 12-27-2007 04:58 PM

C Shell issue
 


Hello
I have a c shell quesion. I am currently using HP-UX. In a c shell if I type the letter @ the whole line disappears. how do I fix that and why does that happen?

Thanks
Ravi

harry edwards 12-28-2007 02:47 PM

It sounds like your terminal settings are mis-configured. What output do you get from:

Code:

stty -a

ursravi 12-28-2007 11:18 PM

Quote:

Originally Posted by harry edwards (Post 3004124)
It sounds like your terminal settings are mis-configured. What output do you get from:

Code:

stty -a

[2] % stty -a
speed 9600 baud; line = 0;
rows = 40; columns = 120
min = 1; time = 1;
intr = DEL; quit = ^\; erase = ^H; kill = @
eof = ^D; eol = ^@; eol2 <undef>; swtch <undef>
stop = ^S; start = ^Q; susp <undef>; dsusp <undef>
werase <undef>; lnext <undef>
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

I see that kill = @
so how do i get rid of that
Thanks for your time

Ravi

masonm 12-28-2007 11:21 PM

Looks at the 5th line. @ is assigned as the kill interrupt.

makyo 12-29-2007 06:01 AM

Hi.

Most often I see control-U used as the "kill" character. This is the "line kill" behavior, not the "job kill" behavior that is more often used, as with "kill %1", or the similar process signal kill.

To reset it, use the literal 4 characters, '^u', then look at the assignment with stty -a again:
Code:

stty kill '^u'
stty -a

I am not certain that this will work in an xterm session, but give it a try and let us know. (In my xterm, stty reported the change, but it did not actually change the behavior. Perhaps someone will stop by with the usually-simple explanation :) . It will likely be some arcane command or setting in an X configuration file.)

I have not seen this character assignment to kill in a long time; it once was the default with (real) TTYs.

Best wishes ... cheers, makyo


All times are GMT -5. The time now is 09:35 AM.