如何在 cygwin 中关闭蜂鸣斜线铃声?

发布于 2024-08-11 06:50:53 字数 281 浏览 2 评论 0原文

系统蜂鸣声/响铃经常发生(即,当我输入几个字母,然后在有几个选项时输入 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(7

污味仙女 2024-08-18 06:50:53

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.

送君千里 2024-08-18 06:50:53

默认终端 mintty 具有控制终端响铃的内置选项。

  1. 右键单击背景,然后单击“选项...”
  2. 选择“终端”部分。
  3. 将“响铃”下拉列表更改为“无”

注意:在这里您还可以启用或禁用可见响铃(终端闪烁)并突出显示响铃上的任务栏图标。

The default terminal mintty has built-in options to control the terminal bell.

  1. Right-click on the background and click "Options..."
  2. Select the "Terminal" section.
  3. Change the "Bell" dropdown to "none"

Note: Here you can also enable or disable the visible bell (terminal flashing) and to highlight the taskbar icon on a bell ring.

温柔少女心 2024-08-18 06:50:53

剪断扬声器的电线。 :-)

Cut the wire to your speaker. :-)

无敌元气妹 2024-08-18 06:50:53

这里似乎没有提到的另一种解决方案是:

  1. 右键单击 Cygwin 窗口的标题并选择 Options...

在此处输入图像描述

  1. 在选项菜单中,在终端选项卡下,选择“无蜂鸣声”:

在此处输入图像描述

这应该立即生效,而无需重新启动 Cygwin。

An alternative solution that doesn't seem to be mentioned here is:

  1. Right click on the header of the Cygwin window and chose Options...:

enter image description here

  1. In the options menu, under the Terminal tab, choose "no beep":

enter image description here

This should take effect immediately without having to restart Cygwin.

帅气尐潴 2024-08-18 06:50:53

当我捕捉特定文件时,我经历了一系列蜂鸣声。上述提示并没有消除警钟。就我而言,蜂鸣声是由于已复制/粘贴到文件中的要点引起的。用破折号代替子弹就停止了蜂鸣声。

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.

星軌x 2024-08-18 06:50:53

使用薄荷味。与普通控制台相比有许多其他优点,其中默认情况下铃声是关闭的。

Use mintty. Among many other advantages over the usual console, the bell is off by default.

刘备忘录 2024-08-18 06:50:53

'.inputrc 的路径:

'C:\cygwin64\home\<username>\.inputrc

Path to '.inputrc:

'C:\cygwin64\home\<username>\.inputrc
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文