Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
 

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: disabling beep sound when backspacing in console< Next Oldest | Next Newest >
someuser77 Offline





Group: Members
Posts: 9
Joined: April 2006
Posted: Oct. 14 2006,10:34 QUOTE

Hello,
I am using Damn Small Linux 3.01 from the LiveCD and when I delete something I typed in the console (runlevel 2) I get an annoying beeping sound.
It happens when I backspace right to the '~]' symbol.
Lets say I'll remaster DSL, what must i change to disable this beeping sound? I dont want to disable beeping in geneal, only this instance.
Back to top
Profile PM 
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: Oct. 14 2006,13:00 QUOTE

Code Sample
xset b off

In X this command can be done at any time and it should affect all X terminals.
To have it done automatically, put the command in /home/dsl/.xinitrc, before the "case $DESKTOP" part.  In a remaster, put the command in /etc/skel/.xinitrc


--------------
http://www.tldp.org/LDP/intro-linux/html/index.html
Back to top
Profile PM WEB 
someuser77 Offline





Group: Members
Posts: 9
Joined: April 2006
Posted: Oct. 14 2006,13:18 QUOTE

Thanks for the reply mikshaw!
xterm and xinitrc are X related configs.
If I boot into init=2, without X I still get a beep when I backspace.
I would like that "echo -en "\007"" will beep but pressing backspace when the command line is empty except "~]" it will not generate a beep sound.
edit: I can run "echo -e "\33[11;0]"" in the bash shell but this stops all the beeping sounds, also when I "echo -en "\007"".
Back to top
Profile PM 
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: Oct. 14 2006,13:39 QUOTE

You can automatically disable the bell in console from /opt/bootlocal.sh:
Code Sample
for TTY in /dev/tty[1-4]; do
       setterm -term linux -blength 0 > $TTY
done

This particular script works for tty1-tty4. Adjust as desired.

I don't know which bells you want to keep. Personally I dislike beeps of any kind, so haven't looked any further into it than turning it off completely.

You might try using visual bell instead, which will flash the screen instead of beep.


--------------
http://www.tldp.org/LDP/intro-linux/html/index.html
Back to top
Profile PM WEB 
someuser77 Offline





Group: Members
Posts: 9
Joined: April 2006
Posted: Oct. 14 2006,19:50 QUOTE

thanks for your reply mikshaw!
I disabled the sounds in bash by adding "set bell-style none" to /etc/inputrc as you suggested.
Back to top
Profile PM 
4 replies since Oct. 14 2006,10:34 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

 
reply to topic new topic new poll
Quick Reply: disabling beep sound when backspacing in console

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code