[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

setting interrupt character (was Q1 of Re: general questions (not urgent))



On Fri, 2005-04-15 at 21:44 +0200, Mohammad Halawah wrote:
> Hi all,
> 
> I have some questions which are independent
> (Sarge 2.6.10)
> 1)normally the console should terminate the running process if (ctrl+C) both 
> pressed but in my machine ,it is not so I search for the process (e.g. ping 
> 127.0.0.1/ OR e.g.  find  /etc  -name *) and kill it. If some one can lead me 
> to activate that feachure
> 

I believe you can set this in the terminal line settings, so read up on
stty (eg `man stty`). For ref, I have:

$ stty -a
speed 38400 baud; rows 24; columns 80; line = 0;
intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = M-^?; eol2
= M-^?;
start = ^Q; stop = ^S; susp = ^Z; rprnt = ^R; werase = ^W; lnext = ^V;
flush = ^O; min = 1; time = 0;
-parenb -parodd cs8 hupcl -cstopb cread -clocal -crtscts
-ignbrk brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl ixon
-ixoff
-iuclc ixany imaxbel
opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0
vt0 ff0
isig icanon iexten echo echoe echok -echonl -noflsh -xcase -tostop
-echoprt
echoctl echoke



I presume you mean you search/kill it in another terminal, if not then I
must assume you're running the process in the background in which case
the interrupt character won't do anything to that!

M



Reply to: