Article Title: Turn off the harsh alarm sound in Linux. Linux is a technology channel of the IT lab in China. Including desktop applications, Linux system management, kernel research, embedded systems, open source, and other basic categories. After each linux installation, run commands on the terminal, when an error occurs or in other situations, a "Didi" message is sent.
In the X Window System, you can use the xset command. The command is as follows: xset B off (enter xset and press enter to obtain the xset Command Option)
On the console terminal, how does one close the bell?
In the past, the system rang because our application wanted the terminal to issue a 0x7 character. After the terminal receives this character, it will ring and the solution to the problem has appeared. Right, we will not allow our program to send this character to the terminal.
For example, you can run the "setopt nobeep nohistbeep nolistbeep" command for zsh"
Or tell our application to send other characters to the terminal, such as null characters. This involves two files, terminfo or termindo. I have not tried to solve this problem.
Another way is to remove the driver module of the PC horn. The command used is rmmod pcspkr.
In addition, the program CT, script, or screen is used to run our program on a virtual terminal. They will interpret the character 0x7 as other characters. Gnu screen is the simplest method ~ /. Add the following two lines to the screenrc file:
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.