- 论坛徽章:
- 0
|
bash环境中Ctrl-C失效,导致无法中止一些命令,很麻烦,我的stty设置如下:
#2 disc;speed 9600 baud; 25 rows; 80 columns
erase = ^?; werase = ^W; kill = ^U; intr = ^C; quit = ^\; susp = ^Z
dsusp = ^Y; eof = ^D; eol = <undef>;; eol2 = <undef>;; stop = ^S
start = ^Q; lnext = ^V; discard = ^O; reprint = ^R; status = <undef>;
time = 0; min = 1
-parenb -parodd cs8 -cstopb hupcl cread -clocal -crtscts
-ignbrk brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl -iuclc
ixon -ixany -ixoff imaxbel
isig icanon -xcase echo echoe -echok -echonl -noflsh -mdmbuf -nohang
-tostop echoctl -echoprt echoke -altwerase iexten -nokerninfo
opost -olcuc onlcr -ocrnl -onocr -onlret -ofill -ofdel tabs -onoeot
好像没有错啊?
如果切换到别的shell,比如csh,就可以了,我的bash是3.00, OS是OSF1 V5.1 |
|