Disable beep / system bell in MSYS
Asked Answered
M

0

8

In trying to switch from Cygwin to MSYS, I'd really like to have MSYS beep / system bell completely disabled. Sources[1] suggest modifying ~/.inputrc to include

set bell-style none

but this only partially disables the beep—it only affects the shell! So sure, typing backspace on an empty line in bash becomes silent but try scrolling up too far in less. It beeps.

In fact, there are other threads on the MinGW list asking how to disable beeps in other software like Octave[2]. But none of them address a way to disable the beep on a system level affecting all MSYS utilities.


I'm not too familiar with the details of the stack (terminal emulator, etc.) from bash to the console window and how it differs between Cygwin and MSYS. I'm using the standard Windows console (rather than a terminal emulator like MinTTY) in both environments, and I've observed that when the beep occurs in Cygwin (on Windows 7), it uses the system's “ding” sound. This is consistent between all Cygwin utilities so (I'm guessing) something must be fundamentally different in the Cygwin stack causing all system bells to behave this way. Where this difference lies between the Cygwin and MSYS stacks, I do not know, and am hoping to get clarification.

Mores answered 28/1, 2015 at 9:48 Comment(1)
It's also a good idea to include the system-wide inputrc file in ~/.inputrc with $include /etc/inputrc.default on the first line.Kelter

© 2022 - 2024 — McMap. All rights reserved.