怎么去掉命令行模式或者是终端里面,命令输入错误以后PC喇叭发出的刺耳声音?

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
alexyangw
帖子: 11
注册时间: 2007-06-19 16:00

怎么去掉命令行模式或者是终端里面,命令输入错误以后PC喇叭发出的刺耳声音?

#1

帖子 alexyangw » 2007-06-29 13:34

如题,谢谢。
被折磨的不行了,命令输入错误、补全口令时TAB键按多了、删除键按的时间长了都会发出刺耳的声音


盼请赐教
头像
bones7456
帖子: 8495
注册时间: 2006-04-12 20:05
来自: 杭州
联系:

#2

帖子 bones7456 » 2007-06-29 14:15

最简单的办法:拔掉喇叭线。。。
关注我的blog: ε==3
ltkun
帖子: 1340
注册时间: 2006-01-10 19:09

#3

帖子 ltkun » 2007-06-29 14:17

/etc/inputrc
alexyangw
帖子: 11
注册时间: 2007-06-19 16:00

#4

帖子 alexyangw » 2007-06-29 14:19

ltkun 写了:/etc/inputrc
能说的具体点吗?
alexyangw
帖子: 11
注册时间: 2007-06-19 16:00

#5

帖子 alexyangw » 2007-06-29 14:20

bones7456 写了:最简单的办法:拔掉喇叭线。。。
我是笔记本,我已经把声卡禁用了。还是会叫
头像
eexpress
帖子: 58428
注册时间: 2005-08-14 21:55
来自: 长沙

#6

帖子 eexpress » 2007-06-29 14:20

关闭终端响铃。
卸载pc喇叭模块。
● 鸣学
alexyangw
帖子: 11
注册时间: 2007-06-19 16:00

#7

帖子 alexyangw » 2007-06-29 14:26

# /etc/inputrc - global inputrc for libreadline
# See readline(3readline) and `info rluserman' for more information.

# Be 8 bit clean.
set input-meta on
set output-meta on

# To allow the use of 8bit-characters like the german umlauts, comment out
# the line below. However this makes the meta key not work as a meta key,
# which is annoying to those which don't need to type in 8-bit characters.

# set convert-meta off

# try to enable the application keypad when it is called. Some systems
# need this to enable the arrow keys.
# set enable-keypad on

# see /usr/share/doc/bash/inputrc.arrows for other codes of arrow keys

# do not bell on tab-completion
# set bell-style none
# set bell-style visible

# some defaults / modifications for the emacs mode
$if mode=emacs

# allow the use of the Home/End keys
"\e[1~": beginning-of-line
"\e[4~": end-of-line

# allow the use of the Delete/Insert keys
"\e[3~": delete-char
"\e[2~": quoted-insert

# mappings for "page up" and "page down" to step to the beginning/end
# of the history
# "\e[5~": beginning-of-history
# "\e[6~": end-of-history

# alternate mappings for "page up" and "page down" to search the history
# "\e[5~": history-search-backward
# "\e[6~": history-search-forward

# mappings for Ctrl-left-arrow and Ctrl-right-arrow for word moving
"\e[1;5C": forward-word
"\e[1;5D": backward-word
"\e[5C": forward-word
"\e[5D": backward-word
"\e\e[C": forward-word
"\e\e[D": backward-word

$if term=rxvt
"\e[8~": end-of-line
"\eOc": forward-word
"\eOd": backward-word
$endif

# for non RH/Debian xterm, can't hurt for RH/Debian xterm
# "\eOH": beginning-of-line
# "\eOF": end-of-line

# for freebsd console
# "\e[H": beginning-of-line
# "\e[F": end-of-line

$endif
ltkun
帖子: 1340
注册时间: 2006-01-10 19:09

#8

帖子 ltkun » 2007-06-29 14:57

# do not bell on tab-completion
# set bell-style none
# set bell-style visible

随便去掉一个
alexyangw
帖子: 11
注册时间: 2007-06-19 16:00

#9

帖子 alexyangw » 2007-06-29 15:44

ltkun 写了:# do not bell on tab-completion
# set bell-style none
# set bell-style visible

随便去掉一个

去掉了# set bell-style none前面的#号,问题解决。

感谢大家的帮助
alexyangw
帖子: 11
注册时间: 2007-06-19 16:00

#10

帖子 alexyangw » 2007-06-29 16:27

问题没有完全解决,比如在重启机器、文件到了底端继续按下箭头等等时候还是会冷不丁的叫一声
声音很刺耳,影响同事办公,还有没有什么更好的解决办法??
头像
kqueenc
帖子: 630
注册时间: 2007-05-27 20:29

#11

帖子 kqueenc » 2007-06-29 19:52

终端配置里把“系统响铃”关闭不就可以了嘛?
头像
leeaman
帖子: 30702
注册时间: 2007-02-02 18:14
系统: debian sid

#12

帖子 leeaman » 2007-06-29 19:57

kqueenc 写了:终端配置里把“系统响铃”关闭不就可以了嘛?
同意,见ls的ls们那么多高级办法,都不敢说了
醉了星星,醉月亮●●●●●The Long Way To Go(*^_^*)
ltkun
帖子: 1340
注册时间: 2006-01-10 19:09

#13

帖子 ltkun » 2007-06-29 20:01

不是所有的人都是用gnome-terminal的
头像
leeaman
帖子: 30702
注册时间: 2007-02-02 18:14
系统: debian sid

#14

帖子 leeaman » 2007-07-01 12:33

ltkun 写了:不是所有的人都是用gnome-terminal的
唉,又给习惯性思维害了一把,学习
醉了星星,醉月亮●●●●●The Long Way To Go(*^_^*)
头像
BigSnake.NET
帖子: 12522
注册时间: 2006-07-02 11:16
来自: 廣州
联系:

#15

帖子 BigSnake.NET » 2007-07-01 12:35

^_^ ~~~
要理解递归,首先要理解递归。

地球人都知道,理论上,理论跟实际是没有差别的,但实际上,理论跟实际的差别是相当大滴。
回复