如何在 cygwin 中关闭蜂鸣斜线铃声?
系统蜂鸣声/响铃经常发生(即,当我输入几个字母,然后在有几个选项时输入 tab 来自动完成)。
我怎样才能关闭它?
我用谷歌搜索并尝试:
set bell-style none (the command went through but nothing changed)
谢谢
setterm -blength 0 (got a bash command not found)
!
The system beep/bell happens frequently (ie, when I type a few letters then type tab to autocomplete when there are a few options).
How can I turn this off?
I googled it and tried:
set bell-style none (the command went through but nothing changed)
and
setterm -blength 0 (got a bash command not found)
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(7)
将
set bell-style none
添加到主目录中的.inputrc
中。您需要启动一个新的 shell 才能生效;这可能就是你的测试不起作用的原因。Add
set bell-style none
to.inputrc
in your home directory. You need to start a new shell for this to take effect; that may be why your test didn't work.默认终端
mintty
具有控制终端响铃的内置选项。注意:在这里您还可以启用或禁用可见响铃(终端闪烁)并突出显示响铃上的任务栏图标。
The default terminal
mintty
has built-in options to control the terminal bell.Note: Here you can also enable or disable the visible bell (terminal flashing) and to highlight the taskbar icon on a bell ring.
剪断扬声器的电线。 :-)
Cut the wire to your speaker. :-)
这里似乎没有提到的另一种解决方案是:
Options...
:终端
选项卡下,选择“无蜂鸣声”:这应该立即生效,而无需重新启动 Cygwin。
An alternative solution that doesn't seem to be mentioned here is:
Options...
:Terminal
tab, choose "no beep":This should take effect immediately without having to restart Cygwin.
当我捕捉特定文件时,我经历了一系列蜂鸣声。上述提示并没有消除警钟。就我而言,蜂鸣声是由于已复制/粘贴到文件中的要点引起的。用破折号代替子弹就停止了蜂鸣声。
I experienced a series of beeps when I would cat a particular file. The above tips did not silence the bell. In my case, the beeps were due to bullet points that had been copy/pasted into the file. Replacing the bullets with dashes stopped the beeping.
使用薄荷味。与普通控制台相比有许多其他优点,其中默认情况下铃声是关闭的。
Use mintty. Among many other advantages over the usual console, the bell is off by default.
'.inputrc 的路径:
Path to '.inputrc: